more creature rework, now with none of the strings

develop
Petr Mrázek 2009-11-13 14:28:42 +00:00
parent 7489fe51ab
commit e88e9b2951
2 changed files with 8 additions and 7 deletions

@ -98,7 +98,7 @@ class API::Private
DfVector *p_trans; DfVector *p_trans;
DfVector *p_generic; DfVector *p_generic;
DfVector *p_dwarf_names; DfVector *p_dwarf_names;
/*
string getLastNameByAddress(const uint32_t &address, bool use_generic=false); string getLastNameByAddress(const uint32_t &address, bool use_generic=false);
string getSquadNameByAddress(const uint32_t &address, bool use_generic=false); string getSquadNameByAddress(const uint32_t &address, bool use_generic=false);
string getProfessionByAddress(const uint32_t &address); string getProfessionByAddress(const uint32_t &address);
@ -106,6 +106,7 @@ class API::Private
void getSkillsByAddress(const uint32_t &address, vector<t_skill> &); void getSkillsByAddress(const uint32_t &address, vector<t_skill> &);
void getTraitsByAddress(const uint32_t &address, vector<t_trait> &); void getTraitsByAddress(const uint32_t &address, vector<t_trait> &);
void getLaborsByAddress(const uint32_t &address, vector<t_labor> &); void getLaborsByAddress(const uint32_t &address, vector<t_labor> &);
*/
}; };
API::API(const string path_to_xml) API::API(const string path_to_xml)
@ -994,7 +995,7 @@ bool API::ReadCreature(const uint32_t &index, t_creature & furball)
MreadByte(temp + d->creature_sex_offset, furball.sex); MreadByte(temp + d->creature_sex_offset, furball.sex);
return true; return true;
} }
//FIXME: this just isn't enough
void API::InitReadNameTables() void API::InitReadNameTables()
{ {
int genericAddress = d->offset_descriptor->getAddress("language_vector"); int genericAddress = d->offset_descriptor->getAddress("language_vector");

@ -379,7 +379,7 @@ union t_creaturflags2
} bits; } bits;
}; };
/*
struct t_labor struct t_labor
{ {
string name; string name;
@ -426,9 +426,9 @@ struct t_skill
struct t_trait struct t_trait
{ {
uint16_t value; uint16_t value;
string displayTxt; string displayTxt;
string name; string name;
t_trait(){ t_trait(){
value=0; value=0;
} }
@ -446,7 +446,7 @@ struct t_trait
return *this; return *this;
} }
}; };
*/
struct t_lastname struct t_lastname
{ {
int names[7]; int names[7];