Subversion Repositories Games.Carmageddon

Rev

Rev 1 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

  1. #ifndef _NETGAME_H_
  2. #define _NETGAME_H_
  3.  
  4. #include "dr_types.h"
  5.  
  6. extern int gPowerup_cost[4];
  7. extern int gGame_scores[6];
  8. extern int gPed_target;
  9. extern int gNot_shown_race_type_headup;
  10. extern tU32 gLast_it_change;
  11. extern tU32 gTime_for_punishment;
  12. extern tNet_game_player_info* gLast_lepper;
  13. extern int gInitialised_grid;
  14. extern int gIt_or_fox;
  15.  
  16. void SendCarData(tU32 pNext_frame_time);
  17.  
  18. void ReceivedRecover(tNet_contents* pContents);
  19.  
  20. void CopyMechanics(tCar_spec* pCar, tNet_contents* pContents);
  21.  
  22. void ReceivedMechanics(tNet_contents* pContents);
  23.  
  24. void ReceivedCopInfo(tNet_contents* pContents);
  25.  
  26. void SendAllNonCarPositions(void);
  27.  
  28. void ReceivedNonCarPosition(tNet_contents* pContents);
  29.  
  30. void ReceivedNonCar(tNet_contents* pContents);
  31.  
  32. void SignalToStartRace2(int pIndex);
  33.  
  34. void SignalToStartRace(void);
  35.  
  36. void SetUpNetCarPositions(void);
  37.  
  38. void ReinitialiseCar(tCar_spec* pCar);
  39.  
  40. void RepositionPlayer(int pIndex);
  41.  
  42. void DisableCar(tCar_spec* pCar);
  43.  
  44. void EnableCar(tCar_spec* pCar);
  45.  
  46. void DoNetworkHeadups(int pCredits);
  47.  
  48. int SortNetHeadAscending(void* pFirst_one, void* pSecond_one);
  49.  
  50. int SortNetHeadDescending(void* pFirst_one, void* pSecond_one);
  51.  
  52. void ClipName(char* pName, tDR_font* pFont, int pMax_width);
  53.  
  54. void DoNetScores2(int pOnly_sort_scores);
  55.  
  56. void DoNetScores(void);
  57.  
  58. void InitNetHeadups(void);
  59.  
  60. void DisposeNetHeadups(void);
  61.  
  62. void EverybodysLost(void);
  63.  
  64. void DeclareWinner(int pWinner_index);
  65.  
  66. void PlayerIsIt(tNet_game_player_info* pPlayer);
  67.  
  68. int FarEnoughAway(tNet_game_player_info* pPlayer_1, tNet_game_player_info* pPlayer_2);
  69.  
  70. void CarInContactWithItOrFox(tNet_game_player_info* pPlayer);
  71.  
  72. void SelectRandomItOrFox(int pNot_this_one);
  73.  
  74. void CalcPlayerScores(void);
  75.  
  76. void SendPlayerScores(void);
  77.  
  78. void DoNetGameManagement(void);
  79.  
  80. void InitialisePlayerScore(tNet_game_player_info* pPlayer);
  81.  
  82. void InitPlayers(void);
  83.  
  84. void BuyPSPowerup(int pIndex);
  85.  
  86. void BuyArmour(void);
  87.  
  88. void BuyPower(void);
  89.  
  90. void BuyOffense(void);
  91.  
  92. void UseGeneralScore(int pScore);
  93.  
  94. void NetSendEnvironmentChanges(tNet_game_player_info* pPlayer);
  95.  
  96. void UpdateEnvironments(void);
  97.  
  98. void ReceivedGameplay(tNet_contents* pContents, tNet_message* pMessage, tU32 pReceive_time);
  99.  
  100. void SendGameplay(tPlayer_ID pPlayer, tNet_gameplay_mess pMess, int pParam_1, int pParam_2, int pParam_3, int pParam_4);
  101.  
  102. void SendGameplayToAllPlayers(tNet_gameplay_mess pMess, int pParam_1, int pParam_2, int pParam_3, int pParam_4);
  103.  
  104. void SendGameplayToHost(tNet_gameplay_mess pMess, int pParam_1, int pParam_2, int pParam_3, int pParam_4);
  105.  
  106. void InitNetGameplayStuff(void);
  107.  
  108. void DefaultNetName(void);
  109.  
  110. void NetSendPointCrush(tCar_spec* pCar, tU16 pCrush_point_index, br_vector3* pEnergy_vector);
  111.  
  112. void RecievedCrushPoint(tNet_contents* pContents);
  113.  
  114. void GetReducedMatrix(tReduced_matrix* m1, br_matrix34* m2);
  115.  
  116. void GetExpandedMatrix(br_matrix34* m1, tReduced_matrix* m2);
  117.  
  118. void NetEarnCredits(tNet_game_player_info* pPlayer, tS32 pCredits);
  119.  
  120. #endif
  121.