Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/npcs/network_turret.h @ 10684

Last change on this file since 10684 was 9869, checked in by bensch, 18 years ago

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

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