Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jul 30, 2006, 11:08:47 AM (18 years ago)
Author:
bensch
Message:

orxonox/proxy: added a new Turret for better network synchronisation

File:
1 copied

Legend:

Unmodified
Added
Removed
  • branches/proxy/src/world_entities/npcs/network_turret.h

    r9606 r9608  
    11/*!
    2  * @file ground_turret.h
     2 * @file network_turret.h
    33 * @brief description
    44*/
    55
    6 #ifndef _GROUND_TURRET_H
    7 #define _GROUND_TURRET_H
     6#ifndef _NETWORK_TURRET_H
     7#define _NETWORK_TURRET_H
    88
    99#include "npcs/npc.h"
     
    1212
    1313//! A Class to ...
    14 class GroundTurret : public NPC
     14class NetworkTurret : public NPC
    1515{
    1616
    17  public:
    18   GroundTurret(const TiXmlElement* root = NULL);
    19   virtual ~GroundTurret();
     17public:
     18  NetworkTurret(const TiXmlElement* root = NULL);
     19  virtual ~NetworkTurret();
    2020
    21   void init();
    2221  virtual void loadParams(const TiXmlElement* root);
    2322
     
    3029  virtual void tick(float time);
    3130
    32  private:
    33    PNode  weaponHolder[2];
    34    Weapon *left, *right;
     31private:
     32  void init();
     33
     34private:
     35  PNode  weaponHolder;
     36  Weapon *weapon;
    3537};
    3638
    37 #endif /* _GROUND_TURRET_H */
     39#endif /* _NETWORK_TURRET_H */
Note: See TracChangeset for help on using the changeset viewer.