Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 7, 2006, 10:07:54 PM (18 years ago)
Author:
patrick
Message:

bsp: changed the BSPEntity name to BspEntity for more consistency, using new interface

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/bsp_model/src/world_entities/bsp_entity.cc

    r8195 r8218  
    1717#include "util/loading/resource_manager.h"
    1818
    19 CREATE_FACTORY(BSPEntity, CL_BSP_ENTITY);
     19CREATE_FACTORY(BspEntity, CL_BSP_ENTITY);
    2020
    2121
    2222/**
    23  * constructs and loads a BSPEntity from a XML-element
     23 * constructs and loads a BspEntity from a XML-element
    2424 * @param root the XML-element to load from
    2525 */
    26 BSPEntity::BSPEntity(const TiXmlElement* root)
     26BspEntity::BspEntity(const TiXmlElement* root)
    2727{
    2828  this->init();
     
    3535 * standard deconstructor
    3636 */
    37 BSPEntity::~BSPEntity ()
     37BspEntity::~BspEntity ()
    3838{
    3939
    4040}
    4141
    42 void BSPEntity::setName(const std::string& name)
     42void BspEntity::setName(const std::string& name)
    4343{
    4444  printf("+++++++++++ LOADING NAME %s\n", name.c_str());
     
    5050
    5151/**
    52  * initializes the BSPEntity
     52 * initializes the BspEntity
    5353 * @todo change this to what you wish
    5454 */
    55 void BSPEntity::init()
     55void BspEntity::init()
    5656{
    5757  this->bspManager = new BspManager();
    58   this->setClassID(CL_BSP_ENTITY, "BSPEntity");
     58  this->setClassID(CL_BSP_ENTITY, "BspEntity");
    5959
    6060  this->toList(OM_ENVIRON);
     
    6868
    6969/**
    70  * loads a BSPEntity from a XML-element
     70 * loads a BspEntity from a XML-element
    7171 * @param root the XML-element to load from
    7272 * @todo make the class Loadable
    7373 */
    74 void BSPEntity::loadParams(const TiXmlElement* root)
     74void BspEntity::loadParams(const TiXmlElement* root)
    7575{
    7676  // all the clases this Entity is directly derived from must be called in this way, to load all settings.
    7777 // WorldEntity::loadParam(root);
    7878
    79   LoadParam(root, "Name", this, BSPEntity, setName)
     79  LoadParam(root, "Name", this, BspEntity, setName)
    8080      .describe("Sets the of the BSP file.");
    8181
     
    9191
    9292/**
    93  * advances the BSPEntity about time seconds
     93 * advances the BspEntity about time seconds
    9494 * @param time the Time to step
    9595 */
    96 void BSPEntity::tick(float time)
     96void BspEntity::tick(float time)
    9797{
    9898  this->bspManager->tick(time);
     
    103103 * draws this worldEntity
    104104 */
    105 void BSPEntity::draw () const
     105void BspEntity::draw () const
    106106{
    107107  this->bspManager->draw();
     
    113113 *
    114114 */
    115 void BSPEntity::collidesWith (WorldEntity* entity, const Vector& location)
     115void BspEntity::collidesWith (WorldEntity* entity, const Vector& location)
    116116{
    117117
Note: See TracChangeset for help on using the changeset viewer.