22 #ifndef SCUMM_HE_BASKETBALL_COURT_H 23 #define SCUMM_HE_BASKETBALL_COURT_H 27 #include "scumm/he/intern_he.h" 29 #include "scumm/he/basketball/collision/bball_collision_object.h" 30 #include "scumm/he/basketball/collision/bball_collision_box.h" 31 #include "scumm/he/basketball/collision/bball_collision_basketball.h" 32 #include "scumm/he/basketball/collision/bball_collision_player.h" 33 #include "scumm/he/basketball/collision/bball_collision_support_obj.h" 34 #include "scumm/he/basketball/collision/bball_collision_stack.h" 35 #include "scumm/he/basketball/collision/bball_collision_tree.h" 37 #include "scumm/he/logic_he.h" 43 #define MAX_PLAYERS_ON_TEAM 5 46 #define FIRST_PLAYER 0 47 #define AWAY_PLAYER_1 5 53 #define SHOT_SPOT_RADIUS 13 56 #define COURT_DOBBAGUCHI 1 57 #define COURT_SMITH_BROS 2 58 #define COURT_SANDY_FLATS 3 59 #define COURT_QUEENS 4 60 #define COURT_PLAYGROUND 5 61 #define COURT_SCHEFFLER 6 63 #define COURT_MCMILLAN 8 64 #define COURT_CROWN_HILL 9 65 #define COURT_MEMORIAL 10 66 #define COURT_TECH_STATE 11 67 #define COURT_HUMONGOUS 12 70 #define COURT_COUNT 15 76 _backboardIndex[0] = 0;
77 _backboardIndex[1] = 0;
80 ~CBBallCourt() =
default;
82 int getPlayerIndex(
int playerID);
83 CCollisionPlayer *getPlayerPtr(
int playerID);
84 CCollisionBasketball *getBallPtr(
int ballID);
87 return (i < AWAY_PLAYER_1) ? &_homePlayerList : &_awayPlayerList;
91 return (i < AWAY_PLAYER_1) ? &_awayPlayerList : &_homePlayerList;
96 CCollisionBasketball _basketBall;
97 CCollisionBasketball _virtualBall;
100 CCollisionObjectTree _objectTree;
104 int _backboardIndex[2];
105 U32Sphere _shotSpot[2] = {};
112 #endif // SCUMM_HE_BASKETBALL_COURT_H