Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5739 in orxonox.OLD for branches/world_entities/src


Ignore:
Timestamp:
Nov 23, 2005, 3:33:40 PM (19 years ago)
Author:
manuel
Message:

groundturret loads

Location:
branches/world_entities/src/world_entities
Files:
3 edited

Legend:

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

    r5679 r5739  
    2727                  weapons/ground_turret.cc \
    2828                  weapons/crosshair.cc \
     29                  weapons/ground_turret.cc \
    2930                  power_ups/power_up.cc \
    3031                  power_ups/turret_power_up.cc \
  • branches/world_entities/src/world_entities/weapons/ground_turret.cc

    r5680 r5739  
    1515
    1616#include "ground_turret.h"
     17#include "factory.h"
     18#include "model.h"
     19
     20CREATE_FACTORY(GroundTurret, CL_GROUND_TURRET);
    1721
    1822using namespace std;
     
    4751{
    4852  this->setClassID(CL_GROUND_TURRET, "GroundTurret");
     53  this->loadModel("models/ground_turret.obj", 5);
    4954
    5055}
     
    5964{
    6065  // all the clases this Entity is directly derived from must be called in this way, to load all settings.
    61 //  static_cast<WorldEntity*>(this)->loadParam(root);
     66  static_cast<NPC*>(this)->loadParams(root);
    6267
    6368
     
    7277 * @param time the Time to step
    7378 */
    74 //GroundTurret::tick(float time)
    75 //{
    76 //
    77 //}
     79void GroundTurret::tick(float time)
     80{
     81
     82}
    7883
    7984/**
     
    9499  glMultMatrixf((float*)matrix);
    95100
    96 //  if (model)
    97 //    model->draw();
     101  if (model)
     102    model->draw();
    98103  glPopMatrix();
    99104}
  • branches/world_entities/src/world_entities/weapons/ground_turret.h

    r5685 r5739  
    2525
    2626  virtual void draw() const;
    27 //  virtual void tick(float time);
     27  virtual void tick(float time);
    2828  virtual void collidesWith (WorldEntity* entity, const Vector& location);
    2929
Note: See TracChangeset for help on using the changeset viewer.