Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6170 in orxonox.OLD


Ignore:
Timestamp:
Dec 20, 2005, 12:59:06 AM (18 years ago)
Author:
patrick
Message:

christmas: link error

Location:
branches/christmas_branche/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/christmas_branche/src/Makefile.am

    r6139 r6170  
    8686                  world_entities/space_ships/space_ship.cc \
    8787                  world_entities/space_ships/helicopter.cc \
     88                  world_entities/creatures/md2_creature.cc \
    8889                  world_entities/spawning_point.cc \
    8990                  subprojects/benchmark.cc
     
    133134                 world_entities/space_ships/space_ship.h \
    134135                 world_entities/space_ships/helicopter.h \
     136                 world_entities/creatures/md2_creature.h \
    135137                 world_entities/spawning_point.h \
    136138                 defs/stdincl.h \
  • branches/christmas_branche/src/lib/graphics/importer/md2Model.h

    r6169 r6170  
    152152  void scaleModel(float scaleFactor) { this->scaleFactor = scaleFactor;}
    153153
    154   void tick(float dtS);
     154  virtual void tick(float dtS);
    155155  void debug();
    156156
  • branches/christmas_branche/src/world_entities/Makefile.am

    r6166 r6170  
    5050                 test_entity.h \
    5151                 space_ships/space_ship.h \
    52                  creatures/md2_creature.h \
     52                 creatures/md2_creature.cc \
    5353                 weapons/weapon_manager.h \
    5454                 weapons/weapon.h \
  • branches/christmas_branche/src/world_entities/creatures/md2_creature.cc

    r6167 r6170  
    2121
    2222#include "objModel.h"
     23#include "md2Model.h"
    2324#include "resource_manager.h"
    2425
     
    112113  PRINTF(4)("SPACESHIP INIT\n");
    113114
    114   EventHandler::getInstance()->grabEvents(true);
     115//   EventHandler::getInstance()->grabEvents(true);
    115116
    116117  bUp = bDown = bLeft = bRight = bAscend = bDescend = bRollL = bRollR = false;
     
    253254{
    254255
     256  if( likely(this->models[0] != NULL))
     257    ((MD2Model*)this->models[0])->tick(time);
     258
     259
    255260  // MD2Creature controlled movement
    256261  this->calculateVelocity(time);
  • branches/christmas_branche/src/world_entities/world_entity.h

    r6169 r6170  
    7272  /** @returns a Reference to the Iterator */
    7373  std::list<WorldEntity*>::iterator& getEntityIterator() { return this->objectListIterator; }
     74
     75
    7476 protected:
    7577  //  CharacterAttributes*    charAttr;         //!< the character attributes of a world_entity
     78   std::vector<Model*>     models;             //!< The model that should be loaded for this entity.
    7679
    7780 private:
    78   std::vector<Model*>     models;             //!< The model that should be loaded for this entity.
    7981  bool                    supportsLOD;        //!< If this model format supports LOD (level of detail) this is true
    8082  BVTree*                 obbTree;            //!< this is the obb tree reference needed for collision detection
Note: See TracChangeset for help on using the changeset viewer.