save_character.h

Go to the documentation of this file.
00001 
00006 /*
00007 Copyright (C) 2002-2010 UFO: Alien Invasion.
00008 
00009 This program is free software; you can redistribute it and/or
00010 modify it under the terms of the GNU General Public License
00011 as published by the Free Software Foundation; either version 2
00012 of the License, or (at your option) any later version.
00013 
00014 This program is distributed in the hope that it will be useful,
00015 but WITHOUT ANY WARRANTY; without even the implied warranty of
00016 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
00017 
00018 See the GNU General Public License for more details.
00019 
00020 You should have received a copy of the GNU General Public License
00021 along with this program; if not, write to the Free Software
00022 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
00023 */
00024 
00025 #ifndef SAVE_CHARACTER_H
00026 #define SAVE_CHARACTER_H
00027 
00028 #define SAVE_CHARACTER_NAME "name"
00029 #define SAVE_CHARACTER_BODY "body"
00030 #define SAVE_CHARACTER_PATH "path"
00031 #define SAVE_CHARACTER_HEAD "head"
00032 #define SAVE_CHARACTER_SKIN "skin"
00033 #define SAVE_CHARACTER_TEAMDEF "teamdef"
00034 #define SAVE_CHARACTER_GENDER "gender"
00035 #define SAVE_CHARACTER_UCN "ucn"
00036 #define SAVE_CHARACTER_MAXHP "maxHp"
00037 #define SAVE_CHARACTER_HP "hp"
00038 #define SAVE_CHARACTER_STUN "stun"
00039 #define SAVE_CHARACTER_MORALE "morale"
00040 #define SAVE_CHARACTER_FIELDSIZE "fieldSize"
00041 #define SAVE_CHARACTER_STATE "state"
00042 
00043 #define SAVE_CHARACTER_SCORES "scores"
00044 
00045 #define SAVE_CHARACTER_SKILLS "skill"
00046 #define SAVE_CHARACTER_SKILLTYPE "type"
00047 #define SAVE_CHARACTER_INITSKILL "initial"
00048 #define SAVE_CHARACTER_EXPERIENCE "experience"
00049 #define SAVE_CHARACTER_SKILLIMPROVE "improve"
00050 
00051 #define SAVE_CHARACTER_KILLS "kill"
00052 #define SAVE_CHARACTER_KILLTYPE "type"
00053 #define SAVE_CHARACTER_KILLED "killed"
00054 #define SAVE_CHARACTER_STUNNED "stunned"
00055 
00056 #define SAVE_CHARACTER_SCORE_ASSIGNEDMISSIONS "missions"
00057 #define SAVE_CHARACTER_SCORE_RANK "rank"
00058 
00059 #define SAVE_CHARACTER_SKILLTYPE_NAMESPACE "saveCharacterSkillType"
00060 #define SAVE_CHARACTER_KILLTYPE_NAMESPACE "saveCharacterKillType"
00061 static const constListEntry_t saveCharacterConstants[] = {
00062     {SAVE_CHARACTER_SKILLTYPE_NAMESPACE"::power", ABILITY_POWER},
00063     {SAVE_CHARACTER_SKILLTYPE_NAMESPACE"::speed", ABILITY_SPEED},
00064     {SAVE_CHARACTER_SKILLTYPE_NAMESPACE"::accuracy", ABILITY_ACCURACY},
00065     {SAVE_CHARACTER_SKILLTYPE_NAMESPACE"::mind", ABILITY_MIND},
00066     {SAVE_CHARACTER_SKILLTYPE_NAMESPACE"::close", SKILL_CLOSE},
00067     {SAVE_CHARACTER_SKILLTYPE_NAMESPACE"::heavy", SKILL_HEAVY},
00068     {SAVE_CHARACTER_SKILLTYPE_NAMESPACE"::assault", SKILL_ASSAULT},
00069     {SAVE_CHARACTER_SKILLTYPE_NAMESPACE"::sniper", SKILL_SNIPER},
00070     {SAVE_CHARACTER_SKILLTYPE_NAMESPACE"::explosive", SKILL_EXPLOSIVE},
00071     {SAVE_CHARACTER_SKILLTYPE_NAMESPACE"::hp", SKILL_NUM_TYPES},
00072 
00073     {SAVE_CHARACTER_KILLTYPE_NAMESPACE"::enemy", KILLED_ENEMIES},
00074     {SAVE_CHARACTER_KILLTYPE_NAMESPACE"::civilian", KILLED_CIVILIANS},
00075     {SAVE_CHARACTER_KILLTYPE_NAMESPACE"::team", KILLED_TEAM},
00076 
00077     {NULL, -1}
00078 };
00079 
00080 #endif
00081 
00082 /*
00083 DTD:
00084 
00085 <!ELEMENT character (scores, inventory)>
00086 <!ATTLIST character
00087     name            CDATA       #IMPLIED
00088     body            CDATA       #IMPLIED
00089     path            CDATA       #IMPLIED
00090     head            CDATA       #IMPLIED
00091     skin            CDATA       '0'
00092     teamdef         CDATA       #REQUIRED
00093     gender          CDATA       '0'
00094     ucn             CDATA       '0'
00095     maxHp           CDATA       '0'
00096     hp              CDATA       '0'
00097     stun            CDATA       '0'
00098     morale          CDATA       '0'
00099     fieldSize       CDATA       '1'
00100 >
00101 
00102 <!ELEMENT scores (skill*, kill*)>
00103 <!ATTLIST scores
00104     missions        CDATA       '0'
00105     rank            CDATA       '-1'
00106 >
00107 
00108 <!ELEMENT skill EMPTY>
00109 <!ATTLIST skill
00110     type            CDATA       #REQUIRED
00111     initial         CDATA       '0'
00112     experience      CDATA       '0'
00113     improve         CDATA       '0'
00114 >
00115 
00116 <!ELEMENT kill EMPTY>
00117 <!ATTLIST kill
00118     type            CDATA       #REQUIRED
00119     killed          CDATA       '0'
00120     stunned         CDATA       '0'
00121 >
00122 
00123 */
00124 

Generated by  doxygen 1.6.2