More refactoring. The code is ALMOST able to compile now – all three programs together give a mere 25 errors.

git-svn-id: http://openexile.googlecode.com/svn/trunk@31 4ebdad44-0ea0-11de-aab3-ff745001d230
This commit is contained in:
2009-04-25 05:12:14 +00:00
parent c8df8232ab
commit 3ba7021543
78 changed files with 7449 additions and 5947 deletions

33
osx/tmpltown.cpp Normal file
View File

@@ -0,0 +1,33 @@
/*
* tmpltown.cpp
* BoE
*
* Created by Celtic Minstrel on 24/04/09.
*
*/
#include "classes.h"
unsigned char& cTemplTown::terrain(size_t x, size_t y){
return _lighting[0][0]; // will need to calculate the terrain somehow
}
rectangle& cTemplTown::room_rect(size_t i){
return _room_rect[i];
}
cTown::cCreature& cTemplTown::creatures(size_t i){
return _creatures[i];
}
unsigned char& cTemplTown::lighting(size_t i, size_t r){
return _lighting[i][r];
}
short cTemplTown::max_dim(){
return 0; // not sure what they are yet.
}
short cTemplTown::max_monst(){
return 30;
}