Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changes between Version 3 and Version 4 of code/doc/AI


Ignore:
Timestamp:
Nov 30, 2015, 2:30:58 PM (9 years ago)
Author:
gania
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • code/doc/AI

    v3 v4  
    2727== Actionpoints ==
    2828Actionpoints are implemented as state machines in their own class called ActionpointController, which is a parent class of Division-, Section-, and WingmanController. Basic states are:
    29  *NONE: spaceship tries to pop the next actionpoint from the stack
    30  *FIGHTALL: spaceship fights all the enemies on the map (if DivisionController, its division fights together with it) until all the enemies are dead.
    31  *ATTACK: attacks a specific target until target is dead.
    32  *PROTECT: follows a specific target until no protection required (when that spaceship dies).
    33  *FLY: flies to a specific point.
     29 * NONE: spaceship tries to pop the next actionpoint from the stack
     30 * FIGHTALL: spaceship fights all the enemies on the map (if DivisionController, its division fights together with it) until all the enemies are dead.
     31 * ATTACK: attacks a specific target until target is dead.
     32 * PROTECT: follows a specific target until no protection required (when that spaceship dies).
     33 * FLY: flies to a specific point.
    3434More than one Actionpoint can be attached to a controller, resulting in a slightly complex behaviour, for example, following code would result in a spaceship firstly attacking a spaceship with a name "attack", then trying to protect a human player, if none is spawned or human dies, it protects a spaceship with a name "protect", then it fights all enemies on the map:
    3535{{{