home *** CD-ROM | disk | FTP | other *** search
/ Micromanía 90 / CDMM_90_1.ISO / Cycling Manager 2 / CyclingManager2Demo.exe / Disk1 / data1.cab / Game / DataCommon / ScriptsLibrary / StandardLibrary.cnh < prev    next >
Encoding:
Text File  |  2002-05-10  |  2.7 KB  |  106 lines

  1. var f32x MATH_PI = 3.14159265359;
  2. var f32x MATH_2PI = 6.28318530718;
  3. var f32x MATH_PI_DIV2 = 1.5707963268;
  4.  
  5. var i32x NULL = 0;
  6.  
  7. // Base class for sprite
  8. class Menu_Sprite
  9. {
  10. };
  11. class Menu_Kit
  12. {
  13. };
  14. class Menu_Material
  15. {
  16. };
  17. class Menu_Mesh
  18. {
  19. };
  20. class Display_List
  21. {
  22. };
  23.  
  24. func i32x isdebug();
  25. func i32x isAIdebug();
  26. func i32x isDemo();
  27. func f32x getCMversion();
  28.  
  29. func szx print(szx szString);
  30. func szx println(szx szString);
  31.  
  32. func i32x strlen(szx szString);
  33. func i32x strcmp(szx szString1, szx szString2);
  34. func szx strupr(szx szString);
  35. func szx strlwr(szx szString);
  36. func szx strncpy(szx szString,i32x iStart, i32x iLength);
  37. func szx strcat(szx szString1, szx szString2);
  38.  
  39. func szx itoa(i32x iInteger);
  40. func szx itohex8(i32x iInteger);
  41. func i32x atoi(szx szString);
  42. func szx ftoa(f32x fFloat);
  43. func szx Formattedftoa(f32x fFloat,i32x iEntire,i32x iDecimal);
  44.  
  45. func szx GetHMS(f32x fFloat);
  46.  
  47. func f32x atof(szx szString);
  48.  
  49. func i32x rand(i32x iMax);
  50. func i32x randomize(i32x iSeed);
  51. func i32x randomizetimer();
  52.  
  53. func i32x GetBit(i32x uiBitField,i32x iBit);
  54. func i32x SetBit(i32x uiBitField,i32x iBit, i32x iValue);
  55.  
  56. // Maths tools
  57. func i32x abs(i32x _i);
  58. func f32x fabs(f32x _f);
  59. func f32x fmod(f32x _f,f32x _f2);
  60. func f32x cos(f32x _f);
  61. func f32x sin(f32x _f);
  62. func f32x tan(f32x _f);
  63. func f32x acos(f32x _f);
  64. func f32x asin(f32x _f);
  65. func f32x atan(f32x _f);
  66.  
  67.  
  68. // file tools
  69.  
  70. class FILE;
  71. class FILEBUF;
  72.  
  73. var i32x C_File_eMode_WRITE_TRUNC_TEXT = 1;
  74. var i32x C_File_eMode_WRITE_APPEND_TEXT = 2;
  75. var i32x C_File_eMode_READ_TEXT = 3;
  76. var i32x C_File_eMode_WRITE_TRUNC_BINARY = 4;
  77. var i32x C_File_eMode_WRITE_APPEND_BINARY = 5;
  78. var i32x C_File_eMode_READ_BINARY = 6;
  79.  
  80. var i32x C_Dir_eModeLocal = 0;
  81. var i32x C_Dir_eModeRoot = 1;
  82.  
  83. var i32x C_File_eSeekFromStart = 0;
  84. var i32x C_File_eSeekFromCurrent = 1;
  85. var i32x C_File_eSeekFromEnd = 2;
  86.  
  87. func FILE        fopen                (szx _szFilename, i32x _iFilemode, i32x _iDirmode );
  88. func i32x        fclose                (FILE _pFile);
  89. func i32x        fread                (FILE _pFile, FILEBUF _pBuffer,i32x _iBlockSize, i32x _iBlockNumber);
  90. func i32x        fwrite                (FILE _pFile, FILEBUF _pBuffer,i32x _iBlockSize, i32x _iBlockNumber);
  91. func i32x        fseek                (FILE _pFile, i32x _iOffset,i32x _iSeekOrigin);
  92. func i32x        freadline            (FILE _pFile, FILEBUF _pBuffer);
  93. func i32x        fwriteline            (FILE _pFile, szx _szLine);
  94. func FILEBUF    CreateFileBuf        (i32x _iSize);
  95. func void        DeleteFileBuf        (FILEBUF _pBuffer);
  96. func szx        GetStringFromBuf    (FILEBUF _pBuffer);
  97.  
  98.  
  99.  
  100. // Rgba tools
  101. func i32x MakeARGB(i32x _a,i32x _r,i32x _g,i32x _b);
  102. func i32x GetAlpha(i32x _iColor);
  103. func i32x GetRed(i32x _iColor);
  104. func i32x GetGreen(i32x _iColor);
  105. func i32x GetBlue(i32x _iColor);
  106.