Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 21, 2008, 4:56:41 PM (16 years ago)
Author:
landauf
Message:
  • added ControllableEntity, the baseclass of all players, vehicles and ships.
  • moved Template to core
  • some changes in Camera
  • added 6 constants to WorldEntity to identify relative directions
  • changed vom Radian to Degree as default angle unit
File:
1 moved

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/core/Template.cc

    • Property svn:mergeinfo set to (toggle deleted branches)
      /code/branches/ceguilua/src/orxonox/objects/Template.cc1802-1808
      /code/branches/core3/src/orxonox/objects/Template.cc1572-1739
      /code/branches/gcc43/src/orxonox/objects/Template.cc1580
      /code/branches/gui/src/orxonox/objects/Template.cc1635-1723
      /code/branches/input/src/orxonox/objects/Template.cc1629-1636
      /code/branches/script_trigger/src/orxonox/objects/Template.cc1295-1953,​1955
    r1971 r1989  
    4949    Template::~Template()
    5050    {
     51        Template::getTemplateMap().erase(this->getName());
    5152    }
    5253
     
    5960
    6061        this->setXMLElement(*xmlelement.FirstChildElement(false));
     62    }
     63
     64    void Template::changedName()
     65    {
     66        if (this->getName() != "")
     67        {
     68            std::map<std::string, Template*>::iterator it;
     69            it = Template::getTemplateMap().find(this->getOldName());
     70            if (it != Template::getTemplateMap().end())
     71                Template::getTemplateMap().erase(it);
     72
     73            it = Template::getTemplateMap().find(this->getName());
     74            if (it != Template::getTemplateMap().end())
     75                COUT(2) << "Warning: Template with name \"" << this->getName() << "\" already exists." << std::endl;
     76            else
     77                Template::getTemplateMap()[this->getName()] = this;
     78        }
    6179    }
    6280
Note: See TracChangeset for help on using the changeset viewer.