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/MultiTypeMath.cc

    r933 r947  
    144144}
    145145
     146std::string MultiTypeMath::getTypename() const
     147{
     148    if (this->type_ == MT_vector2)
     149        return "Vector2";
     150    else if (this->type_ == MT_vector3)
     151        return "Vector3";
     152    else if (this->type_ == MT_colourvalue)
     153        return "ColourValue";
     154    else if (this->type_ == MT_quaternion)
     155        return "Quaternion";
     156    else if (this->type_ == MT_radian)
     157        return "Radian";
     158    else if (this->type_ == MT_degree)
     159        return "Degree";
     160    else
     161        return MultiTypeString::getTypename();
     162}
     163
    146164std::string MultiTypeMath::toString() const
    147165{
Note: See TracChangeset for help on using the changeset viewer.