- Timestamp:
- Nov 24, 2015, 11:54:47 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/campaignHS15/src/orxonox/controllers/CommonController.h
r10843 r10847 39 39 #include "tools/interfaces/Tickable.h" 40 40 #include <limits> 41 41 #include "worldentities/Actionpoint.h" 42 42 43 43 namespace orxonox … … 63 63 enum Value 64 64 { 65 FLY, FIGHT, PROTECT65 NONE, FLY, FIGHT, PROTECT, FIGHTALL, ATTACK 66 66 }; 67 67 } … … 111 111 ControllableEntity* getProtect (); 112 112 //----[/Protect data]---- 113 //----[Actionpoint data]---- 114 void addActionpoint(WorldEntity* waypoint); 115 WorldEntity* getActionpoint(unsigned int index) const; 116 //----[/Actionpoint data]---- 113 117 //----[/XML data]---- 114 118 … … 134 138 static bool sameTeam (ControllableEntity* entity1, ControllableEntity* entity2, Gametype* gt); 135 139 static bool isLooking( ControllableEntity* entityThatLooks, ControllableEntity* entityBeingLookedAt, float angle ) ; 140 static std::string getName( ControllableEntity* entity ) ; 136 141 137 142 float squaredDistanceToTarget() const; … … 166 171 void doFire(); 167 172 void setClosestTarget(); 173 ControllableEntity* closestTarget(); 168 174 169 175 bool bShooting_; … … 177 183 Quaternion targetOrientation_; 178 184 179 Vector3 destination_; 180 bool bHasDestination; 185 181 186 //----[/where-to-fly information]---- 182 187 //----[protect information]---- … … 185 190 //----[who-to-kill information]---- 186 191 WeakPtr<ControllableEntity> target_; 187 WeakPtr<ControllableEntity> enemy_; 188 192 189 193 bool bHasPositionOfTarget_; 190 194 Vector3 positionOfTarget_; … … 193 197 //----[/who-to-kill information]---- 194 198 199 //----[Actionpoint information]---- 200 std::vector<WeakPtr<WorldEntity> > actionpoints_; 201 float squaredaccuracy_; 202 <tuple<Action::Value ,std::string ,Vector3 > > currentActionpoint_; 203 std::vector<tuple<Action::Value ,std::string ,Vector3 > > parsedActionpoints_; 204 //----[/Actionpoint information]---- 195 205 //----["Private" variables]---- 196 206 FormationMode::Value formationMode_; … … 198 208 std::string protectName_; 199 209 Action::Value action_; 210 int attackRange_; 211 200 212 //----[/"Private" variables]---- 201 213 };
Note: See TracChangeset
for help on using the changeset viewer.