control v2.

This commit is contained in:
oz 2021-01-20 17:28:48 +03:00
parent 5252fb1b7e
commit d4febb4082
7 changed files with 991 additions and 8 deletions

Binary file not shown.

View File

@ -15,8 +15,8 @@ TBlocker::TBlocker(TPinballTable* table, int groupIndex) : TCollisionComponent(t
loader::query_visual(groupIndex, 0, &visual);
SoundIndex4 = visual.SoundIndex4;
SoundIndex3 = visual.SoundIndex3;
Unknown0 = 55;
Unknown1 = 5;
TurnOnMsgValue = 55;
TurnOffMsgValue = 5;
MaxCollisionSpeed = 1000000000.0f;
Timer = 0;
MessageField = 0;

View File

@ -10,8 +10,8 @@ public:
static void TimerExpired(int timerId, void* caller);
int Unknown0;
int Unknown1;
int TurnOnMsgValue;
int TurnOffMsgValue;
int Timer;
int SoundIndex4;
int SoundIndex3;

View File

@ -8,6 +8,9 @@ class TZmapList;
enum class message_code
{
Reset = 1024,
LightActiveCount = 37,
LightTotalCount = 38,
LightSetMessageField = 23,
};
class TPinballComponent

File diff suppressed because it is too large Load Diff

View File

@ -31,15 +31,22 @@ public:
static component_info score_components[88];
static component_tag* simple_components[142];
static int table_unlimited_balls;
static int RankRcArray[9], MissionRcArray[17];
static void make_links(TPinballTable* table);
static TPinballComponent* make_component_link(component_tag* tag);
static void handler(int code, TPinballComponent* cmp);
static void pbctrl_bdoor_controller(int key);
static void table_add_extra_ball(float count);
static void table_set_bonus_hold();
static void table_set_bonus();
static void table_set_jackpot();
static void table_set_flag_lights();
static int cheat_bump_rank();
static BOOL light_on(struct component_tag* tag);
static bool light_on(struct component_tag* tag);
static int SpecialAddScore(int score);
static int AddRankProgress(int rank);
static void AdvanceWormHoleDestination(int flag);
static void FlipperRebounderControl1(int code, TPinballComponent* caller);
static void FlipperRebounderControl2(int code, TPinballComponent* caller);
@ -102,6 +109,40 @@ public:
static void table_control_handler(int code);
static void AlienMenaceController(int code, TPinballComponent* caller);
static void AlienMenacePartTwoController(int code, TPinballComponent* caller);
static void BlackHoleThreatController(int code, TPinballComponent* caller);
static void BugHuntController(int code, TPinballComponent* caller);
static void CosmicPlagueController(int code, TPinballComponent* caller);
static void CosmicPlaguePartTwoController(int code, TPinballComponent* caller);
static void DoomsdayMachineController(int code, TPinballComponent* caller);
static void GameoverController(int code, TPinballComponent* caller);
static void LaunchTrainingController(int code, TPinballComponent* caller);
static void MaelstromController(int code, TPinballComponent* caller);
static void MaelstromPartEightController(int code, TPinballComponent* caller);
static void MaelstromPartFiveController(int code, TPinballComponent* caller);
static void MaelstromPartFourController(int code, TPinballComponent* caller);
static void MaelstromPartSevenController(int code, TPinballComponent* caller);
static void MaelstromPartSixController(int code, TPinballComponent* caller);
static void MaelstromPartThreeController(int code, TPinballComponent* caller);
static void MaelstromPartTwoController(int code, TPinballComponent* caller);
static void PracticeMissionController(int code, TPinballComponent* caller);
static void ReconnaissanceController(int code, TPinballComponent* caller);
static void ReentryTrainingController(int code, TPinballComponent* caller);
static void RescueMissionController(int code, TPinballComponent* caller);
static void SatelliteController(int code, TPinballComponent* caller);
static void ScienceMissionController(int code, TPinballComponent* caller);
static void SecretMissionGreenController(int code, TPinballComponent* caller);
static void SecretMissionRedController(int code, TPinballComponent* caller);
static void SecretMissionYellowController(int code, TPinballComponent* caller);
static void SelectMissionController(int code, TPinballComponent* caller);
static void SpaceRadiationController(int code, TPinballComponent* caller);
static void StrayCometController(int code, TPinballComponent* caller);
static void TimeWarpController(int code, TPinballComponent* caller);
static void TimeWarpPartTwoController(int code, TPinballComponent* caller);
static void UnselectMissionController(int code, TPinballComponent* caller);
static void WaitingDeploymentController(int code, TPinballComponent* caller);
private:
static int pbctrl_state;
static int extraball_light_flag;
};

View File

@ -13,6 +13,7 @@ public:
static int cheat_mode, game_mode;
static datFileStruct* record_table;
static TPinballTable* MainTable;
static high_score_struct highscore_table[5];
static int init();
static int uninit();
@ -39,6 +40,5 @@ public:
static float collide(float timeNow, float timeDelta, TBall* ball);
private :
static int demo_mode, mode_countdown_;
static high_score_struct highscore_table[5];
static int state;
};