mirror of
https://github.com/jummy0/sb2-decomp
synced 2025-03-15 04:24:48 +01:00
oops
This commit is contained in:
parent
e07da2253a
commit
d777318642
47
src/decor.h
47
src/decor.h
@ -52,13 +52,32 @@ MoveObject;
|
|||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
short type;
|
char type;
|
||||||
short x;
|
char data1;
|
||||||
short y;
|
short data2;
|
||||||
short z;
|
short data3;
|
||||||
|
short data4;
|
||||||
}
|
}
|
||||||
NetMessage;
|
NetMessage;
|
||||||
|
|
||||||
|
typedef struct
|
||||||
|
{
|
||||||
|
char size;
|
||||||
|
char type;
|
||||||
|
short keyPress;
|
||||||
|
int time;
|
||||||
|
short blupiPosX;
|
||||||
|
short blupiPosY;
|
||||||
|
short blupiIcon;
|
||||||
|
short blupiSec;
|
||||||
|
char blupiChannel;
|
||||||
|
char blupiTransport;
|
||||||
|
char unk12;
|
||||||
|
char nbMessages;
|
||||||
|
NetMessage messages[MAXMESSAGEPERPACKET];
|
||||||
|
}
|
||||||
|
NetPacket;
|
||||||
|
|
||||||
typedef struct
|
typedef struct
|
||||||
{
|
{
|
||||||
short majRev;
|
short majRev;
|
||||||
@ -343,7 +362,7 @@ public:
|
|||||||
void StartSploutchGlu(POINT pos);
|
void StartSploutchGlu(POINT pos);
|
||||||
BOOL ObjectStart(POINT pos, int type, int speed);
|
BOOL ObjectStart(POINT pos, int type, int speed);
|
||||||
BOOL ObjectStart(POINT pos, int type, int speed, BOOL bMulti);
|
BOOL ObjectStart(POINT pos, int type, int speed, BOOL bMulti);
|
||||||
BOOL ObjectDelete(POINT pos, int type, BOOL bMulti = FALSE);
|
BOOL ObjectDelete(POINT pos, int type, BOOL bMulti = TRUE);
|
||||||
void MoveObjectStep();
|
void MoveObjectStep();
|
||||||
void MoveObjectStepLine(int i);
|
void MoveObjectStepLine(int i);
|
||||||
void MoveObjectStepIcon(int i);
|
void MoveObjectStepIcon(int i);
|
||||||
@ -379,11 +398,11 @@ public:
|
|||||||
void NetPlaySound(short channel, POINT pos);
|
void NetPlaySound(short channel, POINT pos);
|
||||||
void NetStopSound(short channel);
|
void NetStopSound(short channel);
|
||||||
void NetDataFlush();
|
void NetDataFlush();
|
||||||
void NetFUN_155e0(BYTE _foo, short _bar);
|
void NetSendBarePacket(BYTE _foo, short _bar);
|
||||||
void TreatNetData();
|
void TreatNetData();
|
||||||
void DoNetSmooth(int player);
|
void DoNetSmooth(int player);
|
||||||
void NetAdjustToLift();
|
void NetAdjustToLift();
|
||||||
void FUN_15da0(int rank, short step);
|
void NetAscenseurSynchro(int rank, short step);
|
||||||
void NetPlayerCollide(POINT pos, int *out);
|
void NetPlayerCollide(POINT pos, int *out);
|
||||||
void NetMessageIndexFlush();
|
void NetMessageIndexFlush();
|
||||||
BOOL NetMessagePush(NetMessage *message);
|
BOOL NetMessagePush(NetMessage *message);
|
||||||
@ -507,16 +526,16 @@ protected:
|
|||||||
int m_netPacketsSent2;
|
int m_netPacketsSent2;
|
||||||
int m_netPacketsReceived;
|
int m_netPacketsReceived;
|
||||||
int m_netPacketsReceived2;
|
int m_netPacketsReceived2;
|
||||||
POINT m_netPos[MAXNETPLAYER];
|
POINT m_netBlupiPos[MAXNETPLAYER];
|
||||||
int m_netIcons[MAXNETPLAYER];
|
int m_netBlupiIcon[MAXNETPLAYER];
|
||||||
int m_netUnk1[MAXNETPLAYER];
|
int m_netBlupiSec[MAXNETPLAYER];
|
||||||
int m_netUnk2[MAXNETPLAYER];
|
int m_netBlupiTransport[MAXNETPLAYER];
|
||||||
int m_netTransports[MAXNETPLAYER]; // index of lift ridden by each player, or -1
|
int m_netTransports[MAXNETPLAYER]; // index of lift ridden by each player, or -1
|
||||||
int m_netPlayerPacketsReceived[MAXNETPLAYER];
|
int m_netTimes[MAXNETPLAYER];
|
||||||
int m_netPlayerPacketsReceived2[MAXNETPLAYER];
|
int m_netPrevTimes[MAXNETPLAYER];
|
||||||
int m_netTimeSincePacket[MAXNETPLAYER];
|
int m_netTimeSincePacket[MAXNETPLAYER];
|
||||||
POINT m_netVitesses[MAXNETPLAYER];
|
POINT m_netVitesses[MAXNETPLAYER];
|
||||||
POINT m_netUnk4[MAXNETPLAYER];
|
POINT m_netBlupiPrevPos[MAXNETPLAYER];
|
||||||
POINT m_netPacketPos;
|
POINT m_netPacketPos;
|
||||||
int m_netPacketIcon;
|
int m_netPacketIcon;
|
||||||
NetMessage m_netMessages[MAXNETMESSAGE];
|
NetMessage m_netMessages[MAXNETMESSAGE];
|
||||||
|
14
src/def.h
14
src/def.h
@ -35,6 +35,7 @@
|
|||||||
#define MAXSAVE 6
|
#define MAXSAVE 6
|
||||||
#define MAXDEMO 9999
|
#define MAXDEMO 9999
|
||||||
#define MAXINDEX 20
|
#define MAXINDEX 20
|
||||||
|
#define MAXMESSAGEPERPACKET 5
|
||||||
|
|
||||||
#define LXIMAGE 640 // dimensions de la fenêtre de jeu
|
#define LXIMAGE 640 // dimensions de la fenêtre de jeu
|
||||||
#define LYIMAGE 480
|
#define LYIMAGE 480
|
||||||
@ -91,6 +92,14 @@ enum {
|
|||||||
CHMAX = CHTEMP
|
CHMAX = CHTEMP
|
||||||
};
|
};
|
||||||
|
|
||||||
|
enum {
|
||||||
|
PK_LEAVE = 8,
|
||||||
|
PK_LOST,
|
||||||
|
PK_DIE,
|
||||||
|
|
||||||
|
PK_PAUSE = 12,
|
||||||
|
};
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
MESS_RESUME = 0,
|
MESS_RESUME = 0,
|
||||||
MESS_PAUSE,
|
MESS_PAUSE,
|
||||||
@ -100,11 +109,8 @@ enum {
|
|||||||
MESS_5,
|
MESS_5,
|
||||||
MESS_6,
|
MESS_6,
|
||||||
MESS_7,
|
MESS_7,
|
||||||
MESS_LEAVE,
|
MESS_START = 10,
|
||||||
MESS_LOST,
|
|
||||||
MESS_START,
|
|
||||||
MESS_11,
|
MESS_11,
|
||||||
MESS_PAUSE2,
|
|
||||||
|
|
||||||
MESS_OBJECTSTART = 20,
|
MESS_OBJECTSTART = 20,
|
||||||
MESS_OBJECTDELETE,
|
MESS_OBJECTDELETE,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user