-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRick.h
40 lines (35 loc) · 1.02 KB
/
Rick.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
#ifndef _RICK_H_
#define _RICK_H_
namespace Rick
{
static constexpr int MAX_LIFE_COUNT = 6;
static constexpr int MAX_BULLET_COUNT = 5;
static constexpr int MAX_DYNAMITE_COUNT = 5;
void Reset();
void UpdateInput();
void CheckLethalCollision();
void CheckStaticCollision();
void CheckLadderCollision();
char GetFeetYOnScreen();
void Draw();
bool IsAlive();
void CheckPointRespawn(int respawnWorldX, unsigned char respawnWorldY);
void InitWaitForRespawn();
// function to get the coordinate of the sprite of the main character
int GetX();
unsigned char GetY();
int GetCenterX();
unsigned char GetCenterY();
void MoveOutsideMainMenu();
// function to get the coordinate when the screen should do a transition
int GetLeftForScreenTransition();
int GetRightForScreenTransition();
int GetTopForScreenTransition();
int GetBottomForScreenTransition();
// Rick Inventory
extern char LifeCount;
extern char StatuetteCount;
extern char BulletCount;
extern char DynamiteCount;
}
#endif