Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/proxy/src/world_entities/npcs/space_turret.h @ 9610

Last change on this file since 9610 was 9602, checked in by patrick, 18 years ago

solved the spaceturret synch problem
@bensch: read my mail, everything is commented there. the turret should then work
@bensch2: can you then please take a look at the shell commands in ProxyControl (see mail) thx!
|

File size: 894 bytes
Line 
1/*!
2 * @file space_turret.h
3 * @brief description
4*/
5
6#ifndef _SPACE_TURRET_H
7#define _SPACE_TURRET_H
8
9#include "npcs/npc.h"
10
11#include <string>
12#include <list>
13
14
15class Weapon;
16
17//! A Class to ...
18class SpaceTurret : public NPC
19{
20
21public:
22  SpaceTurret(const TiXmlElement* root = NULL);
23  virtual ~SpaceTurret();
24
25  virtual void loadParams(const TiXmlElement* root);
26  virtual void varChangeHandler( std::list< int > & id );
27
28
29  void setWeaponLeft(const std::string& wLeft);
30  void setWeaponRight(const std::string& wRight);
31
32  virtual void postSpawn ();
33  virtual void leftWorld ();
34
35  virtual void destroy(WorldEntity* killer);
36
37  virtual void draw() const;
38  virtual void tick(float time);
39
40private:
41  void init();
42
43
44private:
45  PNode  weaponHolder[2];
46  Weapon *left, *right;
47
48  std::string wLeft;
49  std::string wRight;
50  int wLeftHandle;
51  int wRightHandle;
52};
53
54#endif /* _SPACE_TURRET_H */
Note: See TracBrowser for help on using the repository browser.