2005-01-12 11:21:28 +00:00
|
|
|
#ifndef SIGNS_H
|
|
|
|
#define SIGNS_H
|
|
|
|
|
|
|
|
typedef struct SignStruct {
|
|
|
|
StringID str;
|
|
|
|
ViewportSign sign;
|
|
|
|
int32 x;
|
|
|
|
int32 y;
|
|
|
|
byte z;
|
2005-01-25 15:38:36 +00:00
|
|
|
byte owner; // placed by this player. Anyone can delete them though.
|
|
|
|
// OWNER_NONE for gray signs from old games.
|
2005-01-12 11:21:28 +00:00
|
|
|
|
|
|
|
uint16 index;
|
|
|
|
} SignStruct;
|
|
|
|
|
|
|
|
VARDEF SignStruct _sign_list[40];
|
|
|
|
VARDEF uint _sign_size;
|
|
|
|
|
|
|
|
static inline SignStruct *GetSign(uint index)
|
|
|
|
{
|
|
|
|
assert(index < _sign_size);
|
|
|
|
return &_sign_list[index];
|
|
|
|
}
|
|
|
|
|
|
|
|
#define FOR_ALL_SIGNS(s) for(s = _sign_list; s != &_sign_list[_sign_size]; s++)
|
|
|
|
|
|
|
|
VARDEF SignStruct *_new_sign_struct;
|
|
|
|
|
2005-01-22 20:23:18 +00:00
|
|
|
void UpdateAllSignVirtCoords(void);
|
2005-01-12 11:21:28 +00:00
|
|
|
void PlaceProc_Sign(uint tile);
|
|
|
|
|
|
|
|
/* misc.c */
|
|
|
|
void ShowRenameSignWindow(SignStruct *ss);
|
|
|
|
|
|
|
|
#endif /* SIGNS_H */
|