1
0
Fork 0
mirror of https://github.com/k4zmu2a/SpaceCadetPinball.git synced 2025-11-11 12:53:44 +01:00
SpaceCadetPinball/SpaceCadetPinball/TPinballComponent.h

38 lines
844 B
C
Raw Normal View History

#pragma once
2020-12-19 17:49:31 +03:00
2021-01-30 14:19:25 +03:00
struct zmap_header_type;
struct gdrv_bitmap8;
2020-12-25 16:46:06 +03:00
struct render_sprite_type_struct;
struct component_control;
class TPinballTable;
2020-12-25 16:46:06 +03:00
enum class message_code
{
Reset = 1024,
2021-01-20 17:28:48 +03:00
LightActiveCount = 37,
LightTotalCount = 38,
LightSetMessageField = 23,
2020-12-25 16:46:06 +03:00
};
class TPinballComponent
2020-11-04 16:22:52 +03:00
{
public:
TPinballComponent(TPinballTable* table, int groupIndex, bool loadVisuals);
2020-11-04 16:22:52 +03:00
virtual ~TPinballComponent();
virtual int Message(int code, float value);
virtual void port_draw();
virtual void put_scoring(int index, int score);
virtual int get_scoring(int index);
char UnusedBaseFlag;
char ActiveFlag;
2020-11-04 16:22:52 +03:00
int MessageField;
char* GroupName;
2020-12-19 17:49:31 +03:00
component_control* Control;
int GroupIndex;
2020-11-08 18:37:59 +03:00
render_sprite_type_struct* RenderSprite;
TPinballTable* PinballTable;
std::vector<gdrv_bitmap8*>* ListBitmap;
std::vector<zmap_header_type*>* ListZMap;
};