Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 9757 in orxonox.OLD for branches/new_class_id/src/story_entities


Ignore:
Timestamp:
Sep 18, 2006, 10:06:19 PM (18 years ago)
Author:
bensch
Message:

new_class_id: hups… this was bad naming… confusing too.

Location:
branches/new_class_id/src/story_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/new_class_id/src/story_entities/game_world.cc

    r9746 r9757  
    6363#include "script_class.h"
    6464ObjectListDefinition(GameWorld);
    65 CREATE_SCRIPTABLE_CLASS(GameWorld, GameWorld::classID(),
     65CREATE_SCRIPTABLE_CLASS(GameWorld,
    6666                        addMethod("setPlaymode", Executor1<GameWorld, lua_State*,const std::string&>(&GameWorld::setPlaymode))
    6767                        ->addMethod("setSoundtrack", Executor1<GameWorld, lua_State*, const std::string&>(&GameWorld::setSoundtrack))
  • branches/new_class_id/src/story_entities/game_world_data.cc

    r9727 r9757  
    213213
    214214      //todo do this more elegant
    215       if( element->Value() == "SkyBox" && created->isA(SkyBox::classID()))
     215      if( element->Value() == "SkyBox" && created->isA(SkyBox::staticClassID()))
    216216      {
    217217        this->sky = dynamic_cast<WorldEntity*>(created);
    218218        State::setSkyBox(dynamic_cast<SkyBox*>(this->sky));
    219219      }
    220       if( element->Value() == "Terrain" && created->isA(Terrain::classID()))
     220      if( element->Value() == "Terrain" && created->isA(Terrain::staticClassID()))
    221221      {
    222222        this->terrain = dynamic_cast<Terrain*>(created);
     
    398398    PRINTF(2)("creating %s\n", element->Value());
    399399    BaseObject* created = Factory::fabricate(element);
    400     if (created != NULL && created->isA(GameRules::classID()))
     400    if (created != NULL && created->isA(GameRules::staticClassID()))
    401401    {
    402402      this->gameRule = dynamic_cast<GameRules*>(created);
Note: See TracChangeset for help on using the changeset viewer.