Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 3, 2015, 2:11:19 PM (9 years ago)
Author:
gania
Message:

Added enums for maneuvers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/AI_HS15/src/orxonox/controllers/CommonController.h

    r10759 r10761  
    5353        };
    5454
     55    }
     56    //none for a formation flight without attacking, neutral when opponent and this have no
     57    //advantage over each other, offensive when this spotted opponent first,
     58    //defensive otherwise
     59    namespace ManeuverType
     60    {
     61        enum Value
     62        {
     63            NONE, NEUTRAL, OFFENSIVE, DEFENCIVE
     64        };
     65
     66    }
     67    //none for a formation flight
     68    namespace Maneuver
     69    {
     70        enum Value
     71        {
     72            NONE, GUNSD, SCISSORS, COMBATSPREAD, DEFENSIVESPLIT, BREAK, BARRELROLL, SWOOP, IMMELMANN,
     73            WINGOVER, LOWYOYO, HIGHYOYO, LAGDISPLACEMENTROLL
     74        };
    5575    }
    5676
     
    128148
    129149
     150            bool bHasObjectivePosition_;
     151            Vector3 objectivePosition_;
     152            bool bHasObjectiveOrientation_;
     153            Quaternion objectiveOrientation_;
     154
    130155            WeakPtr<ControllableEntity> target_;
    131156            bool bShooting_;
     157            WeakPtr<ControllableEntity> objectiveTarget_;
     158
    132159
    133160
    134161            FormationMode::Value formationMode_;
    135162            Rank::Value rank_;
    136 
    137 
     163            ManeuverType::Value maneuverType_;
     164            Maneuver::Value maneuver_;
    138165         
    139166        private:
Note: See TracChangeset for help on using the changeset viewer.