blob: 40a72774ee0c8b3de3a8f49c084dba0f8ab8609e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
#pragma once
#include "common.h"
#include "T2EventItem.h"
#include "T2Transport.h"
class T2MetroRailway : public T2EventItem, public T2Transport {
public:
T2MetroRailway(T2TowerEvent* inTowerEvent, CResFile* inResFile, int inSubID);
T2MetroRailway(T2TowerEvent* inTowerEvent, int inSubID, int inLevelBit, BOOL inExclusive, int inCycleDay, int inBeginTime, int inEndTime);
virtual ~T2MetroRailway();
virtual DWORD GetID() { return 'MREv'; }
virtual int Start(T2TowerDoc* inDoc);
virtual int Exec(T2TowerDoc *inDoc);
virtual void StopEvent(T2TowerDoc* inDoc);
virtual BOOL IsBeginTime(unsigned int inTime);
virtual void Write(T2Archive& inArchive);
virtual void Read(T2Archive& inArchive);
virtual void DoSetStatus(int inStatus) { SetStatus(inStatus); }
virtual T2TowerDoc *DoGetTowerDoc() const { return GetTowerDoc(); }
virtual int DoGetBeginTime() { return GetBeginTime(); }
virtual T2WorldDef *DoGetWorldDef() { return GetWorldDef(); }
void Init(T2Transport* inParent, CResFile* inResFile);
BOOL CreateSpriteObj(T2TowerDoc *inDoc);
void Show();
void Hide();
protected:
int m74;
int mCurrentSprite;
int mTrainSpriteIndices[4];
T2BitImage *mImage;
T2ImageObj *mImageObj;
BOOL mVisible;
};
|