Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/proxy/src/world_entities/npcs/network_turret.h @ 9615

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

AimingTurret is better suited for network, as the projectiles are not connected to anything.
also it makes the game a little bit easier, and more fun as the turrets move around :)

File size: 871 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
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.