Something went wrong. Try again.
the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
Something went wrong. Try again.
1.3 kB · 76 lines
C
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576#pragma once
class Byte{public: static const char MAX_VALUE = CHAR_MAX; static const char MIN_VALUE = CHAR_MIN;};
class Short{public: static const short MAX_VALUE = SHRT_MAX; static const short MIN_VALUE = SHRT_MIN;};
class Integer{public: static const int MAX_VALUE = INT_MAX; static int parseInt(wstring &str, int radix = 10);};
class Float{public: static const float MAX_VALUE; static int floatToIntBits( float value ) { return *(int *)&value; } static int floatToRawIntBits( float value ) { return *(int *)&value; }
static float intBitsToFloat( int bits ) { return *(float *)&bits; }
static const float POSITIVE_INFINITY;};
class Double{public: static const double MAX_VALUE; static const double MIN_NORMAL;
static bool isNaN( double a ) {#ifdef __PS3__ return isnan(a);#else return ( a != a );#endif } static bool isInfinite( double a ) { return false; /*4J TODO*/ }
static double longBitsToDouble( __int64 bits ) { return *(double *)&bits; }
static __int64 doubleToLongBits( double d ) { return *(__int64 *)&d; }};
// 4J Stu - The String class should only be used if we need to use the BaseClass::class type// As such I have renamed it so that we don't confuse it with places where we should use std::stringclass _String{};