blob: f112a5ca003eb419f0907d05a51d39c17ab630a2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#include "CResFile.h"
#include "T2ColdTableDef.h"
T2ColdTableDef::T2ColdTableDef(CResFile &inResFile) {
inResFile >> mMinimumGameLevel;
for (unsigned int i = 0; i < 12; i++)
inResFile >> mEntries[i];
}
/*virtual*/ T2ColdTableDef::~T2ColdTableDef() {
}
unsigned int T2ColdTableDef::GetDenomi(unsigned int inGameLevel, unsigned int inMonth) const {
unsigned int result = 0;
if (inGameLevel >= mMinimumGameLevel && inMonth < 12)
result = mEntries[inMonth];
return result;
}
|