Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 28, 2008, 10:13:58 PM (16 years ago)
Author:
landauf
Message:
  • added CommandExecutor
  • added ConsoleCommand macros
  • added getTypename to all MultiTypes
  • added 2 static maps to Identifier that contain all existing Identifiers with their names and lowercase names respectively.
  • added 2 maps to each Identifier that contain all console commands of the Identifier with their names and lowercase names respectively
  • using tolower(.) and toupper(.) instead of selfmade hacks in String.h
  • added AccessLevel enum
  • added some test-console-commands to OutputHandler, Ambient and SpaceShip
File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core2/src/util/MultiTypeString.cc

    r933 r947  
    104104}
    105105
     106std::string MultiTypeString::getTypename() const
     107{
     108    if (this->type_ == MT_constchar)
     109        return "string";
     110    else if (this->type_ == MT_string)
     111        return "string";
     112    else if (this->type_ == MT_xmlelement)
     113        return "XML-element";
     114    else
     115        return MultiTypePrimitive::getTypename();
     116}
     117
    106118std::string MultiTypeString::toString() const
    107119{
Note: See TracChangeset for help on using the changeset viewer.