Source: lycad_chargen/olddata.h
|
|
|
|
/***************************************************************************
olddata.h - description
-------------------
begin : Fri Nov 2 2001
copyright : (C) 2001 by Sheldon Lee Wen
email : tormak@home.com
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
//from dataloader.cpp
/*
// Initialize the static data
// Table Types
const int dLoader::RACIAL_ATTRIBUTE_TABLE=0;
const int dLoader::AGE_LEVEL_TABLE=1;
const int dLoader::HEALTH_POINT_TABLE=2;
const int dLoader::DEFENSE_RATING_TABLE=3;
// Race Names, needed to index the tables
const int dLoader::ARAKASHA =0;
const int dLoader::ASURA = 1;
const int dLoader::BELOX =2;
const int dLoader::CHAHANNAWASHEA= 3;
const int dLoader::CULGAN =4;
const int dLoader::HUMAN =5;
const int dLoader::KINN =6;
const int dLoader::MIDIAN=7;
const int dLoader::ROCC =8;
const int dLoader::SIVAKXY=9;
const int dLoader::VORLEX =10;
// Age Level's needed to index tables
const int dLoader::ADOLECENT=0;
const int dLoader::ADULT=1;
const int dLoader::SENIOR=2;
const int dLoader::VENERABLE=3;
const int dLoader::CDP_BONUS=3;
// Body areas needed to index the health table
const int dLoader::HEAD=0;
const int dLoader::TORSO=1;
const int dLoader::ARM=2;
const int dLoader::LEG=3;
const int dLoader::WING=4;
const int dLoader::TAIL=5;
// Gender types
const int dLoader::MALE=0;
const int dLoader::FEMALE=1;
// Attribute types
const int dLoader::WILLPOWER=0;
const int dLoader::STRENGTH=1;
const int dLoader::INTELLIGENCE=2;
const int dLoader::WIT=3;
const int dLoader::DEXTERITY=4;
const int dLoader::CONSTITUTION=5;
const int dLoader::APPEARANCE=6;
const int dLoader::PERSONALITY=7;
const int dLoader::MOVEMENT=8;
*/
//from dataloader.h (in public: )
/*
// Table Types
static const int RACIAL_ATTRIBUTE_TABLE;
static const int AGE_LEVEL_TABLE;
static const int HEALTH_POINT_TABLE;
static const int DEFENSE_RATING_TABLE;
// Race Names, needed to index the tables
static const int ARAKASHA;
static const int ASURA;
static const int BELOX;
static const int CHAHANNAWASHEA;
static const int CULGAN;
static const int HUMAN;
static const int KINN;
static const int MIDIAN;
static const int ROCC;
static const int SIVAKXY;
static const int VORLEX;
// Age Level's needed to index tables
static const int ADOLECENT;
static const int ADULT;
static const int SENIOR;
static const int VENERABLE;
// Body areas needed to index the health table
static const int HEAD;
static const int TORSO;
static const int ARM;
static const int LEG;
static const int WING;
static const int TAIL;
// Gender types
static const int MALE;
static const int FEMALE;
// Attribute types
static const int WILLPOWER;
static const int STRENGTH;
static const int INTELLIGENCE;
static const int WIT;
static const int DEXTERITY;
static const int CONSTITUTION;
static const int APPEARANCE;
static const int PERSONALITY;
static const int MOVEMENT;
static const int CDP_BONUS;
*/
//From staticdata.h old def's
/*
// M=Male F=Female B(1) is Male bonus B(2) is Female Bonus.
// M F M F M F M F M F M F M F M F M F
static const int rac_atts[13][9][2]={ { {0,1}, {2,1}, {-1,-1}, {0,0}, {0,0}, {1,0}, {-1,-1}, {0,0}, {0,0} }, // Arakasha
{ {2,2}, {0,0}, {1,1}, {1,1}, {2,2}, {-1,-1}, {2,2}, {1,1}, {0,0} }, // Asura
{ {1,1}, {-1,-2}, {1,1}, {0,0}, {2,2}, {-1,-1}, {2,2}, {1,1}, {3,3} }, // Belox
{ {1,2}, {1,0}, {1,1}, {1,1}, {2,2}, {0,0}, {2,3}, {-1,-1}, {0,0} }, // Chahannawashea
{ {1,1}, {2,2}, {1,1}, {-1,-1}, {1,1}, {0,0}, {-1,-1}, {-1,-1}, {0,1} }, // Culgan
{ {2,2}, {1,0}, {2,2}, {1,1}, {0,0}, {0,0}, {1,2}, {0,0}, {0,0} }, // Human
{ {0,0}, {1,1}, {1,1}, {0,0}, {2,2}, {1,1}, {0,0}, {1,1}, {0,0} }, // Kinn
{ {1,1}, {1,1}, {0,0}, {1,1}, {2,2}, {1,1}, {-1,-1}, {0,0}, {0,0} }, // Midian
{ {0,0}, {3,3}, {-1,-1}, {-1,-1}, {0,0}, {1,1}, {-1,-1}, {0,0}, {0,0} }, // Rocc
{ {1,1}, {0,0}, {2,2}, {0,0}, {0,0}, {-1,-1}, {1,1}, {0,0}, {0,0} }, // Sivakxy
{ {0,0}, {2,2}, {1,1}, {0,0}, {0,0}, {1,1}, {0,0}, {0,0}, {0,1} } // Vorlex
};
// Initialize the static data
// Table Types
static const int RACIAL_ATTRIBUTE_TABLE=0;
static const int AGE_LEVEL_TABLE=1;
static const int HEALTH_POINT_TABLE=2;
static const int DEFENSE_RATING_TABLE=3;
// Race Names, needed to index the tables
static const int ARAKASHA=0;
static const int ASURA=1;
static const int BELOX=2;
static const int CHAHANNAWASHEA=3;
static const int CULGAN=4;
static const int HUMAN=5;
static const int KINN=6;
static const int MIDIAN=7;
static const int ROCC=8;
static const int SIVAKXY=9;
static const int VORLEX=10;
// Age Level's needed to index tables
static const int ADOLECENT=0;
static const int ADULT=1;
static const int SENIOR=2;
static const int VENERABLE=3;
static const int CDP_BONUS=4;
// Body areas needed to index the health table
static const int HEAD=0;
static const int TORSO=1;
static const int ARM=2;
static const int LEG=3;
static const int WING=4;
static const int TAIL=5;
// Gender types
static const int MALE=0;
static const int FEMALE=1;
// Attribute types
static const int WILLPOWER=0;
static const int STRENGTH=1;
static const int INTELLIGENCE=2;
static const int WIT=3;
static const int DEXTERITY=4;
static const int CONSTITUTION=5;
static const int APPEARANCE=6;
static const int PERSONALITY=7;
static const int MOVEMENT=8;
*/
/*
int Race::parseGender(const string iGender)
{
if ( iGender == "Male" )
return MALE;
else if ( iGender == "Female" )
return FEMALE;
else
return (-1);
}
int Race::parseRace(const string iRace)
{
if ( iRace == "Arakasha" )
return ARAKASHA;
if ( iRace == "Asura")
return ASURA;
if ( iRace == "Belox")
return BELOX;
if ( iRace == "Chahannawashea")
return CHAHANNAWASHEA;
if ( iRace == "Culgan")
return CULGAN;
if ( iRace == "Human")
return HUMAN;
if ( iRace == "Kinn")
return KINN;
if ( iRace == "Midian")
return MIDIAN;
if ( iRace == "Rocc")
return ROCC;
if ( iRace == "Sivakxy")
return SIVAKXY;
if ( iRace == "Vorlex")
return VORLEX;
else
return (-1);
}
*/
Generated by: sheldonl on cr595811-a on Fri Nov 30 10:24:34 2001, using kdoc 2.0a53. |