Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 3238 in orxonox.OLD for orxonox/branches/nico/src/command_node.h


Ignore:
Timestamp:
Dec 20, 2004, 2:42:54 AM (21 years ago)
Author:
bensch
Message:

orxonox/branches: updated branches: buerli, nico, sound. And moved bezierTrack to old.bezierTrack. Conflicts resolved in a usefull order.
Conflics mostly resolved in favor of trunk
merge.

File:
1 edited

Legend:

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

    r2816 r3238  
    66*/
    77
    8 #ifndef COMMAND_NODE_H
    9 #define COMMAND_NODE_H
     8#ifndef _COMMAND_NODE_H
     9#define _COMMAND_NODE_H
    1010
    1111#include "stdincl.h"
    1212
    1313class WorldEntity;
     14class World;
    1415
    1516#define N_STD_KEYS SDLK_LAST
     
    3940 private:
    4041  bool bLocalInput;     //!< Identifies the CommandNode that processes local input
     42  bool bEnabled;
    4143  int netID;    //!< Unique identifier that is used to determine between remote CommandNodes
    4244  KeyBindings* aliases;
    43   List* bound;  //!< List of WorldEntites that recieve commands from this CommandNode
     45  tList<WorldEntity>* bound;    //!< List of WorldEntites that recieve commands from this CommandNode
    4446  Sint32 coord[2];
     47  World* world;
    4548 
    4649
    4750  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);
    5255 
    5356 public:
     
    5659  ~CommandNode ();
    5760
    58   void reset(); 
    59   void load_bindings (char* filename);
     61  void reset ();
     62  void enable (bool bEnabled);
     63  void loadBindings (char* filename);
    6064  void bind (WorldEntity* entity);
    6165  void unbind (WorldEntity* entity);
     66  void addToWorld (World* world);
    6267  void process ();
    6368 
    64   void set_netID (int ID);
     69  void setNetID (int ID);
    6570};
    6671
    67 #endif
     72#endif /* _COMMAND_NODE_H */
Note: See TracChangeset for help on using the changeset viewer.