- Warnings completely suppressed for the included TinyXML and gzstream libraries - Parentheses warnings are now errors, since there were several that looked like bugs - Ditto for dangling else warnings Some of these warnings were actually bugs: - Town wandering monsters would have never spawned, because the code to do so was accidentally nested within a check for overall_mode == MODE_OUTDOORS ---> boe.monster.cpp, lines 105-137 - Monster's behaviour with respect to elemental fields did not correctly depend on their immunities (this is the same precedence issue Sylae messed up fixing in the Windows code) ---> boe.monsters.cpp, lines 345-359 - Display of damage blocked by armour appeared to be incorrect (needs verification) ---> boe.newgraph.cpp, line 1079 - Three-choice dialogs probably weren't dealing with unusual button types correctly, though that's a minor point since they aren't expected to use such buttons
51 lines
935 B
C++
51 lines
935 B
C++
/*
|
|
* tmpltown.cpp
|
|
* BoE
|
|
*
|
|
* Created by Celtic Minstrel on 24/04/09.
|
|
*
|
|
*/
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include <map>
|
|
#include <sstream>
|
|
|
|
#include "classes.h"
|
|
|
|
ter_num_t& cBigTemplTown::terrain(size_t /*x*/, size_t /*y*/){
|
|
return _terrain[0][0]; // TODO: will need to calculate the terrain somehow
|
|
}
|
|
|
|
void cBigTemplTown::writeTerrainTo(std::ostream& /*file*/) {
|
|
// TODO: Write out the terrain somehow;
|
|
}
|
|
|
|
void cBigTemplTown::readTerrainFrom(std::istream& /*file*/) {
|
|
// TODO: Read in the terrain somehow
|
|
}
|
|
|
|
rectangle& cBigTemplTown::room_rect(size_t i){
|
|
return _room_rect[i];
|
|
}
|
|
|
|
cCreature& cBigTemplTown::creatures(size_t i){
|
|
return _creatures[i];
|
|
}
|
|
|
|
unsigned char& cBigTemplTown::lighting(size_t i, size_t r){
|
|
return _lighting[i][r];
|
|
}
|
|
|
|
short cBigTemplTown::max_dim(){
|
|
return 0; // not sure what they are yet.
|
|
}
|
|
|
|
short cBigTemplTown::max_monst(){
|
|
return 30;
|
|
}
|
|
|
|
short cBigTemplTown::max_items(){
|
|
return 64;
|
|
}
|