Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10147 in orxonox.OLD for trunk/src/world_entities/world_entity.h


Ignore:
Timestamp:
Dec 25, 2006, 1:30:44 PM (19 years ago)
Author:
patrick
Message:

merged the mount_point branche back to trunk to use the new std::* based obj file importer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/world_entity.h

    r10013 r10147  
    1515#include "object_manager.h"
    1616#include "glincl.h"
     17
     18#include "aabb_tree_node.h"
     19
     20#include "physics_interface.h"
     21
    1722#include <vector>
    18 
    19 #include "aabb_tree_node.h"
    20 
    21 #include "physics_interface.h"
    22 
    2323
    2424
     
    3333class Model;
    3434
     35class ObjectInformationFile;
     36class MountPoint;
     37
    3538
    3639//! Basis-class all interactive stuff in the world is derived from
     
    5053  Model* getModel(unsigned int modelNumber = 0) const { return (this->models.size() > modelNumber)? this->models[modelNumber] : NULL; };
    5154
     55  void loadObjectInformationFile(const std::string& fileName);
    5256  inline void loadMD2Texture(const std::string& fileName) { this->md2TextureFileName = fileName; }
     57
     58  void addMountPoint(MountPoint* mountPoint);
     59  void addMountPoint(int slot, MountPoint* mountPoint);
     60  void mount(int slot, WorldEntity* entity);
     61  void unmount(int slot);
    5362
    5463  /** @param visibility if the Entity should be visible (been draw) */
     
    185194
    186195  std::vector<Model*>     models;             //!< The model that should be loaded for this entity.
     196  ObjectInformationFile*  oiFile;             //!< Reference to the object information file discribing the model of this WE
     197  std::vector<MountPoint*> mountPoints;       //!< A list with mount points for this model
    187198  std::string             md2TextureFileName; //!< the file name of the md2 model texture, only if this
    188199  std::string             modelLODName;       //!< the name of the model lod file
Note: See TracChangeset for help on using the changeset viewer.