- Timestamp:
- May 13, 2014, 11:45:47 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/modularships/src/orxonox/items/PartDestructionEvent.h
r10052 r10053 44 44 public: 45 45 46 enum TargetParam 47 { 48 shieldhealth, 49 maxshieldhealth, 50 shieldabsorption, 51 shieldrechargerate, 52 null 53 }; 54 46 55 PartDestructionEvent(Context* context); 47 56 virtual ~PartDestructionEvent(); … … 50 59 51 60 void execute(); 61 62 inline void setValid(bool valid) 63 { this->valid_ = valid; } 64 inline bool isValid() 65 { return this->valid_; } 66 67 void setParent(ShipPart* parent); 68 inline ShipPart* getParent() 69 { return this->parent_; } 52 70 53 71 void setTargetType(std::string type); … … 67 85 { return this->operation_; } 68 86 87 float operate(float input); 88 69 89 void setEventValue(float value); 70 90 inline float getEventValue() … … 75 95 private: 76 96 77 bool isValid_; 97 ShipPart* parent_; 98 bool valid_; 78 99 79 100 std::string targetType_; 80 101 std::string targetName_; 81 std::stringtargetParam_;102 TargetParam targetParam_; 82 103 std::string operation_; 83 104
Note: See TracChangeset
for help on using the changeset viewer.