vrecko
virtual reality framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
ChessPiece.h
Go to the documentation of this file.
1 #include <vrecko/Ability.h>
2 
3 using namespace vrecko;
4 
5 
6 class ChessPiece: public Ability {
7  public:
8  ChessPiece();
9  ~ChessPiece() {};
10 
12  void processEvent(const std::string &input_name, void *value);
13 
14  void update(void);
15 
16  void preInitialize() {owner = (EnvironmentObject*)pOwner;}
17 
18  bool loadXMLParameters(XERCES_CPP_NAMESPACE_QUALIFIER DOMNode *parametersNode);
19 
20  std::string getAcceptableMessages(void) {return "ChessMove";}
21 
22  // -------------------
23  void setType(std::string _type) {piece_type = _type;}
24  void setLocation(std::string _location) {piece_location = _location;}
25 
26  protected:
27 
28  std::string piece_type, piece_location;
29 
30  long int chessboard_id;
31  unsigned int move;
32  osg::Vec3 final_position, actual_position, move_step;
34 };
35 
36