Changeset 6417 for code/trunk/src/orxonox/items/MultiStateEngine.h
- Timestamp:
- Dec 25, 2009, 10:23:58 PM (14 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/orxonox/items/MultiStateEngine.h
r5781 r6417 22 22 * Author: 23 23 * Fabian 'x3n' Landau 24 * Reto Grieder 24 25 * Co-authors: 25 26 * ... … … 32 33 #include "OrxonoxPrereqs.h" 33 34 34 #include < list>35 #include <vector> 35 36 #include "Engine.h" 36 37 … … 40 41 { 41 42 public: 43 enum EngineState 44 { 45 Idle = 1, 46 Normal = 2, 47 Brake = 4, 48 Boost = 8 49 }; 50 42 51 MultiStateEngine(BaseObject* creator); 43 52 virtual ~MultiStateEngine(); … … 50 59 virtual void addToSpaceShip(SpaceShip* ship); 51 60 52 void addActiveEffect(WorldEntity* effect); 53 void addForwardEffect(WorldEntity* effect); 54 void addBoostEffect(WorldEntity* effect); 55 void addBrakeEffect(WorldEntity* effect); 61 void addEffectContainer(EffectContainer* effect); 62 EffectContainer* getEffectContainer(unsigned int index) const; 56 63 57 WorldEntity* getActiveEffect(unsigned int index) const;58 WorldEntity* getForwardEffect(unsigned int index) const;59 WorldEntity* getBoostEffect(unsigned int index) const;60 WorldEntity* getBrakeEffect(unsigned int index) const;64 void setDefEngSndNormal(const std::string& engineSound); 65 const std::string& getDefEngSndNormal(); 66 void setDefEngSndBoost(const std::string& engineSound); 67 const std::string& getDefEngSndBoost(); 61 68 62 69 private: 63 unsigned char state_; 64 std::list<WorldEntity*> activeEffects_; 65 std::list<WorldEntity*> forwardEffects_; 66 std::list<WorldEntity*> boostEffects_; 67 std::list<WorldEntity*> brakeEffects_; 70 int state_; 71 int oldState_; 72 LuaState* lua_; 73 std::vector<EffectContainer*> effectContainers_; 74 WorldSound* defEngineSndNormal_; 75 WorldSound* defEngineSndBoost_; 68 76 }; 69 77 }
Note: See TracChangeset
for help on using the changeset viewer.