Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 30, 2009, 2:22:00 AM (15 years ago)
Author:
rgrieder
Message:

Merged resource2 branch back to trunk.

IMPORTANT NOTE:
Upon this merge you need to specifically call your data directory "data_extern" when checking it out (when you don't provide a name, it will be just called 'trunk').
The new CMake variable is EXTERNAL_DATA_DIRECTORY. DATA_DIRECTORY now points to the one the source part of the repository.
UPDATE YOUR DATA DIRECTORY AS WELL!!!

Location:
code/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk

  • code/trunk/src/ois/OISEffect.cpp

    r1505 r5695  
    2929//Perhaps a case of a crazy extreme optimizer :/ (moved to header)
    3030//const unsigned int Effect::OIS_INFINITE = 0xFFFFFFFF;
     31
     32//------------------------------------------------------------------------------//
     33static const char* pszEForceString[] =
     34  { "UnknownForce",
     35    "ConstantForce",
     36    "RampForce",
     37    "PeriodicForce",
     38    "ConditionalForce",
     39    "CustomForce" };
     40
     41const char* Effect::getForceTypeName(Effect::EForce eValue)
     42{
     43  return (eValue >= 0 && eValue < _ForcesNumber) ? pszEForceString[eValue] : "<Bad force type>";
     44}
     45
     46static const char* pszETypeString[] =
     47  { "Unknown",
     48    "Constant",
     49    "Ramp",
     50    "Square", "Triangle", "Sine", "SawToothUp", "SawToothDown",
     51    "Friction", "Damper", "Inertia", "Spring",
     52    "Custom" };
     53
     54const char* Effect::getEffectTypeName(Effect::EType eValue)
     55{
     56  return (eValue >= 0 && eValue < _TypesNumber) ? pszETypeString[eValue] : "<Bad effect type>";
     57}
     58
     59static const char* pszEDirectionString[] =
     60  { "NorthWest", "North", "NorthEast", "East", "SouthEast", "South", "SouthWest", "West"};
     61
     62const char* Effect::getDirectionName(Effect::EDirection eValue)
     63{
     64  return (eValue >= 0 && eValue < _DirectionsNumber) ? pszEDirectionString[eValue] : "<Bad direction>";
     65}
    3166
    3267//------------------------------------------------------------------------------//
Note: See TracChangeset for help on using the changeset viewer.