SpaceCadetPinball/SpaceCadetPinball/TPinballComponent.h

43 lines
959 B
C
Raw Normal View History

#pragma once
2021-01-30 12:19:25 +01:00
#include "objlist_class.h"
2020-12-19 15:49:31 +01:00
2021-01-30 12:19:25 +01:00
struct zmap_header_type;
struct gdrv_bitmap8;
2020-12-25 14:46:06 +01:00
struct render_sprite_type_struct;
struct component_control;
class TPinballTable;
2020-12-25 14:46:06 +01:00
enum class message_code
{
Reset = 1024,
2021-01-20 15:28:48 +01:00
LightActiveCount = 37,
LightTotalCount = 38,
LightSetMessageField = 23,
2020-12-25 14:46:06 +01:00
};
class TPinballComponent
2020-11-04 14:22:52 +01:00
{
public:
TPinballComponent(TPinballTable* table, int groupIndex, bool loadVisuals);
2020-11-04 14:22:52 +01: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);
2021-01-18 16:30:19 +01:00
void* operator new(size_t Size);
void operator delete(void* p);
2021-01-28 16:01:26 +01:00
__int8 UnusedBaseFlag;
__int8 ActiveFlag;
2020-11-04 14:22:52 +01:00
int MessageField;
char* GroupName;
int Unknown4;
2020-12-19 15:49:31 +01:00
component_control* Control;
int GroupIndex;
2020-11-08 16:37:59 +01:00
render_sprite_type_struct* RenderSprite;
TPinballTable* PinballTable;
2021-01-30 12:19:25 +01:00
objlist_class<gdrv_bitmap8>* ListBitmap;
objlist_class<zmap_header_type>* ListZMap;
};