Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

Legend:

Unmodified
Added
Removed
Modified
  • code/doc/AI

    v2 v3  
    1212 * Actionpoints: Just like waypoints, actionpoints can be set in XML file.
    1313
    14 ==Structure==
     14== Structure ==
    1515When alone, every AI class does the same. To make AI fight smart, different AI Controllers are to be assigned to several spaceships:
    1616
    1717DivisionController makes 4 spaceships fly in formation. It manages most of the logics of the division, which consists of 1 DivisionController, 1 SectionController and 2 Wingmen.
    1818
    19 ==Fighting==
     19== Fighting ==
    2020When fighting, DivisionController fights in pair with its WingmanController and SectionController in pair with its Wingman. Those two sections of two ships try to attack different targets in order to achieve maximum damage output.
    2121
    2222AI tries to separate Wingman in Leader into attacker and defender, so that enemies waste their time trying to kill one while another finishes them off.
    2323
    24 ==Formations==
     24== Formations ==
    2525In XML file different formation types can be set to DivisionController: WALL, FINGER4 and DIAMOND. Although they don't have a great effect on a gameplay, one might find DIAMOND or FINGER4 to look nicer than a simple WALL.
    2626
    27 ==Actionpoints==
     27== 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:
    2929 *NONE: spaceship tries to pop the next actionpoint from the stack