Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 2096 in orxonox.OLD for orxonox/branches/chris/src/command_node.h


Ignore:
Timestamp:
Jul 9, 2004, 11:14:42 AM (20 years ago)
Author:
chris
Message:

orxonox/branches/chris: Messed with the Player class, added stuff here and there, debug world now creates a player and bind IO to it. Added some doxygen tags.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/chris/src/command_node.h

    r2066 r2096  
    1515#define DEFAULT_KEYBIND_FILE "default.ini"
    1616
     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*/
    1722typedef struct
    1823{
     
    2126} KeyBindings;
    2227
     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*/
    2336class CommandNode {
    2437 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
    2740        KeyBindings* aliases;
    28         List<WorldEntity>* bound;
     41        List<WorldEntity>* bound;       //!< List of WorldEntites that recieve commands from this CommandNode
    2942        int coord[2];
    3043       
     
    3346        void process_local ();
    3447        void process_network ();
    35         void send_over_networ();
     48        void send_over_network (Command* cmd);
    3649       
    3750 public:
     
    4457  void unbind (WorldEntity* entity);
    4558  void process ();
     59 
     60  void set_netID (int ID);
    4661};
    4762
Note: See TracChangeset for help on using the changeset viewer.