- 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
29 lines
469 B
C++
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];
|
|
}
|