Changeset 2096 in orxonox.OLD for orxonox/branches/chris/src/command_node.h
- Timestamp:
- Jul 9, 2004, 11:14:42 AM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/chris/src/command_node.h
r2066 r2096 15 15 #define DEFAULT_KEYBIND_FILE "default.ini" 16 16 17 //! Key aliasing structure 18 /** 19 This structure contains the key aliasing information, e.g. the command strings that 20 have been bound to the keys. 21 */ 17 22 typedef struct 18 23 { … … 21 26 } KeyBindings; 22 27 28 //! Command Node 29 /** 30 This class gathers all incoming SDL_Events and processes them. Keyboard, mouse and joystick input is 31 captured and translated into command messages which are passed down to the bound WorldEntities (via WorldEntity::command()). 32 Other SDL_Events are passed to Orxonox::event_handler() to deal with them. If the CommandNode has been created 33 with bLocalInput set to false, it will query the network class for incoming commands that match his netID and pass 34 them on to his WorldEntities. 35 */ 23 36 class CommandNode { 24 37 private: 25 bool bLocalInput; 26 int netID; 38 bool bLocalInput; //!< Identifies the CommandNode that processes local input 39 int netID; //!< Unique identifier that is used to determine between remote CommandNodes 27 40 KeyBindings* aliases; 28 List<WorldEntity>* bound; 41 List<WorldEntity>* bound; //!< List of WorldEntites that recieve commands from this CommandNode 29 42 int coord[2]; 30 43 … … 33 46 void process_local (); 34 47 void process_network (); 35 void send_over_networ ();48 void send_over_network (Command* cmd); 36 49 37 50 public: … … 44 57 void unbind (WorldEntity* entity); 45 58 void process (); 59 60 void set_netID (int ID); 46 61 }; 47 62
Note: See TracChangeset
for help on using the changeset viewer.