- Timestamp:
- Nov 27, 2015, 4:42:14 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/campaignHS15/src/orxonox/controllers/CommonController.h
r10875 r10877 32 32 33 33 #include "controllers/Controller.h" 34 #include <limits> 35 34 36 #include "worldentities/ControllableEntity.h" 35 37 #include "worldentities/pawns/Pawn.h" 36 38 37 #include "tools/Timer.h"38 #include "tools/interfaces/Tickable.h"39 #include <limits>40 #include "worldentities/Actionpoint.h"41 39 42 40 namespace orxonox 43 41 { 44 class _OrxonoxExport CommonController : public Controller , public Tickable42 class _OrxonoxExport CommonController : public Controller 45 43 { 46 44 47 45 public: 46 static const float ACTION_INTERVAL = 1.0f; 47 48 48 static const float hardcoded_projectile_speed = 750; 49 static const float ACTION_INTERVAL = 1.0f;50 49 51 50 CommonController(Context* context); 52 51 virtual ~CommonController(); 53 52 54 virtual void tick(float dt); 55 56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 57 58 59 60 virtual bool setWingman(CommonController* wingman); 61 virtual bool hasWingman(); 62 63 64 float randomInRange(float a, float b); 53 static float randomInRange(float a, float b); 65 54 static float distance(ControllableEntity* entity1, ControllableEntity* entity2); 66 55 static bool sameTeam (ControllableEntity* entity1, ControllableEntity* entity2, Gametype* gt); 67 56 static bool isLooking( ControllableEntity* entityThatLooks, ControllableEntity* entityBeingLookedAt, float angle ) ; 68 static std::string getName( Pawn* entity ) ; 69 70 protected: 71 72 bool bFirstTick_; 73 74 57 static std::string getName( Pawn* entity ) ; 75 58 }; 76 59 }
Note: See TracChangeset
for help on using the changeset viewer.