
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
40 lines
670 B
C++
40 lines
670 B
C++
/*
|
|
* tmpltown.cpp
|
|
* BoE
|
|
*
|
|
* Created by Celtic Minstrel on 24/04/09.
|
|
*
|
|
*/
|
|
|
|
#include <string>
|
|
#include <vector>
|
|
#include <map>
|
|
#include <sstream>
|
|
|
|
|
|
#include "classes.h"
|
|
|
|
unsigned short& cBigTemplTown::terrain(size_t x, size_t y){
|
|
return _terrain[0][0]; // will need to calculate 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;
|
|
}
|