Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 13, 2006, 3:39:43 PM (18 years ago)
Author:
snellen
Message:

adapted the proto_world_entity.* to the classlistframework, start implementation of heathaze

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/heathaze/src/world_entities/effects/heat_haze.cc

    r9954 r10067  
    1212   main-programmer: Silvan Nellen
    1313*/
     14
     15#include "heat_haze.h"
     16
     17
     18ObjectListDefinition(HeatHaze);
     19
     20/**
     21 * constructs and loads a HeatHaze from a XML-element
     22 * @param root the XML-element to load from
     23 */
     24HeatHaze::HeatHaze(const TiXmlElement* root)
     25{
     26  this->registerObject(this, HeatHaze::_objectList);
     27  this->init();
     28  if (root != NULL)
     29    this->loadParams(root);
     30}
     31
     32
     33/**
     34 * standard deconstructor
     35 */
     36HeatHaze::~HeatHaze ()
     37{
     38
     39}
     40
     41
     42/**
     43 * initializes the HeatHaze
     44 * @todo change this to what you wish
     45 */
     46void HeatHaze::init()
     47{
     48
     49}
     50
     51
     52/**
     53 * loads a HeatHaze from a XML-element
     54 * @param root the XML-element to load from
     55 * @todo make the class Loadable
     56 */
     57void HeatHaze::loadParams(const TiXmlElement* root)
     58{
     59  // all the clases this Entity is directly derived from must be called in this way, to load all settings.
     60  WorldEntity::loadParam(root);
     61
     62
     63  /**
     64   * @todo: make the class Loadable
     65   */
     66}
     67
     68
     69/**
     70 * advances the HeatHaze about time seconds
     71 * @param time the Time to step
     72 */
     73void HeatHaze::tick(float time)
     74{
     75
     76}
     77
     78/**
     79 * draws this worldEntity
     80 */
     81void HeatHaze::draw () const
     82{
     83  /*glMatrixMode(GL_MODELVIEW);
     84  glPushMatrix();
     85  float matrix[4][4];
     86
     87  // translate
     88  glTranslatef (this->getAbsCoor ().x,
     89                this->getAbsCoor ().y,
     90                this->getAbsCoor ().z);
     91  // rotate
     92  this->getAbsDir().matrix(matrix);
     93  glMultMatrixf((float*)matrix);
     94
     95  if (model)
     96    model->draw();
     97  glPopMatrix();
     98 */
     99}
     100
     101
     102/**
     103 *
     104 *
     105 */
     106void HeatHaze::collidesWith (WorldEntity* entity, const Vector& location)
     107{
     108
     109}
Note: See TracChangeset for help on using the changeset viewer.