Changeset 8362 in orxonox.OLD for trunk/src/lib/script_engine
- Timestamp:
- Jun 14, 2006, 10:08:41 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/script_engine/script.h
r8271 r8362 5 5 #include "base_object.h" 6 6 7 #include <list> 7 8 8 9 struct lua_State; … … 19 20 Script(const TiXmlElement* root = NULL); 20 21 ~Script(); 21 22 22 23 /// LOADING 23 24 void loadParams(const TiXmlElement* root); … … 26 27 bool loadFile(const std::string& filename); 27 28 void addObject(const std::string& className, const std::string& objectName); 28 29 29 30 /// QUERRYING 30 31 /** @returns fileName */ … … 33 34 34 35 35 36 36 37 /// EXECUTING 37 38 // first select function … … 45 46 // Execute the Function 46 47 bool executeFunction(); 47 48 48 49 // get returned values the last return value in lua is the first in c. TODO: change order of return 49 50 int getReturnedInt(); … … 65 66 int argumentCount; //!< Number of arguments for the current function 66 67 int returnCount; //!< Number of return values of the current function 67 68 68 69 std::list<WorldObject> registeredObjects; //!< The list of all the objects and their type that have been registered with this script 69 70
Note: See TracChangeset
for help on using the changeset viewer.