Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 24, 2015, 5:52:43 PM (8 years ago)
Author:
gania
Message:

ok, now you can use attack and protect just like in my level, but I only updated DivsionController, will finish others some time soon. Anyways, Actionpoints are to be inserted in DivisionController only.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/campaignHS15/src/orxonox/controllers/DivisionController.cc

    r10849 r10850  
    7474    void DivisionController::action()
    7575    {
    76 
    77        
    78   /*      if (this->target_)
    79         {
    80             if (CommonController::distance (this->getControllableEntity(), newTarget) <
    81                 CommonController::distance (this->getControllableEntity(), target_))
    82             {
    83                 Actionpoint* ap = new Actionpoint(this->getContext());
    84                 ap->setPosition (0, 0, 0);
    85                 ap->setActionXML ("FIGHT");
    86                 //ap->setEnemyXML(CommonController::getName(newTarget));
    87                 this->addActionpoint (ap);
    88             }
    89 
    90         }*/
    9176        //----Whatever ship is doing, if there are targets close to it and its own target is far away, fight them----
    9277        //analog to attack move
Note: See TracChangeset for help on using the changeset viewer.