Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 20, 2006, 4:57:20 PM (18 years ago)
Author:
snellen
Message:

added HeatHazeManager

Location:
branches/heathaze/src/world_entities/particles
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/heathaze/src/world_entities/particles/heat_particles.cc

    r10127 r10130  
    1616#include "heat_particles.h"
    1717
    18 ObjectListDefinition(ProtoWorldEntity);
     18ObjectListDefinition(HeatParticles);
    1919
    2020
    2121/**
    22  * constructs and loads a ProtoWorldEntity from a XML-element
     22 * constructs and loads a HeatParticles from a XML-element
    2323 * @param root the XML-element to load from
    2424 */
    25 ProtoWorldEntity::ProtoWorldEntity(const TiXmlElement* root)
     25HeatParticles::HeatParticles(const TiXmlElement* root)
    2626{
    27   this->registerObject(this, ProtoWorldEntity::_objectList);
     27 /* this->registerObject(this, HeatParticles::_objectList);
    2828  this->init();
    2929  if (root != NULL)
    30     this->loadParams(root);
     30    this->loadParams(root);*/
    3131}
    3232
     
    3535 * standard deconstructor
    3636 */
    37 ProtoWorldEntity::~ProtoWorldEntity ()
     37HeatParticles::~HeatParticles ()
    3838{
    3939
    4040}
    41 
    42 
    43 /**
    44  * initializes the ProtoWorldEntity
    45  * @todo change this to what you wish
    46  */
    47 void ProtoWorldEntity::init()
    48 {
    49  
    50 }
    51 
    52 
    53 /**
    54  * loads a ProtoWorldEntity from a XML-element
    55  * @param root the XML-element to load from
    56  * @todo make the class Loadable
    57  */
    58 void ProtoWorldEntity::loadParams(const TiXmlElement* root)
    59 {
    60   // all the clases this Entity is directly derived from must be called in this way, to load all settings.
    61   WorldEntity::loadParam(root);
    62 
    63 
    64   /**
    65    * @todo: make the class Loadable
    66    */
    67 }
    68 
    69 
    70 /**
    71  * advances the ProtoWorldEntity about time seconds
    72  * @param time the Time to step
    73  */
    74 ProtoWorldEntity::tick(float time)
    75 {
    76 
    77 }
    78 
    79 /**
    80  * draws this worldEntity
    81  */
    82 void ProtoWorldEntity::draw () const
    83 {
    84   glMatrixMode(GL_MODELVIEW);
    85   glPushMatrix();
    86   float matrix[4][4];
    87 
    88   /* translate */
    89   glTranslatef (this->getAbsCoor ().x,
    90                 this->getAbsCoor ().y,
    91                 this->getAbsCoor ().z);
    92   /* rotate */
    93   this->getAbsDir().matrix(matrix);
    94   glMultMatrixf((float*)matrix);
    95 
    96   if (model)
    97     model->draw();
    98   glPopMatrix();
    99 }
    100 
    101 
    102 /**
    103  *
    104  *
    105  */
    106 void ProtoWorldEntity::collidesWith (WorldEntity* entity, const Vector& location)
    107 {
    108 
    109 }
  • branches/heathaze/src/world_entities/particles/heat_particles.h

    r10127 r10130  
    77#define _HEAT_PARTICLES_H
    88
    9 #include "world_entity.h"
    109#include "sprite_particles.h"
    1110
     
    1918  virtual ~HeatParticles();
    2019
    21   virtual void loadParams(const TiXmlElement* root);
    22   void init();
    23 
    24   virtual void draw() const;
    25   virtual void tick(float time);
    26 
    2720};
    2821
Note: See TracChangeset for help on using the changeset viewer.