-
Notifications
You must be signed in to change notification settings - Fork 1
/
LocalState.h
48 lines (40 loc) · 874 Bytes
/
LocalState.h
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
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef LOCALSTATE_H
#define LOCALSTATE_H
#include "common\d3dUtil.h"
#include "common\GameState.h"
#include "StatusText.h"
class Menu;
class Game;
class Board;
class LocalPlayer;
class Piece;
class PiecesCaptured;
//! Active when playing against someone on the same computer.
class LocalState : public GameState
{
public:
void init(Game* game);
void cleanup();
void pause();
void resume();
void update(double dt);
void draw();
void addCapturedPiece(Color color, PieceType type);
void displayCheckMate();
static LocalState* Instance() {
return &mLocalState;
}
protected:
LocalState() {};
private:
static LocalState mLocalState;
IDirect3DTexture9* mBkgd;
IDirect3DTexture9* mGreyBkgd;
PiecesCaptured* mPiecesCaptured;
Piece* mSelectedPiece;
LocalPlayer* mActivePlayer;
LocalPlayer* mPlayer2;
Board* mBoard;
StatusText mStatusText;
};
#endif