- Timestamp:
- Nov 23, 2015, 3:50:59 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/campaignHS15/src/orxonox/controllers/CommonController.h
r10834 r10838 103 103 { return this->rank_; } 104 104 //----[/Rank data]---- 105 //----[Protect data]---- 106 void setProtectXML( std::string val ); 107 std::string getProtectXML (); 108 void setProtect (ControllableEntity* protect); 109 ControllableEntity* getProtect (); 110 //----[/Protect data]---- 105 111 //----[/XML data]---- 106 112 … … 124 130 float randomInRange(float a, float b); 125 131 static float distance(ControllableEntity* entity1, ControllableEntity* entity2); 126 static bool sameTeam (ControllableEntity* entity1, ControllableEntity* entity2 );132 static bool sameTeam (ControllableEntity* entity1, ControllableEntity* entity2, Gametype* gt); 127 133 static bool isLooking( ControllableEntity* entityThatLooks, ControllableEntity* entityBeingLookedAt, float angle ) ; 128 134 … … 168 174 bool bHasTargetOrientation_; 169 175 Quaternion targetOrientation_; 170 // Vector3 destination_; 171 // bool bHasDestination; 176 177 Vector3 destination_; 178 bool bHasDestination; 172 179 //----[/where-to-fly information]---- 173 180 //----[protect information]---- 181 WeakPtr<ControllableEntity> protect_; 182 //----[/protect information]---- 174 183 //----[who-to-kill information]---- 175 184 WeakPtr<ControllableEntity> target_; 176 //WeakPtr<ControllableEntity> objectiveTarget_;185 WeakPtr<ControllableEntity> enemy_; 177 186 178 187 bool bHasPositionOfTarget_;
Note: See TracChangeset
for help on using the changeset viewer.