-
Notifications
You must be signed in to change notification settings - Fork 0
/
Branch.h
38 lines (29 loc) · 833 Bytes
/
Branch.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
// Branch.h: interface for the CBranch class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_Branch_H__A15CDF99_539B_48FD_9016_D36A5D1DC45F__INCLUDED_)
#define AFX_Branch_H__A15CDF99_539B_48FD_9016_D36A5D1DC45F__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#define CDXINCLUDEALL // this define includes all headers, otherwise include one by one
#include <cdx.h>
#include "BattleEngine.h"
class CBranch
{
private:
int x, y;
int Speed;
int iTicker;
public:
CDXSprite *Sprite;
CDXTile *Tile;
CDXScreen *Screen;
CBranch();
virtual ~CBranch();
void SetSpeed(int s) { Speed = s; };
void Load(CDXScreen *screen);
void Draw();
void Move(int iDirection = DOWN);
};
#endif // !defined(AFX_Branch_H__A15CDF99_539B_48FD_9016_D36A5D1DC45F__INCLUDED_)