Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

groundturret loads

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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}
Note: See TracChangeset for help on using the changeset viewer.