Files
oboe/osx/classes/creatlist.h
Niemand f198b4899d Added include guards to all class headers.
Removed unnecessary or potentially harmful compiler flags. 
Added alignment attribute to all old struct members. 
Removed some unused variables. 
Made some switch statements handle all or more cases. 
Removed using declarations in favor of fully qualified names. 
Fixed a couple of assignments in conditionals that should have been comparisons. 
Eliminated linker warnings by restoring default linking of standard libraries. 
Fixed some comparisons between signed and unsigned integers. 

Note: No testing has been done, in particular of old file I/O. This should be checked for regression caused by alteration of old struct definitions. 


git-svn-id: http://openexile.googlecode.com/svn/trunk@63 4ebdad44-0ea0-11de-aab3-ff745001d230
2009-05-22 03:01:05 +00:00

38 lines
687 B
C++

/*
* creatlist.h
* BoE
*
* Created by Celtic Minstrel on 24/04/09.
*
*/
#ifndef CREATLIST_H
#define CREATLIST_H
namespace legacy {
struct creature_list_type;
struct creature_data_type;
};
class cPopulation { // formerly creature_list_type
public:
// class cCreature { // formerly creature_data_type
// public:
// short active, attitude;
// unsigned char number;
// location m_loc;
// cMonster m_d;
// bool mobile;
// short summoned;
// cTown::cCreature monst_start;
//
// cCreature& operator = (legacy::creature_data_type old);
// };
cCreature dudes[60];
short which_town;
short friendly;
cPopulation& operator = (legacy::creature_list_type old);
};
#endif