Changeset 3238 in orxonox.OLD for orxonox/branches/nico/src/command_node.h
- Timestamp:
- Dec 20, 2004, 2:42:54 AM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/nico/src/command_node.h
r2816 r3238 6 6 */ 7 7 8 #ifndef COMMAND_NODE_H9 #define COMMAND_NODE_H8 #ifndef _COMMAND_NODE_H 9 #define _COMMAND_NODE_H 10 10 11 11 #include "stdincl.h" 12 12 13 13 class WorldEntity; 14 class World; 14 15 15 16 #define N_STD_KEYS SDLK_LAST … … 39 40 private: 40 41 bool bLocalInput; //!< Identifies the CommandNode that processes local input 42 bool bEnabled; 41 43 int netID; //!< Unique identifier that is used to determine between remote CommandNodes 42 44 KeyBindings* aliases; 43 List* bound; //!< List of WorldEntites that recieve commands from this CommandNode45 tList<WorldEntity>* bound; //!< List of WorldEntites that recieve commands from this CommandNode 44 46 Sint32 coord[2]; 47 World* world; 45 48 46 49 47 50 void relay (Command* cmd); 48 int* name _to_index (char* name);49 void process _local ();50 void process _network ();51 void send _over_network (Command* cmd);51 int* nameToIndex (char* name); 52 void processLocal (); 53 void processNetwork (); 54 void sendOverNetwork (Command* cmd); 52 55 53 56 public: … … 56 59 ~CommandNode (); 57 60 58 void reset(); 59 void load_bindings (char* filename); 61 void reset (); 62 void enable (bool bEnabled); 63 void loadBindings (char* filename); 60 64 void bind (WorldEntity* entity); 61 65 void unbind (WorldEntity* entity); 66 void addToWorld (World* world); 62 67 void process (); 63 68 64 void set _netID (int ID);69 void setNetID (int ID); 65 70 }; 66 71 67 #endif 72 #endif /* _COMMAND_NODE_H */
Note: See TracChangeset
for help on using the changeset viewer.