1
0
mirror of https://github.com/jummy0/sb2-decomp synced 2025-03-21 15:12:10 +01:00
sb2-decomp/decor.cpp
HMVocaloid 7579449f98 Progress on CDecor
Added some network code, among other changes.
2024-05-30 21:58:09 -04:00

74 lines
1.2 KiB
C++

// CDecor.cpp
//
#include <windows.h>
#include <stdlib.h>
#include <stdio.h>
#include <ddraw.h>
#include "def.h"
#include "resource.h"
#include "pixmap.h"
#include "sound.h"
#include "decor.h"
#include "action.h"
#include "text.h"
#include "misc.h"
#include "fifo.h"
#include "DECMOVE.h"
////////////////////////////////////////////////////////////////////////////////
#define TEXTDELAY 10
// Constructor
// Possibly incomplete
CDecor::CDecor()
{
m_hWnd = NULL;
m_pSound = NULL;
m_pPixmap = NULL;
m_time = 0;
m_bAllMissions = FALSE;
m_bInvincible = FALSE;
m_bShowSecret = FALSE;
m_bAccessBuild = FALSE;
m_bNetPacked = FALSE;
m_bNetMovePredict = TRUE;
m_bNetDebug = FALSE;
m_bMulti = FALSE;
m_team = FALSE;
m_netPacketsSent = 0;
m_netPacketsSent2 = 0;
m_netPacketsRecieved = 0;
m_netPacketsRecieved2 = 0;
Init(CHFLOOR, 0);
BlupiFlush();
MoveFlush();
InitDrapeau();
}
CDecor::~CDecor()
{
UndoClose();
}
void CDecor::SetTime(int time)
{
m_time = time;
}
int CDecor::GetTime()
{
return m_time;
}
int CDecor::GetTargetLevel(int mission)
{
m_targetMission = mission;
}