Changeset 11662 for code/branches/ScriptableController_HS17/src/orxonox/scriptablecontroller/scriptable_controller_api.h
- Timestamp:
- Dec 11, 2017, 4:35:38 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ScriptableController_HS17/src/orxonox/scriptablecontroller/scriptable_controller_api.h
r11638 r11662 14 14 class ScriptableController; 15 15 class WorldEntity; 16 class Pawn; 16 17 17 18 /** … … 24 25 class ScriptableControllerAPI 25 26 { 27 friend class ScriptableController; 28 26 29 public: 27 30 /** … … 140 143 141 144 /** 145 * @brief Spawn an object 146 * @param type Name of the class of the object you want to spawn 147 * @param id The newly created ID that can be used to access this object 148 */ 149 void spawn(std::string type, std::string id); 150 151 /** 142 152 * @brief Set the position of an object 143 153 * @param id The ID of the object … … 185 195 // ### API END ################################################################ 186 196 197 private: 187 198 /** 188 199 * @brief Called by ScriptableController when a pawn is killed … … 191 202 * Calls the lua callbacks associated with this event. 192 203 */ 193 void pawnKilled(std::string id );204 void pawnKilled(std::string id, Pawn *pawn); 194 205 195 206 /** … … 202 213 void pawnHit(std::string target_id, std::string source_id, double new_health, double new_shield); 203 214 204 private:205 215 /** 206 216 * @brief Groups everything together that is needed to handle a near-object event
Note: See TracChangeset
for help on using the changeset viewer.