(svn r828) Everyone welcome table/sprites.h in trunk - so far not in use besides enum AnimCursors migrated from viewport.h and tiny fragment of enum Sprites migrated from ttd.h (we should slowly convert trunk to use the symbolic names instead of sprite numbers too to reduce the delta to map). Ported from the map branch, where the work was done by Darkvater, Celestar and Tron.

This commit is contained in:
pasky
2004-11-26 21:14:42 +00:00
parent daa599c135
commit 08e16d966a
3 changed files with 866 additions and 14 deletions

10
ttd.h
View File

@@ -1,6 +1,10 @@
#ifndef TTD_H
#define TTD_H
// FIXME: Include only where really needed.
// include sprites
#include "table/sprites.h"
#ifndef VARDEF
#define VARDEF extern
#endif
@@ -511,12 +515,6 @@ enum SpecialStrings {
typedef void PlaceProc(uint tile);
enum Sprites {
SPR_CANALS_BASE = 0x1406,
SPR_SLOPES_BASE = SPR_CANALS_BASE + 70,
SPR_OPENTTD_BASE = SPR_SLOPES_BASE + 74,
};
enum MAP_OWNERS {
OWNER_TOWN = 0xf, // a town owns the tile
OWNER_NONE = 0x10, // nobody owns the tile