Files
oboe/osx/tmpltown.cpp
Celtic Minstrel 3efed5dcc7 - Tidied scenario editor code – proper indentation applied, no more multiple statements on one line, etc
- Changed various terrain arrays from unsigned char to unsigned short to support more than 256 terrain types.

git-svn-id: http://openexile.googlecode.com/svn/trunk@42 4ebdad44-0ea0-11de-aab3-ff745001d230
2009-04-28 16:45:32 +00:00

34 lines
587 B
C++

/*
* tmpltown.cpp
* BoE
*
* Created by Celtic Minstrel on 24/04/09.
*
*/
#include "classes.h"
unsigned short& cTemplTown::terrain(size_t x, size_t y){
return _terrain[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;
}