Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/proto/proto_world_entity.h @ 10681

Last change on this file since 10681 was 6512, checked in by bensch, 19 years ago

orxonox/trunk: loadParams is now virtual.
ALL THE CLASSES HAVE TO CALL

SuperClass::loadParams(root);

isntead of:
static_cast<SuperClass*>(this)→loadParams(root);

which was quite stupid anyways

File size: 625 bytes
RevLine 
[4838]1/*!
2 * @file proto_world_entity.h
3 * @brief description
[3245]4*/
[1853]5
[3761]6#ifndef _PROTO_WORLD_ENTITY_H
7#define _PROTO_WORLD_ENTITY_H
[1853]8
[3559]9#include "world_entity.h"
[1853]10
[3761]11//! A Class to ...
[4838]12class ProtoWorldEntity : public WorldEntity
[3559]13{
[3543]14
[1904]15 public:
[4838]16  ProtoWorldEntity(const TiXmlElement* root = NULL);
[3761]17  virtual ~ProtoWorldEntity();
[4838]18
[6512]19  virtual void loadParams(const TiXmlElement* root);
[3564]20  void init();
[4838]21
[5509]22  virtual void postSpawn ();
23  virtual void leftWorld ();
24
25
26  virtual void draw() const;
[3762]27  virtual void tick(float time);
[5509]28  virtual void collidesWith (WorldEntity* entity, const Vector& location);
[3245]29
30 private:
[3761]31
[1853]32};
33
[3761]34#endif /* _PROTO_WORLD_ENTITY_H */
Note: See TracBrowser for help on using the repository browser.