Hi!

sure I can give you some piece of information.

Currently, I have less time to work on it and prefer to take time to debug the
network code but be free to help :)

I have some minor updates (that doesn't work) about the ai engine but it is no
matter if in the future it's will be impossible to merge.

Ok, so let's speak about the code.

* ai_engine.cpp. It mostly do nothing but checking that it's time for the
ai-engine to play and to call the ai-engine-stupid

* ai_engine_stupid.cpp. It WILL (in the future!) implement the decision
mechanism and call methods exported by the submodules to do the job.
Currently, it does not do lot of things. The Refresh methods is called each time
between 2 frames drawing.

* ai_shoot_module.cpp. independant (currently not) that should contains all
methods useful for the "shoot". It contains some methods to see if an enemy is
gun-able, it tries to find an enemy.
Currently the module does too more things. It decides when to shoot and which is
the strategy :
   - NO_STRATEGY: we have still no strategy
   - NEAR_FROM_ENEMY: we try to put a dynamite or a mine on an enemy (it's not a
mandatory that it is the enemy we have thought about in the past)
   - SHOOT_FROM_POINT: we try to shoot an enemy with gnu, sniper_gun, shotgun,
or submachine_gun.

* ai_movement_module.cpp. independant (currently not really) that contains all
stuff related to ai characters move.
Currently, it try to goes in a direction, jumping on obstacle if it can (it
tries) or go back it can not.
There are some methods which are still not coded such as mines avoiding
(points_to_avoid)


Currently, the code is badly organised. Some variables have to been kept by ai
character.
In my mind, the submodule must only implement some usefull methods but must not
take "any big" decision. They should be independant so that many engine can use
what they implement.

Bye,

Matt (gentildemon)


Selon andrea <[EMAIL PROTECTED]>:

>
> Hi, i'm seeing wormux source code, and i've found that you have started an ai
> engine. i want to help developments of this engine, can you explain me a
> little about how it work?
>
> Thanks.
> Andrea Moro
>

_______________________________________________
Wormux-dev mailing list
Wormux-dev@gna.org
https://mail.gna.org/listinfo/wormux-dev

Répondre à