Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/world_entities/power_ups/laser_power_up.h @ 6419

Last change on this file since 6419 was 6419, checked in by rennerc, 18 years ago

some more entities should sync now

File size: 890 bytes
RevLine 
[5433]1/*!
[5458]2 * @file laser_power_up.h
[5433]3 * @brief A class representing a PowerUp in the world.
4*/
[2077]5
[5458]6#ifndef _LASER_POWER_UP_H
7#define _LASER_POWER_UP_H
[2077]8
[5434]9#include "power_up.h"
[2077]10
[5511]11/* FORWARD DEFINITION */
12class Material;
13
[5458]14class LaserPowerUp : public PowerUp {
[2077]15
16 public:
[5458]17  LaserPowerUp();
18  LaserPowerUp(const TiXmlElement* root);
19  virtual ~LaserPowerUp ();
[5433]20
[5458]21  virtual void LaserPowerUp::collidesWith(WorldEntity* entity, const Vector& location);
[5435]22  virtual void tick(float dt);
[5500]23  virtual void draw() const;
[5435]24
[6419]25  virtual int writeBytes(const byte* data, int length, int sender);
26  virtual int readBytes(byte* data, int maxLength, int * reciever );
27
[5434]28  private:
29   void init();
30   void loadParams(const TiXmlElement* root);
[5435]31
32  private:
33   Vector              rotation;
34   float               cycle;
[5437]35
36   Model*              sphereModel;
37   Material*           sphereMaterial;
[2077]38};
39
[5458]40#endif /* _LASER_POWER_UP_H */
Note: See TracBrowser for help on using the repository browser.