- Timestamp:
- Dec 7, 2015, 4:06:37 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/campaignHS15/src/orxonox/controllers/CommonController.h
r10885 r10946 31 31 32 32 33 #include "controllers/Controller.h" 34 #include <limits> 33 #include "controllers/Controller.h" //that's what I inherit from 35 34 36 #include "worldentities/ControllableEntity.h" 37 #include "worldentities/pawns/Pawn.h" 35 #include <limits> //I use limits pretty much in every class, so might as well include it in the parent class 36 37 #include "worldentities/ControllableEntity.h" //same for ControllableEntity 38 #include "worldentities/pawns/Pawn.h" //and Pawn 38 39 39 40 … … 44 45 45 46 public: 46 static const float ACTION_INTERVAL = 1.0f; 47 48 static const float hardcoded_projectile_speed = 750; 47 static const float hardcoded_projectile_speed = 750; //<! FightingController uses it to predict enemy position 49 48 50 49 CommonController(Context* context); … … 52 51 53 52 static float randomInRange(float a, float b); 54 static float distance( ControllableEntity* entity1,ControllableEntity* entity2);53 static float distance(const ControllableEntity* entity1, const ControllableEntity* entity2); 55 54 static bool sameTeam (ControllableEntity* entity1, ControllableEntity* entity2, Gametype* gt); 56 static bool isLooking( ControllableEntity* entityThatLooks,ControllableEntity* entityBeingLookedAt, float angle ) ;57 static std::string getName( Pawn* entity ) ;55 static bool isLooking(const ControllableEntity* entityThatLooks, const ControllableEntity* entityBeingLookedAt, float angle ) ; 56 static std::string getName(const Pawn* entity ) ; 58 57 }; 59 58 }
Note: See TracChangeset
for help on using the changeset viewer.