Changeset 5668 for code/branches/resource2/src/ois/OISEffect.cpp
- Timestamp:
- Aug 22, 2009, 11:16:34 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource2/src/ois/OISEffect.cpp
r1505 r5668 29 29 //Perhaps a case of a crazy extreme optimizer :/ (moved to header) 30 30 //const unsigned int Effect::OIS_INFINITE = 0xFFFFFFFF; 31 32 //------------------------------------------------------------------------------// 33 static const char* pszEForceString[] = 34 { "UnknownForce", 35 "ConstantForce", 36 "RampForce", 37 "PeriodicForce", 38 "ConditionalForce", 39 "CustomForce" }; 40 41 const char* Effect::getForceTypeName(Effect::EForce eValue) 42 { 43 return (eValue >= 0 && eValue < _ForcesNumber) ? pszEForceString[eValue] : "<Bad force type>"; 44 } 45 46 static const char* pszETypeString[] = 47 { "Unknown", 48 "Constant", 49 "Ramp", 50 "Square", "Triangle", "Sine", "SawToothUp", "SawToothDown", 51 "Friction", "Damper", "Inertia", "Spring", 52 "Custom" }; 53 54 const char* Effect::getEffectTypeName(Effect::EType eValue) 55 { 56 return (eValue >= 0 && eValue < _TypesNumber) ? pszETypeString[eValue] : "<Bad effect type>"; 57 } 58 59 static const char* pszEDirectionString[] = 60 { "NorthWest", "North", "NorthEast", "East", "SouthEast", "South", "SouthWest", "West"}; 61 62 const char* Effect::getDirectionName(Effect::EDirection eValue) 63 { 64 return (eValue >= 0 && eValue < _DirectionsNumber) ? pszEDirectionString[eValue] : "<Bad direction>"; 65 } 31 66 32 67 //------------------------------------------------------------------------------//
Note: See TracChangeset
for help on using the changeset viewer.