-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFallingLeaf.h
More file actions
45 lines (36 loc) · 1.04 KB
/
Copy pathFallingLeaf.h
File metadata and controls
45 lines (36 loc) · 1.04 KB
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
// FallingLeaf.h: interface for the CFallingLeaf class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_FallingLeaf_H__A15CDF99_539B_48FD_9016_D36A5D1DC45F__INCLUDED_)
#define AFX_FallingLeaf_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>
class CFallingLeaf
{
private:
int x, y;
int Speed;
int iTicker, iTicker2;
float zoom;
int initial_x;
int life_count;
int life_time;
bool bAnimRight;
bool bLeft;
int iRotateSpeed; // speed at which leaf rotates
bool bZoomer; // zoomer or alphavalued leaf?
public:
CDXSprite *Sprite;
CDXTile *Tile;
CDXScreen *Screen;
CFallingLeaf();
virtual ~CFallingLeaf();
void Load(CDXScreen *screen);
void Unload() { SAFEDELETE(Sprite); SAFEDELETE(Tile); };
void Draw();
void Move(int iDirection = 0);
};
#endif // !defined(AFX_FallingLeaf_H__A15CDF99_539B_48FD_9016_D36A5D1DC45F__INCLUDED_)