GameDefs.h
上传用户:lqx1163
上传日期:2014-08-13
资源大小:9183k
文件大小:13k
源码类别:

MTK

开发平台:

C/C++

  1. /*****************************************************************************
  2. *  Copyright Statement:
  3. *  --------------------
  4. *  This software is protected by Copyright and the information contained
  5. *  herein is confidential. The software may not be copied and the information
  6. *  contained herein may not be used or disclosed except with the written
  7. *  permission of MediaTek Inc. (C) 2005
  8. *
  9. *  BY OPENING THIS FILE, BUYER HEREBY UNEQUIVOCALLY ACKNOWLEDGES AND AGREES
  10. *  THAT THE SOFTWARE/FIRMWARE AND ITS DOCUMENTATIONS ("MEDIATEK SOFTWARE")
  11. *  RECEIVED FROM MEDIATEK AND/OR ITS REPRESENTATIVES ARE PROVIDED TO BUYER ON
  12. *  AN "AS-IS" BASIS ONLY. MEDIATEK EXPRESSLY DISCLAIMS ANY AND ALL WARRANTIES,
  13. *  EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED WARRANTIES OF
  14. *  MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE OR NONINFRINGEMENT.
  15. *  NEITHER DOES MEDIATEK PROVIDE ANY WARRANTY WHATSOEVER WITH RESPECT TO THE
  16. *  SOFTWARE OF ANY THIRD PARTY WHICH MAY BE USED BY, INCORPORATED IN, OR
  17. *  SUPPLIED WITH THE MEDIATEK SOFTWARE, AND BUYER AGREES TO LOOK ONLY TO SUCH
  18. *  THIRD PARTY FOR ANY WARRANTY CLAIM RELATING THERETO. MEDIATEK SHALL ALSO
  19. *  NOT BE RESPONSIBLE FOR ANY MEDIATEK SOFTWARE RELEASES MADE TO BUYER'S
  20. *  SPECIFICATION OR TO CONFORM TO A PARTICULAR STANDARD OR OPEN FORUM.
  21. *
  22. *  BUYER'S SOLE AND EXCLUSIVE REMEDY AND MEDIATEK'S ENTIRE AND CUMULATIVE
  23. *  LIABILITY WITH RESPECT TO THE MEDIATEK SOFTWARE RELEASED HEREUNDER WILL BE,
  24. *  AT MEDIATEK'S OPTION, TO REVISE OR REPLACE THE MEDIATEK SOFTWARE AT ISSUE,
  25. *  OR REFUND ANY SOFTWARE LICENSE FEES OR SERVICE CHARGE PAID BY BUYER TO
  26. *  MEDIATEK FOR SUCH MEDIATEK SOFTWARE AT ISSUE. 
  27. *
  28. *  THE TRANSACTION CONTEMPLATED HEREUNDER SHALL BE CONSTRUED IN ACCORDANCE
  29. *  WITH THE LAWS OF THE STATE OF CALIFORNIA, USA, EXCLUDING ITS CONFLICT OF
  30. *  LAWS PRINCIPLES.  ANY DISPUTES, CONTROVERSIES OR CLAIMS ARISING THEREOF AND
  31. *  RELATED THERETO SHALL BE SETTLED BY ARBITRATION IN SAN FRANCISCO, CA, UNDER
  32. *  THE RULES OF THE INTERNATIONAL CHAMBER OF COMMERCE (ICC).
  33. *
  34. *****************************************************************************/
  35. /*****************************************************************************
  36. *
  37.  * Filename:
  38.  * ---------
  39.  *  GameDefs.h
  40.   *
  41.  * Project:
  42.  * --------
  43.  *  MAUI
  44.  *
  45.  * Description:
  46.  * ------------
  47.  *  Game Defines
  48.  *
  49.  * Author:
  50.  * -------
  51.  * -------
  52.  *
  53.  *============================================================================
  54.  *             HISTORY
  55.  * Below this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  56.  *------------------------------------------------------------------------------
  57.  * removed!
  58.  *
  59.  * removed!
  60.  * removed!
  61.  * removed!
  62.  *
  63.  * removed!
  64.  * removed!
  65.  * removed!
  66.  *
  67.  * removed!
  68.  * removed!
  69.  * removed!
  70.  *
  71.  * removed!
  72.  * removed!
  73.  * removed!
  74.  *
  75.  * removed!
  76.  * removed!
  77.  * removed!
  78.  *
  79.  * removed!
  80.  * removed!
  81.  * removed!
  82.  *
  83.  * removed!
  84.  * removed!
  85.  * removed!
  86.  *
  87.  * removed!
  88.  * removed!
  89.  * removed!
  90.  *
  91.  * removed!
  92.  * removed!
  93.  * removed!
  94.  *
  95.  * removed!
  96.  * removed!
  97.  * removed!
  98.  *
  99.  * removed!
  100.  * removed!
  101.  * removed!
  102.  *
  103.  *------------------------------------------------------------------------------
  104.  * Upper this line, this part is controlled by PVCS VM. DO NOT MODIFY!!
  105.  *============================================================================
  106.  ****************************************************************************/
  107. #ifndef GAME_DEF_H
  108. #define GAME_DEF_H
  109. #include "PixtelDataTypes.h"
  110. #include "SettingDefs.h"
  111. #include "MMI_features.h"
  112. /* skip audio align in PC environment */
  113. #ifndef __MTK_TARGET__
  114. #define __align(X)
  115. #endif 
  116. /* define game base ID */
  117. /* (GAME_BASE) - (GAME_BASE + 99) is reserved for game.c */
  118. #define GAME_FRAMEWORK                       GAME_BASE + 100
  119. #define GAME_SNAKE_BASE                      GAME_BASE + 150    /* GAME_BASE defined in MMIDataType.h */
  120. #define GAME_F1RACE_BASE                     GAME_BASE + 200
  121. #define GAME_TOH_BASE                        GAME_BASE + 250
  122. #define GAME_RICHES_BASE                     GAME_BASE + 300
  123. #define GAME_COLORBALLS_BASE                 GAME_BASE + 350
  124. #define GAME_SMASH_BASE                      GAME_BASE + 400
  125. #define GAME_DOLL_BASE                       GAME_BASE + 450
  126. #define GAME_NINJA_BASE                      GAME_BASE + 500
  127. #define GAME_MAJUNG_BASE                     GAME_BASE + 550    /* !! Majung needs 150 id for images */
  128. #define GAME_MEMORY_BASE                     GAME_BASE + 700
  129. #define GAME_COPTER_BASE                     GAME_BASE + 750
  130. #define GAME_PUZZLE_BASE                     GAME_BASE + 800    /* !! Puzzle needs 100 id for images */
  131. #define GAME_PANDA_BASE                      GAME_BASE + 900
  132. #define GAME_STAIR_BASE                      GAME_BASE + 950
  133. #define GAME_UFO_BASE                        GAME_BASE + 1000   /* !! Ufo need 100 id for images */
  134. #define GAME_DANCE_BASE                      GAME_BASE + 1100
  135. #define GAME_MAGICSUSHI_BASE                 GAME_BASE + 1150   /* !! magicsushi need 100 id for images */
  136. #define GAME_FRUIT_BASE                      GAME_BASE + 1250   /* !! Fruit need 100 id for images */
  137. #define GAME_VSMJ_BASE                       GAME_BASE + 1350   /* !! VSMJ need 100 id for images */
  138. /* Motion App */
  139. #define MOTIONE_BASE                         GAME_BASE + 2000
  140. #define MOTION_DICE_BASE                     GAME_BASE + 2100   /* reserve 200 */
  141. #define MOTION_DJ_BASE                       GAME_BASE + 2300   /* reserve 100 */
  142. /* Game effect */
  143. /* comment this if you dont want game effect */
  144. #define GAME_AUDIO_ENABLE
  145. #define GAME_VIBRATOR_ENABLE
  146. /* Game define Macro */
  147. #if defined(__MMI_GAME_F1RACE__)
  148. #define IS_F1RACE_BASE_GAME
  149. #endif 
  150. #if defined(__MMI_GAME_HANOI__)
  151. #define IS_HANOI_BASE_GAME
  152. #endif 
  153. #if defined(__MMI_GAME_RICHES__)
  154. #define IS_RICHES_BASE_GAME
  155. #endif 
  156. #if defined(__MMI_GAME_COLORBALLS__)
  157. #define IS_COLORBALL_BASE_GAME
  158. #endif 
  159. #if defined(__MMI_GAME_SNAKE__)
  160. #define IS_SNAKE_BASE_GAME
  161. #endif 
  162. #if defined(__MMI_GAME_SMASH__)
  163. #define IS_SMASH_BASE_GAME
  164. #endif 
  165. #if defined(__MMI_GAME_DOLL__)
  166. #define IS_DOLL_BASE_GAME
  167. #endif 
  168. #if defined(__MMI_GAME_NINJA_128x96__)
  169. #define IS_NINJA_BASE_GAME
  170. #endif 
  171. #if defined(__MMI_GAME_MAJUNG_128x96__) || defined(__MMI_GAME_MAJUNG_240x320__) || defined(__MMI_GAME_MAJUNG_176x220__)
  172. #define IS_MAJUNG_BASE_GAME
  173. #endif 
  174. #if defined(__MMI_GAME_MEMORY_128x96__)
  175. #define IS_MEMORY_BASE_GAME
  176. #endif 
  177. #if defined(__MMI_GAME_DANCE_176x220__)
  178. #define IS_DANCE_BASE_GAME
  179. #endif 
  180. #if defined(__MMI_GAME_COPTER_128x128__) || defined(__MMI_GAME_COPTER_128x160__) || defined(__MMI_GAME_COPTER_176x220__) || defined(__MMI_GAME_SUBMARINE_128x128__) || defined(__MMI_GAME_SUBMARINE_128x160__) || defined(__MMI_GAME_SUBMARINE_176x220__) || defined(__MMI_GAME_JET_128x128__) || defined(__MMI_GAME_JET_128x160__) || defined(__MMI_GAME_JET_176x220__)
  181. #define IS_COPTER_BASE_GAME
  182. #endif 
  183. #if defined(__MMI_GAME_PUZZLE_128x128__) || defined(__MMI_GAME_PUZZLE_128x160__) || defined(__MMI_GAME_PUZZLE_176x220__) || defined(__MMI_GAME_PUZZLE_240x320__)
  184. #define IS_PUZZLE_BASE_GAME
  185. #endif 
  186. #if defined(__MMI_GAME_PANDA_128x128__) || defined(__MMI_GAME_PANDA_128x160__) || defined(__MMI_GAME_PANDA_176x220__)  || defined(__MMI_GAME_PANDA_240x320__)|| defined(__MMI_GAME_MONKEY_128x128__) || defined(__MMI_GAME_MONKEY_128x160__) || defined(__MMI_GAME_MONKEY_176x220__) || defined(__MMI_GAME_MONKEY_240x320__)     //KP Jerry add "__MMI_GAME_PANDA_240x320__" and "__MMI_GAME_MONKEY_240x320__" on 2007-3-23
  187. #define IS_PANDA_BASE_GAME
  188. #endif 
  189. #if defined(__MMI_GAME_CHICKEN_128x160__) || defined(__MMI_GAME_CHICKEN_128x128__) || defined(__MMI_GAME_ROBOT_176x220__) || defined(__MMI_GAME_ROBOT_128x160__)
  190. #define IS_STAIR_BASE_GAME
  191. #endif 
  192. #if defined(__MMI_GAME_UFO_128x128__) || defined(__MMI_GAME_UFO_128x160__) || defined(__MMI_GAME_UFO_176x220__)
  193. #define IS_UFO_BASE_GAME
  194. #endif 
  195. #if defined(__MMI_GAME_MAGICSUSHI__)
  196. #define IS_MAGICSUSHI_BASE_GAME
  197. #endif 
  198. #if defined(__MMI_GAME_FRUIT_176x220__)
  199. #define IS_FRUIT_BASE_GAME
  200. #endif 
  201. #if defined(__MMI_GAME_VSMJ_240x320__)
  202. #define IS_VSMJ_BASE_GAME
  203. #endif 
  204. #if defined(__MMI_MOTIONGAME_DICE_128x160__) || defined(__MMI_MOTIONGAME_DICE_176x220__) || defined(__MMI_MOTIONGAME_DICE_220x320__)
  205. #define IS_DICE_BASE_MOTIONGAME
  206. #endif 
  207. #if defined(__MMI_MOTIONGAME_DJ_128x160__) || defined(__MMI_MOTIONGAME_DJ_176x220__) || defined(__MMI_MOTIONGAME_DJ_220x320__)
  208. #define IS_DJ_BASE_MOTIONGAME
  209. #endif 
  210. typedef enum
  211. {
  212. #ifdef IS_F1RACE_BASE_GAME
  213. game_f1race,
  214. #endif 
  215. #ifdef IS_HANOI_BASE_GAME
  216. game_toh,
  217. #endif 
  218. #ifdef IS_RICHES_BASE_GAME
  219. game_riches,
  220. #endif 
  221. #ifdef IS_COLORBALL_BASE_GAME
  222. game_colorballs,
  223. #endif 
  224. #ifdef IS_SNAKE_BASE_GAME
  225. game_snake,
  226. #endif 
  227. #ifdef IS_SMASH_BASE_GAME
  228. game_smash,
  229. #endif 
  230. #ifdef IS_DOLL_BASE_GAME
  231. game_doll,
  232. #endif 
  233. #ifdef IS_NINJA_BASE_GAME
  234. game_ninja,
  235. #endif 
  236. #ifdef IS_MAJUNG_BASE_GAME
  237. game_majung,
  238. #endif 
  239. #ifdef IS_MEMORY_BASE_GAME
  240. game_memory,
  241. #endif 
  242. #ifdef IS_COPTER_BASE_GAME
  243.     game_copter,
  244. #endif 
  245. #ifdef IS_PUZZLE_BASE_GAME
  246.     game_puzzle,
  247. #endif 
  248. #ifdef IS_PANDA_BASE_GAME
  249.     game_panda,
  250. #endif 
  251. #ifdef IS_STAIR_BASE_GAME
  252. game_stair,
  253. #endif 
  254. #ifdef IS_UFO_BASE_GAME
  255. game_ufo,
  256. #endif 
  257. #ifdef IS_DANCE_BASE_GAME
  258. game_dance,
  259. #endif 
  260. #ifdef IS_MAGICSUSHI_BASE_GAME
  261. game_magicsushi,
  262. #endif 
  263. #ifdef IS_FRUIT_BASE_GAME
  264. game_fruit,
  265. #endif 
  266. #ifdef IS_VSMJ_BASE_GAME
  267. game_vsmj,
  268. #endif 
  269.     game_list_count
  270. } GAME_LIST_NEUM;
  271. typedef enum
  272. {
  273. #ifdef IS_DICE_BASE_MOTIONGAME
  274. motion_dice,
  275. #endif 
  276. #ifdef IS_DJ_BASE_MOTIONGAME
  277. motion_dj,
  278. #endif 
  279.     motion_list_count
  280. } MOTION_LIST_NEUM;
  281. /* Screen ID */
  282. typedef enum
  283. {
  284.     SCR_ID_GAME = GAME_BASE + 1,
  285.     SCR_ID_GAME_SETTING,
  286.     SCR_ID_MOTION_APP,
  287.     SCR_ID_3D_GAME_LIST,
  288.     SCR_ID_3D_GAME,
  289. //KP Jerry add on 2007-4-6 start
  290. #ifdef __GAME_SIMU__
  291.     SCR_ID_GAMESIMU_LIST,
  292.     SCR_ID_GAMESIMU_SETTING,
  293.     SCR_ID_GAMESIMU_HELP,
  294.     SCR_ID_GAMESIMU_WAITSCREEN,
  295.     SCR_ID_GAMESIMU_OPTION,
  296.     GAME_LIST_SETTINGS_SCREEN_ID,
  297.     SCR_ID_GAMESIMU_DRV_LIST,
  298.     SCR_ID_GAMESIMU_FILE_LIST,
  299.     SCR_ID_GAMESIMU_RUN,
  300. #endif/*__GAME_SIMU__*/
  301. //KP Jerry add on 2007-4-6 end
  302. } mmi_game_scr_id_enum;
  303. /* String ID */
  304. typedef enum
  305. {
  306.     STR_GAME_CAPTION = GAME_BASE + 1,
  307.     STR_GAME_LSK,
  308.     STR_GAME_NEW,
  309.     STR_GAME_LEVEL,
  310.     STR_GAME_TYPE,     //KP Jerry add for on 2007-3-23
  311.     STR_GAME_GRADE,
  312.     STR_GAME_HELP,
  313.     STR_GAME_RESUME,
  314.     STR_GAME_RESET,
  315.     STR_GAME_SCORE,
  316.     STR_MENU3105_GAMES,
  317.     STR_ID_GAME_SETTING,
  318.     STR_ID_GAME_SETTING_AUD,
  319.     STR_ID_GAME_SETTING_MULTICHANNEL_BACKGROUND_MUSIC,
  320.     STR_ID_GAME_SETTING_MULTICHANNEL_SOUND_EFFECT,
  321.     STR_ID_GAME_SETTING_VIB,
  322.     STR_ID_MOTION_APP,
  323.     STR_ID_3D_GAME,
  324.     STR_ID_3D_GAME_TERMINATE_JAVA,
  325. //KP Jerry add on 2007-4-6 start
  326. #if defined(__GAME_SIMU__)
  327.    /* game simu */
  328.     STR_ID_GAME_SIMU_WAIT_STRING,
  329.     STR_ID_GAME_SIMU,
  330.     STR_ID_GAME_SIMU_E_GB,
  331.     STR_ID_GAME_SIMU_E_GBC,
  332.     STR_ID_GAME_SIMU_E_NES,
  333.     STR_ID_GAME_SIMU_HELP,
  334.     STR_ID_GAME_SIMU_HELP_TITLE,
  335.     STR_ID_GAME_SIMU_GAME_LIST,
  336.     STR_ID_GAME_SIMU_STORAGE,
  337.     STR_ID_GAME_SIMU_STORAGE_PHONE,
  338.     STR_ID_GAME_SIMU_STORAGE_CARD,
  339.    // STR_ID_GAME_SIMU_UPDATE_QUE,
  340.     STR_ID_GAME_SIMU_UPDATE_YES,
  341.     STR_ID_GAME_SIMU_UPDATE_NO,
  342.     STR_ID_GAME_SIMU_LIMITED_SETTING,
  343.     STR_ID_GAME_SIMU_LIMITED_UPDATE,
  344.     MAIN_MENU_GAME_LIST_TEXT,
  345.     STR_ID_GAME_LIST_REFRESH,
  346.     STR_ID_GAME_LIST_SETTING,
  347.     STR_ID_GAME_LIST_PLAY,
  348.     STR_ID_GAME_LIST_RES_OPTION,
  349.     STR_ID_GAME_LIST_SETTINGS,
  350.     STR_ID_GAME_LIST_INFO,
  351.     STR_ID_GAME_LIST_DELETE,
  352.     STR_ID_GAME_LIST_DELETE_ALL,
  353.     STR_ID_GAME_FILE_TYPE_ERROR,
  354.     STR_ID_GAME_FILE_ERROR,
  355.     STR_ID_GAME_SIMU_INTERFACE_ERROR,
  356.     STR_ID_GAME_SIMU_SETTING,
  357.     STR_ID_GAME_SIMU_LCD_STATE,
  358.     STR_ID_GAME_SIMU_LCD_V,
  359.     STR_ID_GAME_SIMU_LCD_H,
  360.     STR_ID_GAME_SIMU_VOL_SWITCH,
  361.     STR_ID_GAME_LIST_HELP,
  362. #endif
  363. //KP Jerry add on 2007-4-6 end
  364.     /* 3D Games */
  365.     STR_ID_3D_GAME_BROGENT_GOGOROBOT,
  366.     STR_ID_3D_GAME_BROGENT_HEATBREAKER2,
  367.     STR_ID_3D_GAME_INTERGRAFX_DEMOGAME,
  368.     STR_ID_3D_GAME_INTERGRAFX_PETFISH,
  369.     STR_ID_3D_GAME_INTERGRAFX_ROLLINGBALL
  370. } mmi_game_str_id_enum;
  371. typedef enum
  372. {
  373.     IMG_MENU3105_GAMES = GAME_BASE + 1,
  374.     IMG_ID_GAME_SUBLCD_ICON,
  375.     IMG_ID_GAME_SETTING,
  376.     IMG_ID_GAME_SETTING_AUD,
  377.     IMG_ID_GAME_SETTING_BACK_AUD,   /* /for background sound */
  378.     IMG_ID_GAME_SETTING_VIB,
  379.     IMG_ID_MOTION_APP,
  380.     IMG_ID_3D_GAME,
  381.     /* 3D Games */
  382.     IMG_ID_3D_GAME_BROGENT_GOGOROBOT,
  383.     IMG_ID_3D_GAME_BROGENT_HEATBREAKER2,
  384.     IMG_ID_3D_GAME_INTERGRAFX_DEMOGAME,
  385.     IMG_ID_3D_GAME_INTERGRAFX_PETFISH,
  386.     IMG_ID_3D_GAME_INTERGRAFX_ROLLINGBALL,
  387. //KP Jerry add on 2007-4-6 start
  388. #ifdef __GAME_SIMU__
  389.     /* Game Simu */
  390.     IMG_ID_GAMESIMU,
  391. #endif/*__GAME_SIMU__*/
  392. //KP Jerry add on 2007-4-6 end    
  393. } mmi_game_img_id_enum;
  394. #define GAME_NOTIFYDURATION                  ST_NOTIFYDURATION
  395. #endif /* GAME_DEF_H */