tweetybird_common.h
2.57 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
#ifndef _TWEETYBIRD_COMMON_H
#define _TWEETYBIRD_COMMON_H
#include "TweetyBird_typedef.h"
//#include "guires.h"
#define M_INGAME_ID 1
#define M_LEVEL_OVER_ID 2
#define FONT_BLACK 0
#define FONT_WHITE 1
typedef struct _Hole
{
int x,y;//width,height;
int active;
int Crossed;
}HOLE;
typedef struct _FontData
{
char character;
VMBYTE index;
char size;
}FontData;
typedef enum
{
IMAGE_BIRD,
//IMAGE_STONE,
IMAGE_FONT,
IMAGE_CACTUS1,
IMAGE_CACTUS2,
//IMAGE_NEWHIGHSCORE_BG,
//IMAGE_SMILEY,
IMAGE_ARROW,
}TWEETYBIRD_IMAG_ENUM;
typedef enum MsgID_
{
VM_MSG_CREATE,
VM_MSG_ACTIVE,
VM_MSG_INACTIVE,
VM_MSG_QUIT
}MSGID;
typedef enum PenEvent_
{
VM_PEN_EVENT_TAP,
VM_PEN_EVENT_RELEASE
}PENEVENT;
typedef enum DrawRect_
{
DRAW_RECT,
DRAW_FILL_RECT,
DRAW_ROUND_RECT
}DrawRect;
void TweetyBird_SetTimer();
void TweetyBird_GamePaint();
void TweetyBird_SoundPlay(VMINT repeat,VMINT ring_id);
void TweetyBird_StopSound(void);
void TweetyBird_handle_sysevt(VMINT message, VMINT param);
void TweetyBird_handle_keyevt();
U16 TweetyBird_get_image_id(int ResId);
int TweetyBird_graphic_get_screen_width();
int TweetyBird_graphic_get_screen_height();
void TweetyBird_exit_app();
void TweetyBird_play_ring(U16 id);
void TweetyBird_stop_sound();
void TweetyBird_game_read_nvram(void *game_data);
void TweetyBird_game_write_nvram(void *game_data);
MMI_BOOL TweetyBird_game_active();
int TweetyBird_get_timer_value(void);
void TweetyBird_Draw_Rect(int x, int y ,int width, int height ,GUI_COLOR_T line_color, GUI_COLOR_T back_color,U8 choice);
void TweetyBird_Resume_Game();
void TweetyBird_Exit_Game();
MMI_BOOL TweetyBird_interrupt_handle_support();
U16 TweetyBird_get_global_id();
extern U8 TweetyBird_IsOEM_Lava(void);
extern U8 TweetyBird_IsBangladeshBilling(void);
extern U8 TweetyBird_IsTrialBaseBilling(void);
extern U8* TweetyBird_GetGameInputLevel(void);
static U8* TweetyBird_GetSMSKeyword(void);
static int GetMaxTrials(void);
static int TweetyBird_GetBuyPrice(void);
U8 TweetyBird_IsOEM_Micromax(void);
static BOOL TweetyBird_CheckEnteredCodeAuthentication(U8* entered_code, U8* unlock_code);
U8 TweetyBird_IsOEM_IBall(void);
U8 TweetyBird_IsOEM_KarbonnJDelhi(void);
U8 TweetyBird_IsOEM_KarbonnUTL(void);
U8 TweetyBird_IsOEM_Lava(void);
U8 TweetyBird_IsBangladeshBilling(void);
U8 TweetyBird_IsTrialBaseBilling(void);
U8* TweetyBird_GetGameInputLevel(void);
static U8* TweetyBird_GetSMSKeyword(void);
extern MMI_BOOL CheckForCodeAunthentication(U8 *UnlockingCode,U8 *unlockingCode_buffer);
extern U64 generate_unlocking_code(PU8 key_value);
extern U8* TweetyBirdBillingTest(void);
#endif