Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5509 in orxonox.OLD


Ignore:
Timestamp:
Nov 8, 2005, 4:46:24 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: proto_world_entity-stuff

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/graphics/graphics_engine.cc

    r5421 r5509  
    301301    glMatrixMode(GL_PROJECTION_MATRIX);
    302302    glLoadIdentity();
    303     glViewport(0,0,width,height);                                                   // Reset The Current Viewport
     303    glViewport(0, 0, width, height);                     // Reset The Current Viewport
    304304}
    305305
  • trunk/src/proto/proto_world_entity.cc

    r4838 r5509  
    1515
    1616#include "proto_world_entity.h"
    17 #include "glincl.h"
    18 #include "stdincl.h"
    19 #include "vector.h"
    20 #include "model.h"
    2117
    2218using namespace std;
     
    4339}
    4440
     41
    4542/**
    4643 * initializes the ProtoWorldEntity
    4744 * @todo change this to what you wish
    4845 */
    49 void ProtoWorldEntity::init(void)
     46void ProtoWorldEntity::init()
    5047{
    51   this->setClassID(CL_PROTO_WORLD_ENTITY, )
    52   ...
     48  this->setClassID(CL_PROTO_WORLD_ENTITY, "ProtoWorldEntity");
     49
     50  /**
     51   * @todo: Write CL_PROTO_WORLD_ENTITY INTO THE src/defs/class_id.h (your own definition)
     52   */
     53
    5354}
     55
    5456
    5557/**
     
    6365  static_cast<WorldEntity*>(this)->loadParam(root);
    6466
    65   ...
     67
     68  /**
     69   * @todo: make the class Loadable
     70   */
    6671}
    6772
     
    7984 * draws this worldEntity
    8085 */
    81 void ProtoWorldEntity::draw ()
     86void ProtoWorldEntity::draw () const
    8287{
    8388  glMatrixMode(GL_MODELVIEW);
     
    97102  glPopMatrix();
    98103}
     104
     105
     106/**
     107 *
     108 *
     109 */
     110void ProtoWorldEntity::collidesWith (WorldEntity* entity, const Vector& location)
     111{
     112
     113}
  • trunk/src/proto/proto_world_entity.h

    r4838 r5509  
    2020  void init();
    2121
    22   virtual void draw();
     22  virtual void postSpawn ();
     23  virtual void leftWorld ();
     24
     25
     26  virtual void draw() const;
    2327  virtual void tick(float time);
     28  virtual void collidesWith (WorldEntity* entity, const Vector& location);
    2429
    2530 private:
Note: See TracChangeset for help on using the changeset viewer.