29 case 0x41:
return this->
t->
index;
35 if (grfid == 0xFFFFFFFF) {
40 std::list<PersistentStorage *>::iterator iter;
41 for (iter = this->
t->psa_list.begin(); iter != this->
t->psa_list.end(); iter++) {
42 if ((*iter)->grfid == grfid)
return (*iter)->GetValue(parameter);
49 case 0x80:
return this->
t->
xy;
50 case 0x81:
return GB(this->
t->
xy, 8, 8);
54 case 0x92:
return this->
t->
flags;
66 case 0x9E:
return this->
t->
ratings[0];
67 case 0x9F:
return GB(this->
t->
ratings[0], 8, 8);
68 case 0xA0:
return this->
t->
ratings[1];
69 case 0xA1:
return GB(this->
t->
ratings[1], 8, 8);
70 case 0xA2:
return this->
t->
ratings[2];
71 case 0xA3:
return GB(this->
t->
ratings[2], 8, 8);
72 case 0xA4:
return this->
t->
ratings[3];
73 case 0xA5:
return GB(this->
t->
ratings[3], 8, 8);
74 case 0xA6:
return this->
t->
ratings[4];
75 case 0xA7:
return GB(this->
t->
ratings[4], 8, 8);
76 case 0xA8:
return this->
t->
ratings[5];
77 case 0xA9:
return GB(this->
t->
ratings[5], 8, 8);
78 case 0xAA:
return this->
t->
ratings[6];
79 case 0xAB:
return GB(this->
t->
ratings[6], 8, 8);
80 case 0xAC:
return this->
t->
ratings[7];
81 case 0xAD:
return GB(this->
t->
ratings[7], 8, 8);
102 case 0xCA:
return this->
t->GetPercentTransported(CT_PASSENGERS);
103 case 0xCB:
return this->
t->GetPercentTransported(CT_MAIL);
116 DEBUG(grf, 1,
"Unhandled town variable 0x%X", variable);
126 assert(this->
t != NULL);
134 if (grfid == 0xFFFFFFFF) grfid = this->
ro.
grffile->grfid;
135 if (grfid != this->
ro.
grffile->grfid)
return;
138 std::list<PersistentStorage *>::iterator iter;
139 for (iter =
t->psa_list.begin(); iter !=
t->psa_list.end(); iter++) {
140 if ((*iter)->grfid == grfid) {
141 (*iter)->StoreValue(pos, value);
150 t->psa_list.push_back(psa);