📄 gamedata.java
字号:
// Copyright (c) 2004 Venan Entertainment, Inc. All rights reserved.
//
// Venan Entertainment, Inc., Middletown, Connecticut 06457
// http://www.venan.com
import java.io.*;
/////////////////////
//#include "SimData.h"
//#include "CompetitionData.h"
public class GameData
{
// Copyright (c) 2004 Venan Entertainment, Inc. All rights reserved.
//
// Venan Entertainment, Inc., Middletown, Connecticut 06457
// http://www.venan.com
//#ifndef _CommonInclude_H
//#ifndef _resource_H
// RESOURCE FILES
// RESFILE_AUDIO "/A"
// RESFILE_MENU "/X"
//#ifdef _IS_NokiaS60
//
////#define RES_SPLASHBRAND 0
////#define RES_SPLASHVENAN 1
////#define RES_SPLASHMFORMABK 2
////#define RES_SPLASHMFORMAFR 3
////#define RES_SPLASHMFORMASPORTS 4
////#define RES_SPLASHGAME 5
//
////#define RES_ARROWSUD 0
////#define RES_ARROWSLR 2
////#define RES_MENULOGO 4
////#define RES_MENUBOTTOM 6
////#define RES_MENUTOP 8
//
//// RESFILE_COMMON "/E"
////#define RES_SIGN1 0
////#define RES_SIGN2 1
////#define RES_SKY 2
////#define RES_TREE 3
////#define RES_TREESHADOW 4
////#define RES_TREESFAR 5
////#define RES_CROWD 6
////#define RES_CLOCK_DIGITS 7
////#define RES_DOWNHILL 8
//
//#ifdef _OPENING_CEREMONY
//// RESFILE_OPENING "/O"
////#define RES_INTRO_RUN 0
////#define RES_INTRO_RUN_DAT 2
////#define RES_INTRO_APPROACH 3
////#define RES_INTRO_APPROACH_DAT 5
////#define RES_INTRO_LIGHT 6
////#define RES_INTRO_LIGHT_DAT 8
////#define RES_INTRO_STAIRS 9
////#define RES_INTRO_FIREPLACE 10
////#define RES_INTRO_FIRE 11
//#endif
//
//// RESFILE_AWARDS "/M"
//#ifndef _NO_MEDAL_CEREMONY
////#define RES_AWARDWINNER 0
////#define RES_AWARDLOSER 1
////#define RES_AWARDMEDAL 4
////#define RES_AWARDSTAND 5
////#define RES_MEDALPAL0 6
//#endif
//
//// RESFILE_SKATING "/S"
////#define RES_SKATESTART 12
////#define RES_SKATECYCLE 13
////#define RES_STARTDAT 14
////#define RES_CYCLEDAT 15
////#define RES_BARCURSOR 16
////#define RES_BARFILL 17
////#define RES_BARHILL 18
////#define RES_BARHILR 19
////#define RES_BARLEFT 20
////#define RES_BARRIGHT 21
////#define RES_BARMARKER 22
////#define RES_BARMAXHIT 23
//
//// RESFILE_SKIING "/K"
////#define RES_SKIS_PAL 12
////#define RES_GHOST_SKIS_PAL 13
////#define RES_SKIER 14
////#define RES_SKIER_DAT 15
////#define RES_SKIER_CRASH 16
////#define RES_SKIER_CRASH_DAT 17
////#define RES_SKIER_START 18
////#define RES_SKIER_START_DAT 19
////#define RES_SKIS 20
////#define RES_SKIS_DAT 21
////#define RES_SLALOM_TRACK_R 22
////#define RES_SLALOM_TRACK_L 23
////#define RES_SLALOM_TRACK_S 24
////#define RES_FLAG_RED 25
////#define RES_FLAG_BLUE 26
////#define RES_SIGN_VERT 27
////#define RES_COMPASS 28
//
//// RESFILE_SKIJUMP "/J"
////#define RES_SJMIDAIR 12
////#define RES_SJSTART 13
////#define RES_SJSKIING 14
////#define RES_SJAIRBGN 15
////#define RES_SJLAND 16
////#define RES_SJCRASH 17
////#define RES_SJRIGHT 18
////#define RES_SJMIDAIRDAT 20
////#define RES_SJSTARTDAT 21
////#define RES_SJSKIINGDAT 22
////#define RES_SJAIRBGNDAT 23
////#define RES_SJLANDDAT 24
////#define RES_SJCRASHDAT 25
//
//// RESFILE_RAMP "/R"
////#define RES_RAMP 0
////#define RES_RAMPEND1 1
////#define RES_RAMPEND2 2
////#define RES_RAMPEND3 3
////#define RES_RAMPEND4 4
////#define RES_RAMPEND5 5
////#define RES_RAMPEND6 6
////#define RES_RAMPEND7 7
////#define RES_ARROWD 8
////#define RES_ARROWU 9
////#define RES_ARROWL 10
////#define RES_ARROWR 11
////#define RES_ARROWWRONG 12
////#define RES_BARBK 13
////#define RES_BARFR 14
//
//// RESFILE_BIATHLON "/B"
////#define RES_BIATHLON 12
////#define RES_BIATHLONUP 13
////#define RES_BIATHLONDN 14
////#define RES_BIATHLONDAT 15
////#define RES_BIATHLONUPDAT 16
////#define RES_BIATHLONDNDAT 17
//
//// RESFILE_TARGETS "/T"
////#define RES_GUNSIGHT 0
////#define RES_RICHOCHET 1
////#define RES_TARGET 2
////#define RES_TARGETFAR 4
////#define RES_TARGETSTAND 5
////#define RES_TARGETFILL 6
////#define RES_SNOWBANK 7
////#define RES_UPHILL 8
////#define RES_HEART 9
////#define RES_TARGETHIT 10
////#define RES_TARGETHITDAT 12
//
//// RESFILE_COUNTRY "/C"
////#define RES_FLAGS 11 // nation count
////#define RES_FLAGSSMALL 13
////#define RES_FLAGSLARGE 15
//
//#else // Not NokiaS60
// RESFILE_SKATING "/S"
//#ifndef _LIMITED_EVENTS
//
////#define RES_SJMIDAIR 39
////#define RES_SJSTART 40
////#define RES_SJSKIING 41
////#define RES_SJAIRBGN 42
////#define RES_SJLAND 43
////#define RES_SJCRASH 44
////#define RES_SJRIGHT 45
////#define RES_SJMIDAIRDAT 46
////#define RES_SJSTARTDAT 47
////#define RES_SJSKIINGDAT 48
////#define RES_SJAIRBGNDAT 49
////#define RES_SJLANDDAT 50
////#define RES_SJCRASHDAT 51
////#define RES_RAMP 52
////#define RES_RAMPEND1 53
////#define RES_RAMPEND2 54
////#define RES_RAMPEND3 55
////#define RES_RAMPEND4 56
////#define RES_RAMPEND5 57
////#define RES_RAMPEND6 58
////#define RES_RAMPEND7 59
////#define RES_ARROWD 60
////#define RES_ARROWU 61
////#define RES_ARROWL 62
////#define RES_ARROWR 63
////#define RES_ARROWWRONG 64
////#define RES_BARBK 65
////#define RES_BARFR 66
//
//#endif
// RESFILE_COUNTRY "/C"
//#ifndef _NO_LARGE_FLAGS
//
////#define RES_FLAGSLARGE 2
////#define RES_SKATEPAL 3
//
//#ifndef _LIMITED_EVENTS
//
////#define RES_JUMPPAL 15
////#define RES_BIATHPAL 27
////#define RES_SKIPAL 39
////#define RES_SKIS_PAL 51
////#define RES_GHOST_SKIS_PAL 52
//
//#else
//
////#define RES_BIATHPAL 14
////#define RES_SKIPAL 25
////#define RES_SKIS_PAL 36
//
//#endif
//
//#else // _NO_LARGE_FLAGS
//#ifndef _LIMITED_EVENTS
//
////#define RES_JUMPPAL 14
////#define RES_BIATHPAL 26
////#define RES_SKIPAL 38
////#define RES_SKIS_PAL 50
////#define RES_GHOST_SKIS_PAL 51
//
//#else
//#endif
//#endif // _NO_LARGE_FLAGS
//#ifdef _OPENING_CEREMONY
//// RESFILE_OPENING "/O"
////#define RES_INTRO_RUN 0
////#define RES_INTRO_RUN_DAT 1
////#define RES_INTRO_APPROACH 2
////#define RES_INTRO_APPROACH_DAT 3
////#define RES_INTRO_LIGHT 4
////#define RES_INTRO_LIGHT_DAT 5
////#define RES_INTRO_STAIRS 6
////#define RES_INTRO_FIREPLACE 7
////#define RES_INTRO_FIRE 8
//#endif
// RESFILE_COMMON "/E"
//#ifdef _LOW_DETAIL
//#ifndef _NO_MENU_GRAPHICS
////#define RES_MENUBOTTOM 12
////#define RES_MENUTOP 13
//#endif
//#else
////#define RES_SIGN2 1
////#define RES_SKY 2
////#define RES_TREE 3
////#define RES_TREESHADOW 4
////#define RES_TREESFAR 5
////#define RES_CROWD 6
////#define RES_CLOCK_DIGITS 7
////#define RES_DOWNHILL 8
////#define RES_UPHILL 9
////#define RES_ARROWSUD 10
////#define RES_ARROWSLR 11
////#define RES_MENULOGO 12
////#define RES_SPLASHBRAND 13
////#define RES_SPLASHVENAN 14
////#define RES_SPLASHMFORMABK 15
//#ifndef _NO_MENU_GRAPHICS
////#define RES_MENUBOTTOM 16
////#define RES_MENUTOP 17
//#endif
//#endif
//#endif
//#endif
private static final int STRING_STANDINGS = 0;
private static final int STRING_PAUSED = 1;
private static final int STRING_PRESS_ANY_KEY = 2;
private static final int STRING_GAME_TYPE = 3;
private static final int STRING_MAIN_MENU = 4;
private static final int STRING_PRACTICE = 5;
private static final int STRING_COMPETITION = 6;
private static final int STRING_CHALLENGE = 7;
private static final int STRING_SELECT_SCORE = 8;
private static final int STRING_SELECT_NEW_SCORE = 9;
private static final int STRING_ONLINE_SEARCH = 10;
private static final int STRING_NOT_FOUND = 11;
private static final int STRING_NO_ONLINE_RECORDS = 12;
private static final int STRING_CHANGE_ONLINE_NAME = 13;
private static final int STRING_LOCAL_TOP_TEN = 14;
private static final int STRING_ONLINE_TOP_TEN = 15;
private static final int STRING_LOCAL_GAME = 16;
private static final int STRING_ONLINE_GAME = 17;
private static final int STRING_NETWORK_ERROR = 18;
private static final int STRING_SETTING_NAME = 19;
private static final int STRING_GETTING_NAME = 20;
private static final int STRING_GETTING_SCORES = 21;
private static final int STRING_GETTING_SCORE = 22;
private static final int STRING_SENDING_SCORE = 23;
private static final int STRING_GETTING_RANK = 24;
private static final int STRING_NEW_HIGH_SCORE = 25;
private static final int STRING_NOT_YOUR_BEST = 26;
private static final int STRING_TRY_AGAIN = 27;
private static final int STRING_NO_LOCAL_RECORDS = 28;
private static final int STRING_NEW_LOCAL_RECORD = 29;
private static final int STRING_SELECT_COUNTRY = 30;
private static final int STRING_QUIT_COMPETITION = 31;
private static final int STRING_ABOUT = 32;
private static final int STRING_HELP = 33;
private static final int STRING_RECORDS = 34;
private static final int STRING_EXIT = 35;
private static final int STRING_MISS = 36;
private static final int STRING_ENTER_NAME = 37;
private static final int STRING_SELECT_EVENT = 38;
private static final int STRING_EVENT_RESULTS = 39;
private static final int STRING_PLAY = 40;
private static final int STRING_INSTRUCTIONS = 41;
private static final int STRING_SETTINGS = 42;
private static final int STRING_SELECT_NEW_EVENT = 43;
private static final int STRING_EVENT0 = 44;
private static final int STRING_EVENT1 = 45;
private static final int STRING_EVENT2 = 46;
private static final int STRING_MEDAL_CEREMONY = 47;
private static final int STRING_HELPTEXT_EVENT0 = 48;
private static final int STRING_HELPTEXT_EVENT1 = 49;
private static final int STRING_HELPTEXT_EVENT2 = 50;
private static final int STRING_HELPTEXT_MAIN = 51;
private static final int STRING_RANK = 52;
private static final int STRING_SOUND = 53;
private static final int STRING_RESET_RECORDS = 54;
private static final int STRING_CANCEL_MRC = 55;
private static final int STRING_ON = 56;
private static final int STRING_OFF = 57;
private static final int STRING_TIPS = 58;
private static final int STRING_ARE_YOU_SURE = 59;
private static final int STRING_NEXT_UP = 60;
private static final int STRING_SELECT_PLAYERS = 61;
private static final int STRING_PLAYER = 62;
private static final int STRING_PLAYERS = 63;
private static final int STRING_FIRSTATTEMPT = 64;
private static final int STRING_SECONDATTEMPT = 65;
private static final int STRING_THIRDATTEMPT = 66;
private static final int STRING_SCORE = 67;
private static final int STRING_DISTANCE = 68;
private static final int STRING_STYLE = 69;
private static final int STRING_OUCH = 70;
private static final int STRING_FIRSTPLACE = 71;
private static final int STRING_SECONDPLACE = 72;
private static final int STRING_THIRDPLACE = 73;
private static final int STRING_READY = 74;
private static final int STRING_SET = 75;
private static final int STRING_GO = 76;
private static final int STRING_EMPTY = 77;
private static final int STRING_BOLT_OPEN = 78;
private static final int STRING_LOADED = 79;
private static final int STRING_FAULT = 80;
private static final int STRING_YES = 81;
private static final int STRING_NO = 82;
private static final int STRING_DIFFICULTY = 83;
private static final int STRING_EASY = 84;
private static final int STRING_NORMAL = 85;
private static final int STRING_HARD = 86;
private static final int STRING_NATION0 = 87;
private static final int STRING_NATION1 = 88;
private static final int STRING_NATION2 = 89;
private static final int STRING_NATION3 = 90;
private static final int STRING_NATION4 = 91;
private static final int STRING_NATION5 = 92;
private static final int STRING_NATION6 = 93;
private static final int STRING_NATION7 = 94;
private static final int STRING_NATION8 = 95;
private static final int STRING_NATION9 = 96;
private static final int STRING_NATION10 = 97;
private static final int STRING_ATHLETE0 = 98;
private static final int STRING_ATHLETE1 = 99;
private static final int STRING_ATHLETE2 = 100;
private static final int STRING_ATHLETE3 = 101;
private static final int STRING_ATHLETE4 = 102;
private static final int STRING_ATHLETE5 = 103;
private static final int STRING_ATHLETE6 = 104;
private static final int STRING_ATHLETE7 = 105;
private static final int STRING_ATHLETE8 = 106;
private static final int STRING_ATHLETE9 = 107;
private static final int STRING_ATHLETE10 = 108;
private static final int STRING_GAME_TITLE = 109;
private static final int STRING_VERSION = 110;
private static final int STRING_COPYRIGHT_TEXT = 111;
private static final int STRING_CREDITS = 112;
private static final int STRING_SELECT_LANGUAGE = 113;
private static final int STRING_LANG0 = 114;
private static final int STRING_LANG1 = 115;
private static final int STRING_LANG2 = 116;
private static final int STRING_LANG3 = 117;
private static final int STRING_LANG4 = 118;
private static final int STRING_GAME_IN_PROGRESS = 119;
private static final int STRING_RESUME_GAME = 120;
private static final int STRING_ABORT_GAME = 121;
private static final int STRING_BACK = 122;
private static final int STRING_OK = 123;
private static final int STRING_CANCEL = 124;
private static final int STRING_MENU = 125;
private static final int STRING_LOADING = 126;
private static final int STRING_GUEST = 127;
private static final int STRING_LOGGING_IN = 128;
private static final int STRING_GAME_LOBBY = 129;
private static final int STRING_RATE_GAME = 130;
private static final int STRING_LEADERBOARD = 131;
private static final int STRING_REGISTER_ON = 132;
private static final int STRING_GAME_LOBBY_Q = 133;
private static final int STRING_TO_GAME_LOBBY = 134;
private static final int STRING_WELCOME = 135;
private static final int RESFILE_COMMON = 136;
private static final int RESFILE_COUNTRY = 137;
private static final int RESFILE_GFX = 138;
private static final int RESFILE_AUDIO = 139;
// defines from GameData
// we never have more than a few gates on the screen at once
// we're only going to store animation data for a few gates
// we'll pad it a bit to take into account the fact that the
// skier still moves while the gates animate.
//#ifdef _HIRES_GRAPHICS
////#define HURDLE_XOFF 12
////#define HURDLE_HEIGHT 31 // in pixels
////#define SHOOTINGREF_HEIGHT 54
////#define PIXEL_PER_M 24
////#define M_PER_PIXEL 2731
//#else
//#endif
//#define MAX_PLAYERS 4
//#ifndef _MAX_HUMAN_PLAYERS
//#endif
// Virtual key codes
// COLORS (RGB)
//#ifdef _LOW_DETAIL
//#else
////#define COLOR_SKY 0xc1ccf5
//#endif
//#ifdef _MULTI_LANG
////#define LANG_COUNT 5
//#else
//#endif
//#ifndef _LIMITED_EVENTS
//
////#define EVENT_SKI_JUMP 1
////#define EVENT_BIATHLON 2
////#define EVENT_SKIING 3
////#define EVENT_COUNT 4
////#define EVENT_COMPETITION 4
//
//#else
//#endif
//#ifdef _IS_NokiaS40
//// #define SOUND_COUNT 5
//#elif defined(_IS_NokiaS60) && !defined(_MMAPI)
//// #define SOUND_CROWD 5
//// #define SOUND_CRASH 6
//// #define SOUND_COUNT 7
//#elif defined(_LIMITED_SOUNDS)
//// #define SOUND_CRASH 5
//// #define SOUND_COUNT 6
//#else
//#endif
//#endif
public static final int VERSION = 0x84;
// structure version
int ubyVersion;
// game mode data
int iGameMode; // competition, practice, challenge, or none
// CompetitionData
public int iNumPlayers; // number of players
public int iCurrentPlayer; // current player
//#ifndef _NO_ONLINE
// public boolean bOnline; // online meet?
//#endif
public boolean bCompetitionInitialized = false; // competition data is initialized
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -