tweetybird_common.h 2.57 KB
#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