Files
oboe/osx/classes/creatlist.cpp
Celtic Minstrel c55948c03f - Removed the ADVEN macro in favour of using the overloaded operatr[] on univ.party
- Removed all referenes to cPopulation::dudes in favour of the overloaded operator[]

git-svn-id: http://openexile.googlecode.com/svn/trunk@84 4ebdad44-0ea0-11de-aab3-ff745001d230
2009-05-30 23:11:47 +00:00

29 lines
469 B
C++

/*
* creatlist.cpp
* BoE
*
* Created by Celtic Minstrel on 24/04/09.
*
*/
#include <string>
#include <vector>
#include <map>
#include <sstream>
#include "classes.h"
#include "oldstructs.h"
cPopulation& cPopulation::operator = (legacy::creature_list_type old){
for(int i = 0; i < 60; i++)
dudes[i] = old.dudes[i];
which_town = old.which_town;
friendly = old.friendly;
return *this;
}
cCreature& cPopulation::operator[](size_t n){
return dudes[n];
}