Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10056 in orxonox.OLD


Ignore:
Timestamp:
Dec 13, 2006, 10:21:34 AM (17 years ago)
Author:
patrick
Message:

mount point handling

Location:
branches/mount_points/src/world_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/mount_points/src/world_entities/world_entity.cc

    r10055 r10056  
    317317
    318318/**
     319 * adds a mount point to the end of the list
     320 * @param mountPoint point to be added
     321 */
     322void WorldEntity::addMountPoint(MountPoint* mountPoint)
     323{
     324}
     325
     326/**
     327 * adds a mount point to a world entity
     328 * @param mountPoint point to be added
     329 */
     330void WorldEntity::addMountPoint(int slot, MountPoint* mountPoint)
     331{
     332
     333}
     334
     335
     336/**
     337 * mounts a world entity on a specified mount point (~socket)
     338 * @param entity entity to be connected
     339 */
     340void WorldEntity::mount(int slot, WorldEntity* entity)
     341{
     342
     343}
     344
     345
     346/**
     347 * removes a mount point from a specified mount point
     348 * @param mountPoint entity to be unconnected
     349 */
     350void WorldEntity::unmount(int slot)
     351{
     352}
     353
     354
     355/**
    319356 * subscribes this world entity to a collision reaction
    320357 *  @param type the type of reaction to subscribe to
  • branches/mount_points/src/world_entities/world_entity.h

    r10052 r10056  
    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
     
    3232class AABBTreeNode;
    3333class Model;
     34
    3435class ObjectInformationFile;
     36class MountPoint;
    3537
    3638
     
    5254
    5355  void loadObjectInformationFile(const std::string& fileName);
    54 
    5556  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);
    5662
    5763  /** @param visibility if the Entity should be visible (been draw) */
     
    189195  std::vector<Model*>     models;             //!< The model that should be loaded for this entity.
    190196  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
    191198  std::string             md2TextureFileName; //!< the file name of the md2 model texture, only if this
    192199  std::string             modelLODName;       //!< the name of the model lod file
Note: See TracChangeset for help on using the changeset viewer.