id
int64 0
877k
| file_name
stringlengths 3
109
| file_path
stringlengths 13
185
| content
stringlengths 31
9.38M
| size
int64 31
9.38M
| language
stringclasses 1
value | extension
stringclasses 11
values | total_lines
int64 1
340k
| avg_line_length
float64 2.18
149k
| max_line_length
int64 7
2.22M
| alphanum_fraction
float64 0
1
| repo_name
stringlengths 6
66
| repo_stars
int64 94
47.3k
| repo_forks
int64 0
12k
| repo_open_issues
int64 0
3.4k
| repo_license
stringclasses 11
values | repo_extraction_date
stringclasses 197
values | exact_duplicates_redpajama
bool 2
classes | near_duplicates_redpajama
bool 2
classes | exact_duplicates_githubcode
bool 2
classes | exact_duplicates_stackv2
bool 1
class | exact_duplicates_stackv1
bool 2
classes | near_duplicates_githubcode
bool 2
classes | near_duplicates_stackv1
bool 2
classes | near_duplicates_stackv2
bool 1
class |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
1,539,563
|
32bpp_optimized.hpp
|
EnergeticBark_OpenTTD-3DS/src/blitter/32bpp_optimized.hpp
|
/* $Id$ */
/** @file 32bpp_optimized.hpp Optimized 32 bpp blitter. */
#ifndef BLITTER_32BPP_OPTIMIZED_HPP
#define BLITTER_32BPP_OPTIMIZED_HPP
#include "32bpp_simple.hpp"
#include "factory.hpp"
class Blitter_32bppOptimized : public Blitter_32bppSimple {
public:
struct SpriteData {
uint32 offset[ZOOM_LVL_COUNT][2];
byte data[VARARRAY_SIZE];
};
/* virtual */ void Draw(Blitter::BlitterParams *bp, BlitterMode mode, ZoomLevel zoom);
/* virtual */ Sprite *Encode(SpriteLoader::Sprite *sprite, Blitter::AllocatorProc *allocator);
/* virtual */ const char *GetName() { return "32bpp-optimized"; }
template <BlitterMode mode> void Draw(const Blitter::BlitterParams *bp, ZoomLevel zoom);
};
class FBlitter_32bppOptimized: public BlitterFactory<FBlitter_32bppOptimized> {
public:
/* virtual */ const char *GetName() { return "32bpp-optimized"; }
/* virtual */ const char *GetDescription() { return "32bpp Optimized Blitter (no palette animation)"; }
/* virtual */ Blitter *CreateInstance() { return new Blitter_32bppOptimized(); }
};
#endif /* BLITTER_32BPP_OPTIMIZED_HPP */
| 1,089
|
C++
|
.h
| 24
| 43.458333
| 104
| 0.748106
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| true
| true
| false
|
1,539,579
|
sqopcodes.h
|
EnergeticBark_OpenTTD-3DS/src/3rdparty/squirrel/squirrel/sqopcodes.h
|
/* see copyright notice in squirrel.h */
#ifndef _SQOPCODES_H_
#define _SQOPCODES_H_
#define MAX_FUNC_STACKSIZE 0xFF
#define MAX_LITERALS ((SQInteger)0x7FFFFFFF)
enum BitWiseOP {
BW_AND = 0,
BW_OR = 2,
BW_XOR = 3,
BW_SHIFTL = 4,
BW_SHIFTR = 5,
BW_USHIFTR = 6
};
enum CmpOP {
CMP_G = 0,
CMP_GE = 2,
CMP_L = 3,
CMP_LE = 4
};
enum SQOpcode
{
_OP_LINE= 0x00,
_OP_LOAD= 0x01,
_OP_LOADINT= 0x02,
_OP_LOADFLOAT= 0x03,
_OP_DLOAD= 0x04,
_OP_TAILCALL= 0x05,
_OP_CALL= 0x06,
_OP_PREPCALL= 0x07,
_OP_PREPCALLK= 0x08,
_OP_GETK= 0x09,
_OP_MOVE= 0x0A,
_OP_NEWSLOT= 0x0B,
_OP_DELETE= 0x0C,
_OP_SET= 0x0D,
_OP_GET= 0x0E,
_OP_EQ= 0x0F,
_OP_NE= 0x10,
_OP_ARITH= 0x11,
_OP_BITW= 0x12,
_OP_RETURN= 0x13,
_OP_LOADNULLS= 0x14,
_OP_LOADROOTTABLE= 0x15,
_OP_LOADBOOL= 0x16,
_OP_DMOVE= 0x17,
_OP_JMP= 0x18,
_OP_JNZ= 0x19,
_OP_JZ= 0x1A,
_OP_LOADFREEVAR= 0x1B,
_OP_VARGC= 0x1C,
_OP_GETVARGV= 0x1D,
_OP_NEWTABLE= 0x1E,
_OP_NEWARRAY= 0x1F,
_OP_APPENDARRAY= 0x20,
_OP_GETPARENT= 0x21,
_OP_COMPARITH= 0x22,
_OP_COMPARITHL= 0x23,
_OP_INC= 0x24,
_OP_INCL= 0x25,
_OP_PINC= 0x26,
_OP_PINCL= 0x27,
_OP_CMP= 0x28,
_OP_EXISTS= 0x29,
_OP_INSTANCEOF= 0x2A,
_OP_AND= 0x2B,
_OP_OR= 0x2C,
_OP_NEG= 0x2D,
_OP_NOT= 0x2E,
_OP_BWNOT= 0x2F,
_OP_CLOSURE= 0x30,
_OP_YIELD= 0x31,
_OP_RESUME= 0x32,
_OP_FOREACH= 0x33,
_OP_POSTFOREACH= 0x34,
_OP_DELEGATE= 0x35,
_OP_CLONE= 0x36,
_OP_TYPEOF= 0x37,
_OP_PUSHTRAP= 0x38,
_OP_POPTRAP= 0x39,
_OP_THROW= 0x3A,
_OP_CLASS= 0x3B,
_OP_NEWSLOTA= 0x3C,
_OP_SCOPE_END= 0x3D,
};
struct SQInstructionDesc {
const SQChar *name;
};
struct SQInstruction
{
SQInstruction(){};
SQInstruction(SQOpcode _op,SQInteger a0=0,SQInteger a1=0,SQInteger a2=0,SQInteger a3=0)
{ op = _op;
_arg0 = (unsigned char)a0;_arg1 = (SQInt32)a1;
_arg2 = (unsigned char)a2;_arg3 = (unsigned char)a3;
}
SQInt32 _arg1;
unsigned char op;
unsigned char _arg0;
unsigned char _arg2;
unsigned char _arg3;
};
#include "squtils.h"
typedef sqvector<SQInstruction> SQInstructionVec;
#define NEW_SLOT_ATTRIBUTES_FLAG 0x01
#define NEW_SLOT_STATIC_FLAG 0x02
#endif // _SQOPCODES_H_
| 2,276
|
C++
|
.h
| 106
| 19.566038
| 88
| 0.641667
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,582
|
squserdata.h
|
EnergeticBark_OpenTTD-3DS/src/3rdparty/squirrel/squirrel/squserdata.h
|
/* see copyright notice in squirrel.h */
#ifndef _SQUSERDATA_H_
#define _SQUSERDATA_H_
struct SQUserData : SQDelegable
{
SQUserData(SQSharedState *ss){ _delegate = 0; _hook = NULL; INIT_CHAIN(); ADD_TO_CHAIN(&_ss(this)->_gc_chain, this); }
~SQUserData()
{
REMOVE_FROM_CHAIN(&_ss(this)->_gc_chain, this);
SetDelegate(NULL);
}
static SQUserData* Create(SQSharedState *ss, SQInteger size)
{
SQUserData* ud = (SQUserData*)SQ_MALLOC(sizeof(SQUserData)+(size-1));
new (ud) SQUserData(ss);
ud->_size = size;
ud->_typetag = 0;
return ud;
}
#ifndef NO_GARBAGE_COLLECTOR
void Mark(SQCollectable **chain);
void Finalize(){SetDelegate(NULL);}
#endif
void Release() {
if (_hook) _hook(_val,_size);
SQInteger tsize = _size - 1;
this->~SQUserData();
SQ_FREE(this, sizeof(SQUserData) + tsize);
}
SQInteger _size;
SQRELEASEHOOK _hook;
SQUserPointer _typetag;
SQChar _val[1];
};
#endif //_SQUSERDATA_H_
| 925
|
C++
|
.h
| 35
| 24.285714
| 119
| 0.700113
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| true
| false
| false
| false
| false
| false
| false
|
1,539,587
|
sqstdio.h
|
EnergeticBark_OpenTTD-3DS/src/3rdparty/squirrel/include/sqstdio.h
|
/* see copyright notice in squirrel.h */
#ifndef _SQSTDIO_H_
#define _SQSTDIO_H_
#ifdef __cplusplus
#define SQSTD_STREAM_TYPE_TAG 0x80000000
struct SQStream {
virtual ~SQStream() {}
virtual SQInteger Read(void *buffer, SQInteger size) = 0;
virtual SQInteger Write(void *buffer, SQInteger size) = 0;
virtual SQInteger Flush() = 0;
virtual SQInteger Tell() = 0;
virtual SQInteger Len() = 0;
virtual SQInteger Seek(SQInteger offset, SQInteger origin) = 0;
virtual bool IsValid() = 0;
virtual bool EOS() = 0;
};
extern "C" {
#endif
#define SQ_SEEK_CUR 0
#define SQ_SEEK_END 1
#define SQ_SEEK_SET 2
typedef void* SQFILE;
SQUIRREL_API SQFILE sqstd_fopen(const SQChar *,const SQChar *);
SQUIRREL_API SQInteger sqstd_fread(SQUserPointer, SQInteger, SQInteger, SQFILE);
SQUIRREL_API SQInteger sqstd_fwrite(const SQUserPointer, SQInteger, SQInteger, SQFILE);
SQUIRREL_API SQInteger sqstd_fseek(SQFILE , SQInteger , SQInteger);
SQUIRREL_API SQInteger sqstd_ftell(SQFILE);
SQUIRREL_API SQInteger sqstd_fflush(SQFILE);
SQUIRREL_API SQInteger sqstd_fclose(SQFILE);
SQUIRREL_API SQInteger sqstd_feof(SQFILE);
SQUIRREL_API SQRESULT sqstd_createfile(HSQUIRRELVM v, SQFILE file,SQBool own);
SQUIRREL_API SQRESULT sqstd_getfile(HSQUIRRELVM v, SQInteger idx, SQFILE *file);
//compiler helpers
SQUIRREL_API SQRESULT sqstd_loadfile(HSQUIRRELVM v,const SQChar *filename,SQBool printerror);
SQUIRREL_API SQRESULT sqstd_dofile(HSQUIRRELVM v,const SQChar *filename,SQBool retval,SQBool printerror);
SQUIRREL_API SQRESULT sqstd_writeclosuretofile(HSQUIRRELVM v,const SQChar *filename);
SQUIRREL_API SQRESULT sqstd_register_iolib(HSQUIRRELVM v);
#ifdef __cplusplus
} /*extern "C"*/
#endif
#endif /*_SQSTDIO_H_*/
| 1,706
|
C++
|
.h
| 41
| 40.073171
| 105
| 0.792978
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| true
| false
| false
| false
| false
| false
| false
|
1,539,588
|
squirrel.h
|
EnergeticBark_OpenTTD-3DS/src/3rdparty/squirrel/include/squirrel.h
|
/*
Copyright (c) 2003-2008 Alberto Demichelis
This software is provided 'as-is', without any
express or implied warranty. In no event will the
authors be held liable for any damages arising from
the use of this software.
Permission is granted to anyone to use this software
for any purpose, including commercial applications,
and to alter it and redistribute it freely, subject
to the following restrictions:
1. The origin of this software must not be
misrepresented; you must not claim that
you wrote the original software. If you
use this software in a product, an
acknowledgment in the product
documentation would be appreciated but is
not required.
2. Altered source versions must be plainly
marked as such, and must not be
misrepresented as being the original
software.
3. This notice may not be removed or
altered from any source distribution.
*/
#ifndef _SQUIRREL_H_
#define _SQUIRREL_H_
#ifdef __cplusplus
extern "C" {
#endif
#if defined(_MSC_VER) && _MSC_VER >= 1400 // MSVC 2005 safety checks
# pragma warning(disable: 4996) // '_wfopen' was declared deprecated
# define _CRT_SECURE_NO_DEPRECATE // all deprecated 'unsafe string functions
# define _CRT_NON_CONFORMING_SWPRINTFS // another deprecated stuff
#endif /* _MSC_VER >= 1400 */
#ifndef SQUIRREL_API
#define SQUIRREL_API extern
#endif
#if (defined(_WIN64) || defined(_LP64)) && !defined(_SQ64)
#define _SQ64
#endif
#ifdef _SQ64
#ifdef _MSC_VER
typedef __int64 SQInteger;
typedef unsigned __int64 SQUnsignedInteger;
typedef unsigned __int64 SQHash; /*should be the same size of a pointer*/
#else
typedef long SQInteger;
typedef unsigned long SQUnsignedInteger;
typedef unsigned long SQHash; /*should be the same size of a pointer*/
#endif
typedef int SQInt32;
#else
typedef int SQInteger;
typedef int SQInt32; /*must be 32 bits(also on 64bits processors)*/
typedef unsigned int SQUnsignedInteger;
typedef unsigned int SQHash; /*should be the same size of a pointer*/
#endif
typedef float SQFloat;
typedef void* SQUserPointer;
typedef SQUnsignedInteger SQBool;
typedef SQInteger SQRESULT;
#define SQTrue (1)
#define SQFalse (0)
struct SQVM;
struct SQTable;
struct SQArray;
struct SQString;
struct SQClosure;
struct SQGenerator;
struct SQNativeClosure;
struct SQUserData;
struct SQFunctionProto;
struct SQRefCounted;
struct SQClass;
struct SQInstance;
struct SQDelegable;
#ifdef _UNICODE
#define SQUNICODE
#endif
#ifdef SQUNICODE
#if (defined(_MSC_VER) && _MSC_VER >= 1400) // 1400 = VS8
#ifndef _WCHAR_T_DEFINED //this is if the compiler considers wchar_t as native type
typedef unsigned short wchar_t;
#endif
#endif
typedef wchar_t SQChar;
#define _SC(a) L##a
#define scstrcmp wcscmp
#define scsprintf swprintf
#define scsnprintf _snwprintf
#define scstrlen wcslen
#define scstrtod wcstod
#define scstrtol wcstol
#define scatoi _wtoi
#define scstrtoul wcstoul
#define scvsprintf vswprintf
#define scstrstr wcsstr
#define scisspace iswspace
#define scisdigit iswdigit
#define scisxdigit iswxdigit
#define scisalpha iswalpha
#define sciscntrl iswcntrl
#define scisalnum iswalnum
#define scprintf wprintf
#define scfprintf fwprintf
#define scvprintf vwprintf
#define scvfprintf vfwprintf
#define scvsnprintf _vsnwprintf
#define scstrdup _wcsdup
#define scstrrchr wcsrchr
#define scstrcat wcscat
#define MAX_CHAR 0xFFFF
#else
typedef char SQChar;
#define _SC(a) a
#define scstrcmp strcmp
#define scsprintf sprintf
#define scsnprintf snprintf
#define scstrlen strlen
#define scstrtod strtod
#define scstrtol strtol
#define scatoi atoi
#define scstrtoul strtoul
#define scvsprintf vsprintf
#define scstrstr strstr
#define scisspace isspace
#define scisdigit isdigit
#define scisxdigit isxdigit
#define sciscntrl iscntrl
#define scisalpha isalpha
#define scisalnum isalnum
#define scprintf printf
#define scfprintf fprintf
#define scvprintf vprintf
#define scvfprintf vfprintf
#define scvsnprintf vsnprintf
#define scstrdup strdup
#define scstrrchr strrchr
#define scstrcat strcat
#define MAX_CHAR 0xFF
#endif
#define SQUIRREL_VERSION _SC("Squirrel 2.2.2 stable - With custom OpenTTD modifications")
#define SQUIRREL_COPYRIGHT _SC("Copyright (C) 2003-2008 Alberto Demichelis")
#define SQUIRREL_AUTHOR _SC("Alberto Demichelis")
#define SQ_VMSTATE_IDLE 0
#define SQ_VMSTATE_RUNNING 1
#define SQ_VMSTATE_SUSPENDED 2
#define SQUIRREL_EOB 0
#define SQ_BYTECODE_STREAM_TAG 0xFAFA
#define SQOBJECT_REF_COUNTED 0x08000000
#define SQOBJECT_NUMERIC 0x04000000
#define SQOBJECT_DELEGABLE 0x02000000
#define SQOBJECT_CANBEFALSE 0x01000000
#define SQ_MATCHTYPEMASKSTRING (-99999)
#define _RT_MASK 0x00FFFFFF
#define _RAW_TYPE(type) (type&_RT_MASK)
#define _RT_NULL 0x00000001
#define _RT_INTEGER 0x00000002
#define _RT_FLOAT 0x00000004
#define _RT_BOOL 0x00000008
#define _RT_STRING 0x00000010
#define _RT_TABLE 0x00000020
#define _RT_ARRAY 0x00000040
#define _RT_USERDATA 0x00000080
#define _RT_CLOSURE 0x00000100
#define _RT_NATIVECLOSURE 0x00000200
#define _RT_GENERATOR 0x00000400
#define _RT_USERPOINTER 0x00000800
#define _RT_THREAD 0x00001000
#define _RT_FUNCPROTO 0x00002000
#define _RT_CLASS 0x00004000
#define _RT_INSTANCE 0x00008000
#define _RT_WEAKREF 0x00010000
typedef enum tagSQObjectType{
OT_NULL = (_RT_NULL|SQOBJECT_CANBEFALSE),
OT_INTEGER = (_RT_INTEGER|SQOBJECT_NUMERIC|SQOBJECT_CANBEFALSE),
OT_FLOAT = (_RT_FLOAT|SQOBJECT_NUMERIC|SQOBJECT_CANBEFALSE),
OT_BOOL = (_RT_BOOL|SQOBJECT_CANBEFALSE),
OT_STRING = (_RT_STRING|SQOBJECT_REF_COUNTED),
OT_TABLE = (_RT_TABLE|SQOBJECT_REF_COUNTED|SQOBJECT_DELEGABLE),
OT_ARRAY = (_RT_ARRAY|SQOBJECT_REF_COUNTED),
OT_USERDATA = (_RT_USERDATA|SQOBJECT_REF_COUNTED|SQOBJECT_DELEGABLE),
OT_CLOSURE = (_RT_CLOSURE|SQOBJECT_REF_COUNTED),
OT_NATIVECLOSURE = (_RT_NATIVECLOSURE|SQOBJECT_REF_COUNTED),
OT_GENERATOR = (_RT_GENERATOR|SQOBJECT_REF_COUNTED),
OT_USERPOINTER = _RT_USERPOINTER,
OT_THREAD = (_RT_THREAD|SQOBJECT_REF_COUNTED) ,
OT_FUNCPROTO = (_RT_FUNCPROTO|SQOBJECT_REF_COUNTED), //internal usage only
OT_CLASS = (_RT_CLASS|SQOBJECT_REF_COUNTED),
OT_INSTANCE = (_RT_INSTANCE|SQOBJECT_REF_COUNTED|SQOBJECT_DELEGABLE),
OT_WEAKREF = (_RT_WEAKREF|SQOBJECT_REF_COUNTED)
}SQObjectType;
#define ISREFCOUNTED(t) (t&SQOBJECT_REF_COUNTED)
typedef union tagSQObjectValue
{
struct SQTable *pTable;
struct SQArray *pArray;
struct SQClosure *pClosure;
struct SQGenerator *pGenerator;
struct SQNativeClosure *pNativeClosure;
struct SQString *pString;
struct SQUserData *pUserData;
SQInteger nInteger;
SQFloat fFloat;
SQUserPointer pUserPointer;
struct SQFunctionProto *pFunctionProto;
struct SQRefCounted *pRefCounted;
struct SQDelegable *pDelegable;
struct SQVM *pThread;
struct SQClass *pClass;
struct SQInstance *pInstance;
struct SQWeakRef *pWeakRef;
}SQObjectValue;
typedef struct tagSQObject
{
SQObjectType _type;
SQObjectValue _unVal;
}SQObject;
typedef struct tagSQStackInfos{
const SQChar* funcname;
const SQChar* source;
SQInteger line;
}SQStackInfos;
typedef struct SQVM* HSQUIRRELVM;
typedef SQObject HSQOBJECT;
typedef SQInteger (*SQFUNCTION)(HSQUIRRELVM);
typedef SQInteger (*SQRELEASEHOOK)(SQUserPointer,SQInteger size);
typedef void (*SQCOMPILERERROR)(HSQUIRRELVM,const SQChar * /*desc*/,const SQChar * /*source*/,SQInteger /*line*/,SQInteger /*column*/);
typedef void (*SQPRINTFUNCTION)(HSQUIRRELVM,const SQChar * ,...);
typedef SQInteger (*SQWRITEFUNC)(SQUserPointer,SQUserPointer,SQInteger);
typedef SQInteger (*SQREADFUNC)(SQUserPointer,SQUserPointer,SQInteger);
typedef SQInteger (*SQLEXREADFUNC)(SQUserPointer);
typedef struct tagSQRegFunction{
const SQChar *name;
SQFUNCTION f;
SQInteger nparamscheck;
const SQChar *typemask;
}SQRegFunction;
/*vm*/
SQUIRREL_API HSQUIRRELVM sq_open(SQInteger initialstacksize);
SQUIRREL_API HSQUIRRELVM sq_newthread(HSQUIRRELVM friendvm, SQInteger initialstacksize);
SQUIRREL_API void sq_seterrorhandler(HSQUIRRELVM v);
SQUIRREL_API void sq_close(HSQUIRRELVM v);
SQUIRREL_API void sq_setforeignptr(HSQUIRRELVM v,SQUserPointer p);
SQUIRREL_API SQUserPointer sq_getforeignptr(HSQUIRRELVM v);
SQUIRREL_API void sq_setprintfunc(HSQUIRRELVM v, SQPRINTFUNCTION printfunc);
SQUIRREL_API SQPRINTFUNCTION sq_getprintfunc(HSQUIRRELVM v);
SQUIRREL_API SQRESULT sq_suspendvm(HSQUIRRELVM v);
SQUIRREL_API bool sq_resumecatch(HSQUIRRELVM v, int suspend = -1);
SQUIRREL_API SQRESULT sq_wakeupvm(HSQUIRRELVM v,SQBool resumedret,SQBool retval,SQBool raiseerror);
SQUIRREL_API SQInteger sq_getvmstate(HSQUIRRELVM v);
/*compiler*/
SQUIRREL_API SQRESULT sq_compile(HSQUIRRELVM v,SQLEXREADFUNC read,SQUserPointer p,const SQChar *sourcename,SQBool raiseerror);
SQUIRREL_API SQRESULT sq_compilebuffer(HSQUIRRELVM v,const SQChar *s,SQInteger size,const SQChar *sourcename,SQBool raiseerror);
SQUIRREL_API void sq_enabledebuginfo(HSQUIRRELVM v, SQBool enable);
SQUIRREL_API void sq_notifyallexceptions(HSQUIRRELVM v, SQBool enable);
SQUIRREL_API void sq_setcompilererrorhandler(HSQUIRRELVM v,SQCOMPILERERROR f);
/*stack operations*/
SQUIRREL_API void sq_push(HSQUIRRELVM v,SQInteger idx);
SQUIRREL_API void sq_pop(HSQUIRRELVM v,SQInteger nelemstopop);
SQUIRREL_API void sq_poptop(HSQUIRRELVM v);
SQUIRREL_API void sq_remove(HSQUIRRELVM v,SQInteger idx);
SQUIRREL_API SQInteger sq_gettop(HSQUIRRELVM v);
SQUIRREL_API void sq_settop(HSQUIRRELVM v,SQInteger newtop);
SQUIRREL_API void sq_reservestack(HSQUIRRELVM v,SQInteger nsize);
SQUIRREL_API SQInteger sq_cmp(HSQUIRRELVM v);
SQUIRREL_API void sq_move(HSQUIRRELVM dest,HSQUIRRELVM src,SQInteger idx);
/*object creation handling*/
SQUIRREL_API SQUserPointer sq_newuserdata(HSQUIRRELVM v,SQUnsignedInteger size);
SQUIRREL_API void sq_newtable(HSQUIRRELVM v);
SQUIRREL_API void sq_newarray(HSQUIRRELVM v,SQInteger size);
SQUIRREL_API void sq_newclosure(HSQUIRRELVM v,SQFUNCTION func,SQUnsignedInteger nfreevars);
SQUIRREL_API SQRESULT sq_setparamscheck(HSQUIRRELVM v,SQInteger nparamscheck,const SQChar *typemask);
SQUIRREL_API SQRESULT sq_bindenv(HSQUIRRELVM v,SQInteger idx);
SQUIRREL_API void sq_pushstring(HSQUIRRELVM v,const SQChar *s,SQInteger len);
SQUIRREL_API void sq_pushfloat(HSQUIRRELVM v,SQFloat f);
SQUIRREL_API void sq_pushinteger(HSQUIRRELVM v,SQInteger n);
SQUIRREL_API void sq_pushbool(HSQUIRRELVM v,SQBool b);
SQUIRREL_API void sq_pushuserpointer(HSQUIRRELVM v,SQUserPointer p);
SQUIRREL_API void sq_pushnull(HSQUIRRELVM v);
SQUIRREL_API SQObjectType sq_gettype(HSQUIRRELVM v,SQInteger idx);
SQUIRREL_API SQInteger sq_getsize(HSQUIRRELVM v,SQInteger idx);
SQUIRREL_API SQRESULT sq_getbase(HSQUIRRELVM v,SQInteger idx);
SQUIRREL_API SQBool sq_instanceof(HSQUIRRELVM v);
SQUIRREL_API void sq_tostring(HSQUIRRELVM v,SQInteger idx);
SQUIRREL_API void sq_tobool(HSQUIRRELVM v, SQInteger idx, SQBool *b);
SQUIRREL_API SQRESULT sq_getstring(HSQUIRRELVM v,SQInteger idx,const SQChar **c);
SQUIRREL_API SQRESULT sq_getinteger(HSQUIRRELVM v,SQInteger idx,SQInteger *i);
SQUIRREL_API SQRESULT sq_getfloat(HSQUIRRELVM v,SQInteger idx,SQFloat *f);
SQUIRREL_API SQRESULT sq_getbool(HSQUIRRELVM v,SQInteger idx,SQBool *b);
SQUIRREL_API SQRESULT sq_getthread(HSQUIRRELVM v,SQInteger idx,HSQUIRRELVM *thread);
SQUIRREL_API SQRESULT sq_getuserpointer(HSQUIRRELVM v,SQInteger idx,SQUserPointer *p);
SQUIRREL_API SQRESULT sq_getuserdata(HSQUIRRELVM v,SQInteger idx,SQUserPointer *p,SQUserPointer *typetag);
SQUIRREL_API SQRESULT sq_settypetag(HSQUIRRELVM v,SQInteger idx,SQUserPointer typetag);
SQUIRREL_API SQRESULT sq_gettypetag(HSQUIRRELVM v,SQInteger idx,SQUserPointer *typetag);
SQUIRREL_API void sq_setreleasehook(HSQUIRRELVM v,SQInteger idx,SQRELEASEHOOK hook);
SQUIRREL_API SQChar *sq_getscratchpad(HSQUIRRELVM v,SQInteger minsize);
SQUIRREL_API SQRESULT sq_getclosureinfo(HSQUIRRELVM v,SQInteger idx,SQUnsignedInteger *nparams,SQUnsignedInteger *nfreevars);
SQUIRREL_API SQRESULT sq_setnativeclosurename(HSQUIRRELVM v,SQInteger idx,const SQChar *name);
SQUIRREL_API SQRESULT sq_setinstanceup(HSQUIRRELVM v, SQInteger idx, SQUserPointer p);
SQUIRREL_API SQRESULT sq_getinstanceup(HSQUIRRELVM v, SQInteger idx, SQUserPointer *p,SQUserPointer typetag);
SQUIRREL_API SQRESULT sq_setclassudsize(HSQUIRRELVM v, SQInteger idx, SQInteger udsize);
SQUIRREL_API SQRESULT sq_newclass(HSQUIRRELVM v,SQBool hasbase);
SQUIRREL_API SQRESULT sq_createinstance(HSQUIRRELVM v,SQInteger idx);
SQUIRREL_API SQRESULT sq_setattributes(HSQUIRRELVM v,SQInteger idx);
SQUIRREL_API SQRESULT sq_getattributes(HSQUIRRELVM v,SQInteger idx);
SQUIRREL_API SQRESULT sq_getclass(HSQUIRRELVM v,SQInteger idx);
SQUIRREL_API void sq_weakref(HSQUIRRELVM v,SQInteger idx);
SQUIRREL_API SQRESULT sq_getdefaultdelegate(HSQUIRRELVM v,SQObjectType t);
/*object manipulation*/
SQUIRREL_API void sq_pushroottable(HSQUIRRELVM v);
SQUIRREL_API void sq_pushregistrytable(HSQUIRRELVM v);
SQUIRREL_API void sq_pushconsttable(HSQUIRRELVM v);
SQUIRREL_API SQRESULT sq_setroottable(HSQUIRRELVM v);
SQUIRREL_API SQRESULT sq_setconsttable(HSQUIRRELVM v);
SQUIRREL_API SQRESULT sq_newslot(HSQUIRRELVM v, SQInteger idx, SQBool bstatic);
SQUIRREL_API SQRESULT sq_deleteslot(HSQUIRRELVM v,SQInteger idx,SQBool pushval);
SQUIRREL_API SQRESULT sq_set(HSQUIRRELVM v,SQInteger idx);
SQUIRREL_API SQRESULT sq_get(HSQUIRRELVM v,SQInteger idx);
SQUIRREL_API SQRESULT sq_rawget(HSQUIRRELVM v,SQInteger idx);
SQUIRREL_API SQRESULT sq_rawset(HSQUIRRELVM v,SQInteger idx);
SQUIRREL_API SQRESULT sq_rawdeleteslot(HSQUIRRELVM v,SQInteger idx,SQBool pushval);
SQUIRREL_API SQRESULT sq_arrayappend(HSQUIRRELVM v,SQInteger idx);
SQUIRREL_API SQRESULT sq_arraypop(HSQUIRRELVM v,SQInteger idx,SQBool pushval);
SQUIRREL_API SQRESULT sq_arrayresize(HSQUIRRELVM v,SQInteger idx,SQInteger newsize);
SQUIRREL_API SQRESULT sq_arrayreverse(HSQUIRRELVM v,SQInteger idx);
SQUIRREL_API SQRESULT sq_arrayremove(HSQUIRRELVM v,SQInteger idx,SQInteger itemidx);
SQUIRREL_API SQRESULT sq_arrayinsert(HSQUIRRELVM v,SQInteger idx,SQInteger destpos);
SQUIRREL_API SQRESULT sq_setdelegate(HSQUIRRELVM v,SQInteger idx);
SQUIRREL_API SQRESULT sq_getdelegate(HSQUIRRELVM v,SQInteger idx);
SQUIRREL_API SQRESULT sq_clone(HSQUIRRELVM v,SQInteger idx);
SQUIRREL_API SQRESULT sq_setfreevariable(HSQUIRRELVM v,SQInteger idx,SQUnsignedInteger nval);
SQUIRREL_API SQRESULT sq_next(HSQUIRRELVM v,SQInteger idx);
SQUIRREL_API SQRESULT sq_getweakrefval(HSQUIRRELVM v,SQInteger idx);
SQUIRREL_API SQRESULT sq_clear(HSQUIRRELVM v,SQInteger idx);
/*calls*/
SQUIRREL_API SQRESULT sq_call(HSQUIRRELVM v,SQInteger params,SQBool retval,SQBool raiseerror, int suspend = -1);
SQUIRREL_API SQRESULT sq_resume(HSQUIRRELVM v,SQBool retval,SQBool raiseerror);
SQUIRREL_API const SQChar *sq_getlocal(HSQUIRRELVM v,SQUnsignedInteger level,SQUnsignedInteger idx);
SQUIRREL_API const SQChar *sq_getfreevariable(HSQUIRRELVM v,SQInteger idx,SQUnsignedInteger nval);
SQUIRREL_API SQRESULT sq_throwerror(HSQUIRRELVM v,const SQChar *err);
SQUIRREL_API void sq_reseterror(HSQUIRRELVM v);
SQUIRREL_API void sq_getlasterror(HSQUIRRELVM v);
/*raw object handling*/
SQUIRREL_API SQRESULT sq_getstackobj(HSQUIRRELVM v,SQInteger idx,HSQOBJECT *po);
SQUIRREL_API void sq_pushobject(HSQUIRRELVM v,HSQOBJECT obj);
SQUIRREL_API void sq_addref(HSQUIRRELVM v,HSQOBJECT *po);
SQUIRREL_API SQBool sq_release(HSQUIRRELVM v,HSQOBJECT *po);
SQUIRREL_API void sq_resetobject(HSQOBJECT *po);
SQUIRREL_API const SQChar *sq_objtostring(HSQOBJECT *o);
SQUIRREL_API SQBool sq_objtobool(HSQOBJECT *o);
SQUIRREL_API SQInteger sq_objtointeger(HSQOBJECT *o);
SQUIRREL_API SQFloat sq_objtofloat(HSQOBJECT *o);
SQUIRREL_API SQRESULT sq_getobjtypetag(HSQOBJECT *o,SQUserPointer * typetag);
/*GC*/
SQUIRREL_API SQInteger sq_collectgarbage(HSQUIRRELVM v);
/*serialization*/
SQUIRREL_API SQRESULT sq_writeclosure(HSQUIRRELVM vm,SQWRITEFUNC writef,SQUserPointer up);
SQUIRREL_API SQRESULT sq_readclosure(HSQUIRRELVM vm,SQREADFUNC readf,SQUserPointer up);
/*mem allocation*/
SQUIRREL_API void *sq_malloc(SQUnsignedInteger size);
SQUIRREL_API void *sq_realloc(void* p,SQUnsignedInteger oldsize,SQUnsignedInteger newsize);
SQUIRREL_API void sq_free(void *p,SQUnsignedInteger size);
/*debug*/
SQUIRREL_API SQRESULT sq_stackinfos(HSQUIRRELVM v,SQInteger level,SQStackInfos *si);
SQUIRREL_API void sq_setdebughook(HSQUIRRELVM v);
/*UTILITY MACRO*/
#define sq_isnumeric(o) ((o)._type&SQOBJECT_NUMERIC)
#define sq_istable(o) ((o)._type==OT_TABLE)
#define sq_isarray(o) ((o)._type==OT_ARRAY)
#define sq_isfunction(o) ((o)._type==OT_FUNCPROTO)
#define sq_isclosure(o) ((o)._type==OT_CLOSURE)
#define sq_isgenerator(o) ((o)._type==OT_GENERATOR)
#define sq_isnativeclosure(o) ((o)._type==OT_NATIVECLOSURE)
#define sq_isstring(o) ((o)._type==OT_STRING)
#define sq_isinteger(o) ((o)._type==OT_INTEGER)
#define sq_isfloat(o) ((o)._type==OT_FLOAT)
#define sq_isuserpointer(o) ((o)._type==OT_USERPOINTER)
#define sq_isuserdata(o) ((o)._type==OT_USERDATA)
#define sq_isthread(o) ((o)._type==OT_THREAD)
#define sq_isnull(o) ((o)._type==OT_NULL)
#define sq_isclass(o) ((o)._type==OT_CLASS)
#define sq_isinstance(o) ((o)._type==OT_INSTANCE)
#define sq_isbool(o) ((o)._type==OT_BOOL)
#define sq_isweakref(o) ((o)._type==OT_WEAKREF)
#define sq_type(o) ((o)._type)
/* deprecated */
#define sq_createslot(v,n) sq_newslot(v,n,SQFalse)
#define SQ_OK (0)
#define SQ_ERROR (-1)
#define SQ_FAILED(res) (res<0)
#define SQ_SUCCEEDED(res) (res>=0)
#ifdef __cplusplus
} /*extern "C"*/
#endif
#endif /*_SQUIRREL_H_*/
| 17,377
|
C++
|
.h
| 396
| 42.570707
| 135
| 0.814498
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| true
| false
| false
| false
| false
| false
| false
|
1,539,589
|
sqstdstring.h
|
EnergeticBark_OpenTTD-3DS/src/3rdparty/squirrel/include/sqstdstring.h
|
/* see copyright notice in squirrel.h */
#ifndef _SQSTD_STRING_H_
#define _SQSTD_STRING_H_
#ifdef __cplusplus
extern "C" {
#endif
typedef unsigned int SQRexBool;
typedef struct SQRex SQRex;
typedef struct {
const SQChar *begin;
SQInteger len;
} SQRexMatch;
SQUIRREL_API SQRex *sqstd_rex_compile(const SQChar *pattern,const SQChar **error);
SQUIRREL_API void sqstd_rex_free(SQRex *exp);
SQUIRREL_API SQBool sqstd_rex_match(SQRex* exp,const SQChar* text);
SQUIRREL_API SQBool sqstd_rex_search(SQRex* exp,const SQChar* text, const SQChar** out_begin, const SQChar** out_end);
SQUIRREL_API SQBool sqstd_rex_searchrange(SQRex* exp,const SQChar* text_begin,const SQChar* text_end,const SQChar** out_begin, const SQChar** out_end);
SQUIRREL_API SQInteger sqstd_rex_getsubexpcount(SQRex* exp);
SQUIRREL_API SQBool sqstd_rex_getsubexp(SQRex* exp, SQInteger n, SQRexMatch *subexp);
SQUIRREL_API SQRESULT sqstd_register_stringlib(HSQUIRRELVM v);
#ifdef __cplusplus
} /*extern "C"*/
#endif
#endif /*_SQSTD_STRING_H_*/
| 1,015
|
C++
|
.h
| 24
| 40.916667
| 151
| 0.779472
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| true
| false
| false
| false
| false
| false
| false
|
1,539,590
|
strgen.h
|
EnergeticBark_OpenTTD-3DS/src/strgen/strgen.h
|
/* $Id$ */
/** @file strgen.h Language pack header for strgen (needs to match). */
#ifndef STRGEN_H
#define STRGEN_H
struct LanguagePackHeader {
uint32 ident; // 32-bits identifier
uint32 version; // 32-bits of auto generated version info which is basically a hash of strings.h
char name[32]; // the international name of this language
char own_name[32]; // the localized name of this language
char isocode[16]; // the ISO code for the language (not country code)
uint16 offsets[32]; // the offsets
byte plural_form; // plural form index
byte text_dir; // default direction of the text
/**
* Windows language ID:
* Windows cannot and will not convert isocodes to something it can use to
* determine whether a font can be used for the language or not. As a result
* of that we need to pass the language id via strgen to OpenTTD to tell
* what language it is in "Windows". The ID is the 'locale identifier' on:
* http://msdn.microsoft.com/en-us/library/ms776294.aspx
*/
uint16 winlangid; // windows language id
uint8 newgrflangid; // newgrf language id
byte pad[3]; // pad header to be a multiple of 4
};
assert_compile(sizeof(LanguagePackHeader) % 4 == 0);
#endif /* STRGEN_H */
| 1,245
|
C++
|
.h
| 27
| 43.962963
| 101
| 0.714757
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,595
|
yapf_node_road.hpp
|
EnergeticBark_OpenTTD-3DS/src/yapf/yapf_node_road.hpp
|
/* $Id$ */
/** @file yapf_node_road.hpp Node tailored for road pathfinding. */
#ifndef YAPF_NODE_ROAD_HPP
#define YAPF_NODE_ROAD_HPP
/** Yapf Node for road YAPF */
template <class Tkey_>
struct CYapfRoadNodeT
: CYapfNodeT<Tkey_, CYapfRoadNodeT<Tkey_> >
{
typedef CYapfNodeT<Tkey_, CYapfRoadNodeT<Tkey_> > base;
TileIndex m_segment_last_tile;
Trackdir m_segment_last_td;
void Set(CYapfRoadNodeT *parent, TileIndex tile, Trackdir td, bool is_choice)
{
base::Set(parent, tile, td, is_choice);
m_segment_last_tile = tile;
m_segment_last_td = td;
}
};
/* now define two major node types (that differ by key type) */
typedef CYapfRoadNodeT<CYapfNodeKeyExitDir> CYapfRoadNodeExitDir;
typedef CYapfRoadNodeT<CYapfNodeKeyTrackDir> CYapfRoadNodeTrackDir;
/* Default NodeList types */
typedef CNodeList_HashTableT<CYapfRoadNodeExitDir , 8, 12> CRoadNodeListExitDir;
typedef CNodeList_HashTableT<CYapfRoadNodeTrackDir, 10, 14> CRoadNodeListTrackDir;
#endif /* YAPF_NODE_ROAD_HPP */
| 1,007
|
C++
|
.h
| 26
| 36.923077
| 82
| 0.764645
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| true
| false
| false
| true
| true
| false
|
1,539,600
|
yapf.hpp
|
EnergeticBark_OpenTTD-3DS/src/yapf/yapf.hpp
|
/* $Id$ */
/** @file yapf.hpp Base includes/functions for YAPF. */
#ifndef YAPF_HPP
#define YAPF_HPP
#include "../openttd.h"
#include "../vehicle_base.h"
#include "../road_map.h"
#include "../tunnel_map.h"
#include "../bridge_map.h"
#include "../tunnelbridge_map.h"
#include "../bridge.h"
#include "../station_base.h"
#include "../station_map.h"
#include "../tile_cmd.h"
#include "../landscape.h"
#include "yapf.h"
#include "../pathfind.h"
#include "../waypoint.h"
#include "../debug.h"
#include "../settings_type.h"
#include "../tunnelbridge.h"
extern uint64 ottd_rdtsc();
#include <limits.h>
#include <new>
#if defined(_WIN32) || defined(_WIN64)
# include <windows.h>
#else
# include <time.h>
#endif
struct CPerformanceTimer
{
int64 m_start;
int64 m_acc;
CPerformanceTimer() : m_start(0), m_acc(0) {}
FORCEINLINE void Start()
{
m_start = QueryTime();
}
FORCEINLINE void Stop()
{
m_acc += QueryTime() - m_start;
}
FORCEINLINE int Get(int64 coef)
{
return (int)(m_acc * coef / QueryFrequency());
}
FORCEINLINE int64 QueryTime()
{
return ottd_rdtsc();
}
FORCEINLINE int64 QueryFrequency()
{
return ((int64)2200 * 1000000);
}
};
struct CPerfStartReal
{
CPerformanceTimer *m_pperf;
FORCEINLINE CPerfStartReal(CPerformanceTimer& perf) : m_pperf(&perf)
{
if (m_pperf != NULL) m_pperf->Start();
}
FORCEINLINE ~CPerfStartReal()
{
Stop();
}
FORCEINLINE void Stop()
{
if (m_pperf != NULL) {
m_pperf->Stop();
m_pperf = NULL;
}
}
};
struct CPerfStartFake
{
FORCEINLINE CPerfStartFake(CPerformanceTimer& perf) {}
FORCEINLINE ~CPerfStartFake() {}
FORCEINLINE void Stop() {}
};
typedef CPerfStartFake CPerfStart;
//#undef FORCEINLINE
//#define FORCEINLINE inline
#include "../misc/crc32.hpp"
#include "../misc/blob.hpp"
#include "../misc/str.hpp"
#include "../misc/fixedsizearray.hpp"
#include "../misc/array.hpp"
#include "../misc/hashtable.hpp"
#include "../misc/binaryheap.hpp"
#include "../misc/dbg_helpers.h"
#include "nodelist.hpp"
#include "follow_track.hpp"
#include "yapf_base.hpp"
#include "yapf_node.hpp"
#include "yapf_common.hpp"
#include "yapf_costbase.hpp"
#include "yapf_costcache.hpp"
#endif /* YAPF_HPP */
| 2,199
|
C++
|
.h
| 99
| 20.414141
| 69
| 0.702312
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,602
|
yapf.h
|
EnergeticBark_OpenTTD-3DS/src/yapf/yapf.h
|
/* $Id$ */
/** @file yapf.h Entry point for OpenTTD to YAPF. */
#ifndef YAPF_H
#define YAPF_H
#include "../debug.h"
#include "../depot_type.h"
#include "../direction_type.h"
#include "../pbs.h"
/** Finds the best path for given ship.
* @param v the ship that needs to find a path
* @param tile the tile to find the path from (should be next tile the ship is about to enter)
* @param enterdir diagonal direction which the ship will enter this new tile from
* @param tracks available tracks on the new tile (to choose from)
* @return the best trackdir for next turn or INVALID_TRACKDIR if the path could not be found
*/
Trackdir YapfChooseShipTrack(const Vehicle *v, TileIndex tile, DiagDirection enterdir, TrackBits tracks);
/** Finds the best path for given road vehicle.
* @param v the RV that needs to find a path
* @param tile the tile to find the path from (should be next tile the RV is about to enter)
* @param enterdir diagonal direction which the RV will enter this new tile from
* @return the best trackdir for next turn or INVALID_TRACKDIR if the path could not be found
*/
Trackdir YapfChooseRoadTrack(const Vehicle *v, TileIndex tile, DiagDirection enterdir);
/** Finds the best path for given train.
* @param v the train that needs to find a path
* @param tile the tile to find the path from (should be next tile the train is about to enter)
* @param enterdir diagonal direction which the RV will enter this new tile from
* @param tracks available trackdirs on the new tile (to choose from)
* @param path_not_found [out] true is returned if no path can be found (returned Trackdir is only a 'guess')
* @param reserve_track indicates whether YAPF should try to reserve the found path
* @param target [out] the target tile of the reservation, free is set to true if path was reserved
* @return the best trackdir for next turn or INVALID_TRACKDIR if the path could not be found
*/
Trackdir YapfChooseRailTrack(const Vehicle *v, TileIndex tile, DiagDirection enterdir, TrackBits tracks, bool *path_not_found, bool reserve_track, PBSTileInfo *target);
/** Used by RV multistop feature to find the nearest road stop that has a free slot.
* @param v RV (its current tile will be the origin)
* @param tile destination tile
* @return distance from origin tile to the destination (number of road tiles) or UINT_MAX if path not found
*/
uint YapfRoadVehDistanceToTile(const Vehicle *v, TileIndex tile);
/** Used when user sends RV to the nearest depot or if RV needs servicing.
* Returns the nearest depot (or NULL if depot was not found).
*/
Depot *YapfFindNearestRoadDepot(const Vehicle *v);
/** Used when user sends train to the nearest depot or if train needs servicing.
* @param v train that needs to go to some depot
* @param max_distance max distance (number of track tiles) from the current train position
* (used also as optimization - the pathfinder can stop path finding if max_distance
* was reached and no depot was seen)
* @param reverse_penalty penalty that should be added for the path that requires reversing the train first
* @param depot_tile receives the depot tile if depot was found
* @param reversed receives true if train needs to reversed first
* @return the true if depot was found.
*/
bool YapfFindNearestRailDepotTwoWay(const Vehicle *v, int max_distance, int reverse_penalty, TileIndex *depot_tile, bool *reversed);
/** Returns true if it is better to reverse the train before leaving station */
bool YapfCheckReverseTrain(const Vehicle *v);
/**
* Try to extend the reserved path of a train to the nearest safe tile.
*
* @param v The train that needs to find a safe tile.
* @param tile Last tile of the current reserved path.
* @param td Last trackdir of the current reserved path.
* @param override_railtype Should all physically compabtible railtypes be searched, even if the vehicle can't on them on it own?
* @return True if the path could be extended to a safe tile.
*/
bool YapfRailFindNearestSafeTile(const Vehicle *v, TileIndex tile, Trackdir td, bool override_railtype);
/** Use this function to notify YAPF that track layout (or signal configuration) has change */
void YapfNotifyTrackLayoutChange(TileIndex tile, Track track);
/** performance measurement helpers */
void *NpfBeginInterval();
int NpfEndInterval(void *perf);
extern int _aystar_stats_open_size;
extern int _aystar_stats_closed_size;
/** Base tile length units */
enum {
YAPF_TILE_LENGTH = 100,
YAPF_TILE_CORNER_LENGTH = 71
};
#endif /* YAPF_H */
| 4,656
|
C++
|
.h
| 80
| 56.4125
| 168
| 0.744186
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,605
|
dropdown_func.h
|
EnergeticBark_OpenTTD-3DS/src/widgets/dropdown_func.h
|
/* $Id$ */
/** @file dropdown_func.h Functions related to the drop down widget. */
#ifndef WIDGETS_DROPDOWN_FUNC_H
#define WIDGETS_DROPDOWN_FUNC_H
/* Show drop down menu containing a fixed list of strings */
void ShowDropDownMenu(Window *w, const StringID *strings, int selected, int button, uint32 disabled_mask, uint32 hidden_mask, uint width = 0);
/* Hide drop down menu of a parent window */
int HideDropDownMenu(Window *pw);
#endif /* WIDGETS_DROPDOWN_FUNC_H */
| 472
|
C++
|
.h
| 9
| 50.888889
| 142
| 0.753275
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,606
|
cocoa_s.h
|
EnergeticBark_OpenTTD-3DS/src/sound/cocoa_s.h
|
/* $Id$ */
/** @file cocoa_s.h Base for Cocoa sound handling. */
#ifndef SOUND_COCOA_H
#define SOUND_COCOA_H
#include "sound_driver.hpp"
class SoundDriver_Cocoa: public SoundDriver {
public:
/* virtual */ const char *Start(const char * const *param);
/* virtual */ void Stop();
};
class FSoundDriver_Cocoa: public SoundDriverFactory<FSoundDriver_Cocoa> {
public:
static const int priority = 10;
/* virtual */ const char *GetName() { return "cocoa"; }
/* virtual */ const char *GetDescription() { return "Cocoa Sound Driver"; }
/* virtual */ Driver *CreateInstance() { return new SoundDriver_Cocoa(); }
};
#endif /* SOUND_COCOA_H */
| 645
|
C++
|
.h
| 18
| 34.111111
| 76
| 0.708065
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,607
|
win32_s.h
|
EnergeticBark_OpenTTD-3DS/src/sound/win32_s.h
|
/* $Id$ */
/** @file win32_s.h Base for Windows sound handling. */
#ifndef SOUND_WIN32_H
#define SOUND_WIN32_H
#include "sound_driver.hpp"
class SoundDriver_Win32: public SoundDriver {
public:
/* virtual */ const char *Start(const char * const *param);
/* virtual */ void Stop();
};
class FSoundDriver_Win32: public SoundDriverFactory<FSoundDriver_Win32> {
public:
static const int priority = 10;
/* virtual */ const char *GetName() { return "win32"; }
/* virtual */ const char *GetDescription() { return "Win32 WaveOut Driver"; }
/* virtual */ Driver *CreateInstance() { return new SoundDriver_Win32(); }
};
#endif /* SOUND_WIN32_H */
| 649
|
C++
|
.h
| 18
| 34.333333
| 78
| 0.709936
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,608
|
sdl_s.h
|
EnergeticBark_OpenTTD-3DS/src/sound/sdl_s.h
|
/* $Id$ */
/** @file sdl_s.h Base fo playing sound via SDL. */
#ifndef SOUND_SDL_H
#define SOUND_SDL_H
#include "sound_driver.hpp"
class SoundDriver_SDL: public SoundDriver {
public:
/* virtual */ const char *Start(const char * const *param);
/* virtual */ void Stop();
};
class FSoundDriver_SDL: public SoundDriverFactory<FSoundDriver_SDL> {
public:
static const int priority = 5;
/* virtual */ const char *GetName() { return "sdl"; }
/* virtual */ const char *GetDescription() { return "SDL Sound Driver"; }
/* virtual */ Driver *CreateInstance() { return new SoundDriver_SDL(); }
};
#endif /* SOUND_SDL_H */
| 624
|
C++
|
.h
| 18
| 32.944444
| 74
| 0.69616
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,609
|
sound_driver.hpp
|
EnergeticBark_OpenTTD-3DS/src/sound/sound_driver.hpp
|
/* $Id$ */
/** @file sound_driver.hpp Base for all sound drivers. */
#ifndef SOUND_SOUND_DRIVER_HPP
#define SOUND_SOUND_DRIVER_HPP
#include "../driver.h"
class SoundDriver: public Driver {
public:
/* Called once every tick */
virtual void MainLoop() {}
};
class SoundDriverFactoryBase: public DriverFactoryBase {
};
template <class T>
class SoundDriverFactory: public SoundDriverFactoryBase {
public:
SoundDriverFactory() { this->RegisterDriver(((T *)this)->GetName(), Driver::DT_SOUND, ((T *)this)->priority); }
/**
* Get the long, human readable, name for the Driver-class.
*/
const char *GetName();
};
extern SoundDriver *_sound_driver;
extern char *_ini_sounddriver;
#endif /* SOUND_SOUND_DRIVER_HPP */
| 725
|
C++
|
.h
| 24
| 28.458333
| 112
| 0.735549
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| true
| false
| true
| true
| true
| false
|
1,539,610
|
null_s.h
|
EnergeticBark_OpenTTD-3DS/src/sound/null_s.h
|
/* $Id$ */
/** @file null_s.h Base for the sound of silence. */
#ifndef SOUND_NULL_H
#define SOUND_NULL_H
#include "sound_driver.hpp"
class SoundDriver_Null: public SoundDriver {
public:
/* virtual */ const char *Start(const char * const *param) { return NULL; }
/* virtual */ void Stop() { }
};
class FSoundDriver_Null: public SoundDriverFactory<FSoundDriver_Null> {
public:
static const int priority = 0;
/* virtual */ const char *GetName() { return "null"; }
/* virtual */ const char *GetDescription() { return "Null Sound Driver"; }
/* virtual */ Driver *CreateInstance() { return new SoundDriver_Null(); }
};
#endif /* SOUND_NULL_H */
| 653
|
C++
|
.h
| 18
| 34.555556
| 76
| 0.69586
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,611
|
allegro_s.h
|
EnergeticBark_OpenTTD-3DS/src/sound/allegro_s.h
|
/* $Id$ */
/** @file allegro_s.h Base fo playing sound via Allegro. */
#ifndef SOUND_ALLEGRO_H
#define SOUND_ALLEGRO_H
#include "sound_driver.hpp"
class SoundDriver_Allegro: public SoundDriver {
public:
/* virtual */ const char *Start(const char * const *param);
/* virtual */ void Stop();
/* virtual */ void MainLoop();
};
class FSoundDriver_Allegro: public SoundDriverFactory<FSoundDriver_Allegro> {
public:
static const int priority = 5;
/* virtual */ const char *GetName() { return "allegro"; }
/* virtual */ const char *GetDescription() { return "Allegro Sound Driver"; }
/* virtual */ Driver *CreateInstance() { return new SoundDriver_Allegro(); }
};
#endif /* SOUND_ALLEGRO_H */
| 701
|
C++
|
.h
| 19
| 35.105263
| 78
| 0.712166
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,612
|
binaryheap.hpp
|
EnergeticBark_OpenTTD-3DS/src/misc/binaryheap.hpp
|
/* $Id$ */
/** @file binaryheap.hpp Binary heap implementation. */
#ifndef BINARYHEAP_HPP
#define BINARYHEAP_HPP
/**
* Binary Heap as C++ template.
*
* For information about Binary Heap algotithm,
* see: http://www.policyalmanac.org/games/binaryHeaps.htm
*
* Implementation specific notes:
*
* 1) It allocates space for item pointers (array). Items are allocated elsewhere.
*
* 2) ItemPtr [0] is never used. Total array size is max_items + 1, because we
* use indices 1..max_items instead of zero based C indexing.
*
* 3) Item of the binary heap should support these public members:
* - 'lower-than' operator '<' - used for comparing items before moving
*
*/
template <class Titem_>
class CBinaryHeapT {
public:
typedef Titem_ *ItemPtr;
private:
int m_size; ///< Number of items in the heap
int m_max_size; ///< Maximum number of items the heap can hold
ItemPtr *m_items; ///< The heap item pointers
public:
explicit CBinaryHeapT(int max_items = 102400)
: m_size(0)
, m_max_size(max_items)
{
m_items = new ItemPtr[max_items + 1];
}
~CBinaryHeapT()
{
Clear();
delete [] m_items;
m_items = NULL;
}
public:
/** Return the number of items stored in the priority queue.
* @return number of items in the queue */
FORCEINLINE int Size() const {return m_size;};
/** Test if the priority queue is empty.
* @return true if empty */
FORCEINLINE bool IsEmpty() const {return (m_size == 0);};
/** Test if the priority queue is full.
* @return true if full. */
FORCEINLINE bool IsFull() const {return (m_size >= m_max_size);};
/** Find the smallest item in the priority queue.
* Return the smallest item, or throw assert if empty. */
FORCEINLINE Titem_& GetHead() {assert(!IsEmpty()); return *m_items[1];}
/** Insert new item into the priority queue, maintaining heap order.
* @return false if the queue is full. */
bool Push(Titem_& new_item);
/** Remove and return the smallest item from the priority queue. */
FORCEINLINE Titem_& PopHead() {Titem_& ret = GetHead(); RemoveHead(); return ret;};
/** Remove the smallest item from the priority queue. */
void RemoveHead();
/** Remove item specified by index */
void RemoveByIdx(int idx);
/** return index of the item that matches (using &item1 == &item2) the given item. */
int FindLinear(const Titem_& item) const;
/** Make the priority queue empty.
* All remaining items will remain untouched. */
void Clear() {m_size = 0;};
/** verifies the heap consistency (added during first YAPF debug phase) */
void CheckConsistency();
};
template <class Titem_>
FORCEINLINE bool CBinaryHeapT<Titem_>::Push(Titem_& new_item)
{
if (IsFull()) return false;
/* make place for new item */
int gap = ++m_size;
/* Heapify up */
for (int parent = gap / 2; (parent > 0) && (new_item < *m_items[parent]); gap = parent, parent /= 2)
m_items[gap] = m_items[parent];
m_items[gap] = &new_item;
CheckConsistency();
return true;
}
template <class Titem_>
FORCEINLINE void CBinaryHeapT<Titem_>::RemoveHead()
{
assert(!IsEmpty());
/* at index 1 we have a gap now */
int gap = 1;
/* Heapify down:
* last item becomes a candidate for the head. Call it new_item. */
Titem_& new_item = *m_items[m_size--];
/* now we must maintain relation between parent and its children:
* parent <= any child
* from head down to the tail */
int child = 2; // first child is at [parent * 2]
/* while children are valid */
while (child <= m_size) {
/* choose the smaller child */
if (child < m_size && *m_items[child + 1] < *m_items[child])
child++;
/* is it smaller than our parent? */
if (!(*m_items[child] < new_item)) {
/* the smaller child is still bigger or same as parent => we are done */
break;
}
/* if smaller child is smaller than parent, it will become new parent */
m_items[gap] = m_items[child];
gap = child;
/* where do we have our new children? */
child = gap * 2;
}
/* move last item to the proper place */
if (m_size > 0) m_items[gap] = &new_item;
CheckConsistency();
}
template <class Titem_>
inline void CBinaryHeapT<Titem_>::RemoveByIdx(int idx)
{
/* at position idx we have a gap now */
int gap = idx;
Titem_& last = *m_items[m_size];
if (idx < m_size) {
assert(idx >= 1);
m_size--;
/* and the candidate item for fixing this gap is our last item 'last'
* Move gap / last item up: */
while (gap > 1)
{
/* compare [gap] with its parent */
int parent = gap / 2;
if (last < *m_items[parent]) {
m_items[gap] = m_items[parent];
gap = parent;
} else {
/* we don't need to continue upstairs */
break;
}
}
/* Heapify (move gap) down: */
while (true) {
/* where we do have our children? */
int child = gap * 2; // first child is at [parent * 2]
if (child > m_size) break;
/* choose the smaller child */
if (child < m_size && *m_items[child + 1] < *m_items[child])
child++;
/* is it smaller than our parent? */
if (!(*m_items[child] < last)) {
/* the smaller child is still bigger or same as parent => we are done */
break;
}
/* if smaller child is smaller than parent, it will become new parent */
m_items[gap] = m_items[child];
gap = child;
}
/* move parent to the proper place */
if (m_size > 0) m_items[gap] = &last;
}
else {
assert(idx == m_size);
m_size--;
}
CheckConsistency();
}
template <class Titem_>
inline int CBinaryHeapT<Titem_>::FindLinear(const Titem_& item) const
{
if (IsEmpty()) return 0;
for (ItemPtr *ppI = m_items + 1, *ppLast = ppI + m_size; ppI <= ppLast; ppI++) {
if (*ppI == &item) {
return ppI - m_items;
}
}
return 0;
}
template <class Titem_>
FORCEINLINE void CBinaryHeapT<Titem_>::CheckConsistency()
{
/* enable it if you suspect binary heap doesn't work well */
#if 0
for (int child = 2; child <= m_size; child++) {
int parent = child / 2;
assert(!(m_items[child] < m_items[parent]));
}
#endif
}
#endif /* BINARYHEAP_HPP */
| 6,030
|
C++
|
.h
| 190
| 29.2
| 101
| 0.65674
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,613
|
array.hpp
|
EnergeticBark_OpenTTD-3DS/src/misc/array.hpp
|
/* $Id$ */
/** @file array.hpp Array without an explicit maximum size. */
#ifndef ARRAY_HPP
#define ARRAY_HPP
#include "fixedsizearray.hpp"
/** Flexible array with size limit. Implemented as fixed size
* array of fixed size arrays */
template <class Titem_, int Tblock_size_ = 1024, int Tnum_blocks_ = Tblock_size_>
class CArrayT {
public:
typedef Titem_ Titem; ///< Titem is now visible from outside
typedef CFixedSizeArrayT<Titem_, Tblock_size_> CSubArray; ///< inner array
typedef CFixedSizeArrayT<CSubArray, Tnum_blocks_> CSuperArray; ///< outer array
protected:
CSuperArray m_a; ///< array of arrays of items
public:
static const int Tblock_size = Tblock_size_; ///< block size is now visible from outside
static const int Tnum_blocks = Tnum_blocks_; ///< number of blocks is now visible from outside
static const int Tcapacity = Tblock_size * Tnum_blocks; ///< total max number of items
/** implicit constructor */
FORCEINLINE CArrayT() { }
/** Clear (destroy) all items */
FORCEINLINE void Clear() {m_a.Clear();}
/** Return actual number of items */
FORCEINLINE int Size() const
{
int super_size = m_a.Size();
if (super_size == 0) return 0;
int sub_size = m_a[super_size - 1].Size();
return (super_size - 1) * Tblock_size + sub_size;
}
/** return true if array is empty */
FORCEINLINE bool IsEmpty() { return m_a.IsEmpty(); }
/** return true if array is full */
FORCEINLINE bool IsFull() { return m_a.IsFull() && m_a[Tnum_blocks - 1].IsFull(); }
/** return first sub-array with free space for new item */
FORCEINLINE CSubArray& FirstFreeSubArray()
{
int super_size = m_a.Size();
if (super_size > 0) {
CSubArray& sa = m_a[super_size - 1];
if (!sa.IsFull()) return sa;
}
return m_a.Add();
}
/** allocate but not construct new item */
FORCEINLINE Titem_& AddNC() { return FirstFreeSubArray().AddNC(); }
/** allocate and construct new item */
FORCEINLINE Titem_& Add() { return FirstFreeSubArray().Add(); }
/** indexed access (non-const) */
FORCEINLINE Titem& operator [] (int idx)
{
CSubArray& sa = m_a[idx / Tblock_size];
Titem& item = sa [idx % Tblock_size];
return item;
}
/** indexed access (const) */
FORCEINLINE const Titem& operator [] (int idx) const
{
const CSubArray& sa = m_a[idx / Tblock_size];
const Titem& item = sa [idx % Tblock_size];
return item;
}
template <typename D> void Dump(D &dmp) const
{
dmp.WriteLine("capacity = %d", Tcapacity);
int num_items = Size();
dmp.WriteLine("num_items = %d", num_items);
CStrA name;
for (int i = 0; i < num_items; i++) {
const Titem& item = (*this)[i];
name.Format("item[%d]", i);
dmp.WriteStructT(name.Data(), &item);
}
}
};
#endif /* ARRAY_HPP */
| 2,725
|
C++
|
.h
| 77
| 33.051948
| 95
| 0.676772
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,619
|
fixedsizearray.hpp
|
EnergeticBark_OpenTTD-3DS/src/misc/fixedsizearray.hpp
|
/* $Id$ */
/** @file fixedsizearray.hpp A fixed size array that doesn't create items until needed. */
#ifndef FIXEDSIZEARRAY_HPP
#define FIXEDSIZEARRAY_HPP
/** fixed size array
* Upon construction it preallocates fixed size block of memory
* for all items, but doesn't construct them. Item's construction
* is delayed. */
template <class Titem_, int Tcapacity_>
struct CFixedSizeArrayT {
/** the only member of fixed size array is pointer to the block
* of C array of items. Header can be found on the offset -sizeof(CHdr). */
Titem_ *m_items;
/** header for fixed size array */
struct CHdr
{
int m_num_items; ///< number of items in the array
int m_ref_cnt; ///< block reference counter (used by copy constructor and by destructor)
};
/* make types and constants visible from outside */
typedef Titem_ Titem; // type of array item
static const int Tcapacity = Tcapacity_; // the array capacity (maximum size)
static const int TitemSize = sizeof(Titem_); // size of item
static const int ThdrSize = sizeof(CHdr); // size of header
/** Default constructor. Preallocate space for items and header, then initialize header. */
CFixedSizeArrayT()
{
/* allocate block for header + items (don't construct items) */
m_items = (Titem*)((MallocT<int8>(ThdrSize + Tcapacity * sizeof(Titem))) + ThdrSize);
SizeRef() = 0; // initial number of items
RefCnt() = 1; // initial reference counter
}
/** Copy constructor. Preallocate space for items and header, then initialize header. */
CFixedSizeArrayT(const CFixedSizeArrayT<Titem_, Tcapacity_>& src)
{
/* share block (header + items) with the source array */
m_items = src.m_items;
RefCnt()++; // now we share block with the source
}
/** destroy remaining items and free the memory block */
~CFixedSizeArrayT()
{
/* release one reference to the shared block */
if ((--RefCnt()) > 0) return; // and return if there is still some owner
Clear();
/* free the memory block occupied by items */
free(((int8*)m_items) - ThdrSize);
m_items = NULL;
}
/** Clear (destroy) all items */
FORCEINLINE void Clear()
{
/* walk through all allocated items backward and destroy them */
for (Titem *pItem = &m_items[Size() - 1]; pItem >= m_items; pItem--) {
pItem->~Titem_();
}
/* number of items become zero */
SizeRef() = 0;
}
protected:
/** return reference to the array header (non-const) */
FORCEINLINE CHdr& Hdr() { return *(CHdr*)(((int8*)m_items) - ThdrSize); }
/** return reference to the array header (const) */
FORCEINLINE const CHdr& Hdr() const { return *(CHdr*)(((int8*)m_items) - ThdrSize); }
/** return reference to the block reference counter */
FORCEINLINE int& RefCnt() { return Hdr().m_ref_cnt; }
/** return reference to number of used items */
FORCEINLINE int& SizeRef() { return Hdr().m_num_items; }
public:
/** return number of used items */
FORCEINLINE int Size() const { return Hdr().m_num_items; }
/** return true if array is full */
FORCEINLINE bool IsFull() const { return Size() >= Tcapacity; };
/** return true if array is empty */
FORCEINLINE bool IsEmpty() const { return Size() <= 0; };
/** index validation */
FORCEINLINE void CheckIdx(int idx) const { assert(idx >= 0); assert(idx < Size()); }
/** add (allocate), but don't construct item */
FORCEINLINE Titem& AddNC() { assert(!IsFull()); return m_items[SizeRef()++]; }
/** add and construct item using default constructor */
FORCEINLINE Titem& Add() { Titem& item = AddNC(); new(&item)Titem; return item; }
/** return item by index (non-const version) */
FORCEINLINE Titem& operator [] (int idx) { CheckIdx(idx); return m_items[idx]; }
/** return item by index (const version) */
FORCEINLINE const Titem& operator [] (int idx) const { CheckIdx(idx); return m_items[idx]; }
};
#endif /* FIXEDSIZEARRAY_HPP */
| 3,845
|
C++
|
.h
| 87
| 41.896552
| 95
| 0.691506
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,621
|
dbg_helpers.h
|
EnergeticBark_OpenTTD-3DS/src/misc/dbg_helpers.h
|
/* $Id$ */
/** @file dbg_helpers.h Functions to be used for debug printings. */
#ifndef DBG_HELPERS_H
#define DBG_HELPERS_H
#include <new>
#include <map>
#include <stack>
#include "blob.hpp"
#include "str.hpp"
/** Helper template class that provides C array length and item type */
template <typename T> struct ArrayT;
/** Helper template class that provides C array length and item type */
template <typename T, size_t N> struct ArrayT<T[N]> {
static const size_t length = N;
typedef T item_t;
};
/**
* Helper template function that returns item of array at given index
* or t_unk when index is out of bounds.
*/
template <typename E, typename T>
inline typename ArrayT<T>::item_t ItemAtT(E idx, T &t, typename ArrayT<T>::item_t t_unk)
{
if ((size_t)idx >= ArrayT<T>::length) {
return t_unk;
}
return t[idx];
}
/**
* Helper template function that returns item of array at given index
* or t_inv when index == idx_inv
* or t_unk when index is out of bounds.
*/
template <typename E, typename T>
inline typename ArrayT<T>::item_t ItemAtT(E idx, T &t, typename ArrayT<T>::item_t t_unk, E idx_inv, typename ArrayT<T>::item_t t_inv)
{
if ((size_t)idx < ArrayT<T>::length) {
return t[idx];
}
if (idx == idx_inv) {
return t_inv;
}
return t_unk;
}
/**
* Helper template function that returns compound bitfield name that is
* concatenation of names of each set bit in the given value
* or t_inv when index == idx_inv
* or t_unk when index is out of bounds.
*/
template <typename E, typename T>
inline CStrA ComposeNameT(E value, T &t, const char *t_unk, E val_inv, const char *name_inv)
{
CStrA out;
if (value == val_inv) {
out = name_inv;
} else if (value == 0) {
out = "<none>";
} else {
for (size_t i = 0; i < ArrayT<T>::length; i++) {
if ((value & (1 << i)) == 0) continue;
out.AddFormat("%s%s", (out.Size() > 0 ? "+" : ""), t[i]);
value &= ~(E)(1 << i);
}
if (value != 0) out.AddFormat("%s%s", (out.Size() > 0 ? "+" : ""), t_unk);
}
return out.Transfer();
}
CStrA ValueStr(Trackdir td);
CStrA ValueStr(TrackdirBits td_bits);
CStrA ValueStr(DiagDirection dd);
CStrA ValueStr(SignalType t);
/** Class that represents the dump-into-string target. */
struct DumpTarget {
/** Used as a key into map of known object instances. */
struct KnownStructKey {
size_t m_type_id;
const void *m_ptr;
KnownStructKey(size_t type_id, const void *ptr)
: m_type_id(type_id)
, m_ptr(ptr)
{}
KnownStructKey(const KnownStructKey &src)
{
m_type_id = src.m_type_id;
m_ptr = src.m_ptr;
}
bool operator < (const KnownStructKey &other) const
{
if ((size_t)m_ptr < (size_t)other.m_ptr) return true;
if ((size_t)m_ptr > (size_t)other.m_ptr) return false;
if (m_type_id < other.m_type_id) return true;
return false;
}
};
typedef std::map<KnownStructKey, CStrA> KNOWN_NAMES;
CStrA m_out; ///< the output string
int m_indent; ///< current indent/nesting level
std::stack<CStrA> m_cur_struct; ///< here we will track the current structure name
KNOWN_NAMES m_known_names; ///< map of known object instances and their structured names
DumpTarget()
: m_indent(0)
{}
static size_t& LastTypeId();
CStrA GetCurrentStructName();
bool FindKnownName(size_t type_id, const void *ptr, CStrA &name);
void WriteIndent();
void WriteLine(const char *format, ...);
void WriteValue(const char *name, const char *value_str);
void WriteTile(const char *name, TileIndex t);
/** Dump given enum value (as a number and as named value) */
template <typename E> void WriteEnumT(const char *name, E e)
{
WriteValue(name, ValueStr(e).Data());
}
void BeginStruct(size_t type_id, const char *name, const void *ptr);
void EndStruct();
/** Dump nested object (or only its name if this instance is already known). */
template <typename S> void WriteStructT(const char *name, const S *s)
{
static size_t type_id = ++LastTypeId();
if (s == NULL) {
/* No need to dump NULL struct. */
WriteLine("%s = <null>", name);
return;
}
CStrA known_as;
if (FindKnownName(type_id, s, known_as)) {
/* We already know this one, no need to dump it. */
WriteLine("%s = known_as.%s", name, known_as.Data());
} else {
/* Still unknown, dump it */
BeginStruct(type_id, name, s);
s->Dump(*this);
EndStruct();
}
}
};
#endif /* DBG_HELPERS_H */
| 4,403
|
C++
|
.h
| 139
| 29.266187
| 133
| 0.668397
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,622
|
cargo_const.h
|
EnergeticBark_OpenTTD-3DS/src/table/cargo_const.h
|
/* $Id$ */
/** @file cargo_const.h Table of all default cargo types */
#define MK(bt, label, c, e, f, g, h, fr, te, ks1, ks2, ks3, ks4, ks5, l, m) \
{bt, label, c, c, e, f, {g, h}, fr, te, 0, 0, ks1, ks2, ks3, ks4, ks5, l, m, NULL, NULL}
static const CargoSpec _default_cargo[] = {
MK( 0, 'PASS', 152, 1, 3185, 0, 24, false, TE_PASSENGERS,
STR_000F_PASSENGERS, STR_002F_PASSENGER, STR_PASSENGERS, STR_QUANTITY_PASSENGERS, STR_ABBREV_PASSENGERS,
SPR_CARGO_PASSENGER, CC_PASSENGERS ),
MK( 1, 'COAL', 32, 16, 5916, 7, 255, true, TE_NONE,
STR_0010_COAL, STR_0030_COAL, STR_TONS, STR_QUANTITY_COAL, STR_ABBREV_COAL,
SPR_CARGO_COAL, CC_BULK ),
MK( 2, 'MAIL', 15, 4, 4550, 20, 90, false, TE_MAIL,
STR_0011_MAIL, STR_0031_MAIL, STR_BAGS, STR_QUANTITY_MAIL, STR_ABBREV_MAIL,
SPR_CARGO_MAIL, CC_MAIL ),
/* Oil in temperate and arctic */
MK( 3, 'OIL_', 174, 16, 4437, 25, 255, true, TE_NONE,
STR_0012_OIL, STR_0032_OIL, STR_LITERS, STR_QUANTITY_OIL, STR_ABBREV_OIL,
SPR_CARGO_OIL, CC_LIQUID ),
/* Oil in subtropic */
MK( 3, 'OIL_', 174, 16, 4892, 25, 255, true, TE_NONE,
STR_0012_OIL, STR_0032_OIL, STR_LITERS, STR_QUANTITY_OIL, STR_ABBREV_OIL,
SPR_CARGO_OIL, CC_LIQUID ),
MK( 4, 'LVST', 208, 3, 4322, 4, 18, true, TE_NONE,
STR_0013_LIVESTOCK, STR_0033_LIVESTOCK, STR_ITEMS, STR_QUANTITY_LIVESTOCK, STR_ABBREV_LIVESTOCK,
SPR_CARGO_LIVESTOCK, CC_PIECE_GOODS ),
MK( 5, 'GOOD', 194, 8, 6144, 5, 28, true, TE_GOODS,
STR_0014_GOODS, STR_0034_GOODS, STR_CRATES, STR_QUANTITY_GOODS, STR_ABBREV_GOODS,
SPR_CARGO_GOODS, CC_EXPRESS ),
MK( 6, 'GRAI', 191, 16, 4778, 4, 40, true, TE_NONE,
STR_0015_GRAIN, STR_0035_GRAIN, STR_TONS, STR_QUANTITY_GRAIN, STR_ABBREV_GRAIN,
SPR_CARGO_GRAIN, CC_BULK ),
MK( 6, 'WHEA', 191, 16, 4778, 4, 40, true, TE_NONE,
STR_0022_WHEAT, STR_0042_WHEAT, STR_TONS, STR_QUANTITY_WHEAT, STR_ABBREV_WHEAT,
SPR_CARGO_GRAIN, CC_BULK ),
MK( 6, 'MAIZ', 191, 16, 4322, 4, 40, true, TE_NONE,
STR_001B_MAIZE, STR_003B_MAIZE, STR_TONS, STR_QUANTITY_MAIZE, STR_ABBREV_MAIZE,
SPR_CARGO_GRAIN, CC_BULK ),
/* Wood in temperate and arctic */
MK( 7, 'WOOD', 84, 16, 5005, 15, 255, true, TE_NONE,
STR_0016_WOOD, STR_0036_WOOD, STR_TONS, STR_QUANTITY_WOOD, STR_ABBREV_WOOD,
SPR_CARGO_WOOD, CC_PIECE_GOODS ),
/* Wood in subtropic */
MK( 7, 'WOOD', 84, 16, 7964, 15, 255, true, TE_NONE,
STR_0016_WOOD, STR_0036_WOOD, STR_TONS, STR_QUANTITY_WOOD, STR_ABBREV_WOOD,
SPR_CARGO_WOOD, CC_PIECE_GOODS ),
MK( 8, 'IORE', 184, 16, 5120, 9, 255, true, TE_NONE,
STR_0017_IRON_ORE, STR_0037_IRON_ORE, STR_TONS, STR_QUANTITY_IRON_ORE, STR_ABBREV_IRON_ORE,
SPR_CARGO_IRON_ORE, CC_BULK ),
MK( 9, 'STEL', 10, 16, 5688, 7, 255, true, TE_NONE,
STR_0018_STEEL, STR_0038_STEEL, STR_TONS, STR_QUANTITY_STEEL, STR_ABBREV_STEEL,
SPR_CARGO_STEEL, CC_PIECE_GOODS ),
MK( 10, 'VALU', 202, 2, 7509, 1, 32, true, TE_NONE,
STR_0019_VALUABLES, STR_0039_VALUABLES, STR_BAGS, STR_QUANTITY_VALUABLES, STR_ABBREV_VALUABLES,
SPR_CARGO_VALUES_GOLD, CC_ARMOURED ),
MK( 10, 'GOLD', 202, 8, 5802, 10, 40, true, TE_NONE,
STR_0020_GOLD, STR_0040_GOLD, STR_BAGS, STR_QUANTITY_GOLD, STR_ABBREV_GOLD,
SPR_CARGO_VALUES_GOLD, CC_ARMOURED ),
MK( 10, 'DIAM', 202, 2, 5802, 10, 255, true, TE_NONE,
STR_001D_DIAMONDS, STR_003D_DIAMOND, STR_BAGS, STR_QUANTITY_DIAMONDS, STR_ABBREV_DIAMONDS,
SPR_CARGO_DIAMONDS, CC_ARMOURED ),
MK( 11, 'PAPR', 10, 16, 5461, 7, 60, true, TE_NONE,
STR_001F_PAPER, STR_003F_PAPER, STR_TONS, STR_QUANTITY_PAPER, STR_ABBREV_PAPER,
SPR_CARGO_PAPER, CC_PIECE_GOODS ),
MK( 12, 'FOOD', 48, 16, 5688, 0, 30, true, TE_FOOD,
STR_001E_FOOD, STR_003E_FOOD, STR_TONS, STR_QUANTITY_FOOD, STR_ABBREV_FOOD,
SPR_CARGO_FOOD, CC_EXPRESS | CC_REFRIGERATED),
MK( 13, 'FRUT', 208, 16, 4209, 0, 15, true, TE_NONE,
STR_001C_FRUIT, STR_003C_FRUIT, STR_TONS, STR_QUANTITY_FRUIT, STR_ABBREV_FRUIT,
SPR_CARGO_FRUIT, CC_BULK | CC_REFRIGERATED),
MK( 14, 'CORE', 184, 16, 4892, 12, 255, true, TE_NONE,
STR_001A_COPPER_ORE, STR_003A_COPPER_ORE, STR_TONS, STR_QUANTITY_COPPER_ORE, STR_ABBREV_COPPER_ORE,
SPR_CARGO_COPPER_ORE, CC_BULK ),
MK( 15, 'WATR', 10, 16, 4664, 20, 80, true, TE_WATER,
STR_0021_WATER, STR_0041_WATER, STR_LITERS, STR_QUANTITY_WATER, STR_ABBREV_WATER,
SPR_CARGO_WATERCOLA, CC_LIQUID ),
MK( 16, 'RUBR', 32, 16, 4437, 2, 20, true, TE_NONE,
STR_0023_RUBBER, STR_0043_RUBBER, STR_LITERS, STR_QUANTITY_RUBBER, STR_ABBREV_RUBBER,
SPR_CARGO_RUBBER, CC_LIQUID ),
MK( 17, 'SUGR', 32, 16, 4437, 20, 255, true, TE_NONE,
STR_0024_SUGAR, STR_0044_SUGAR, STR_TONS, STR_QUANTITY_SUGAR, STR_ABBREV_SUGAR,
SPR_CARGO_SUGAR, CC_BULK ),
MK( 18, 'TOYS', 174, 2, 5574, 25, 255, true, TE_NONE,
STR_0025_TOYS, STR_0045_TOY, STR_ITEMS, STR_QUANTITY_TOYS, STR_ABBREV_TOYS,
SPR_CARGO_TOYS, CC_PIECE_GOODS ),
MK( 19, 'BATT', 208, 4, 4322, 2, 30, true, TE_NONE,
STR_002B_BATTERIES, STR_004B_BATTERY, STR_ITEMS, STR_QUANTITY_BATTERIES, STR_ABBREV_BATTERIES,
SPR_CARGO_BATTERIES, CC_PIECE_GOODS ),
MK( 20, 'SWET', 194, 5, 6144, 8, 40, true, TE_GOODS,
STR_0026_CANDY, STR_0046_CANDY, STR_BAGS, STR_QUANTITY_SWEETS, STR_ABBREV_SWEETS,
SPR_CARGO_CANDY, CC_EXPRESS ),
MK( 21, 'TOFF', 191, 16, 4778, 14, 60, true, TE_NONE,
STR_002A_TOFFEE, STR_004A_TOFFEE, STR_TONS, STR_QUANTITY_TOFFEE, STR_ABBREV_TOFFEE,
SPR_CARGO_TOFFEE, CC_BULK ),
MK( 22, 'COLA', 84, 16, 4892, 5, 75, true, TE_NONE,
STR_0027_COLA, STR_0047_COLA, STR_LITERS, STR_QUANTITY_COLA, STR_ABBREV_COLA,
SPR_CARGO_WATERCOLA, CC_LIQUID ),
MK( 23, 'CTCD', 184, 16, 5005, 10, 25, true, TE_NONE,
STR_0028_COTTON_CANDY, STR_0048_COTTON_CANDY, STR_TONS, STR_QUANTITY_CANDYFLOSS, STR_ABBREV_CANDYFLOSS,
SPR_CARGO_COTTONCANDY, CC_BULK ),
MK( 24, 'BUBL', 10, 1, 5077, 20, 80, true, TE_NONE,
STR_0029_BUBBLES, STR_0049_BUBBLE, STR_ITEMS, STR_QUANTITY_BUBBLES, STR_ABBREV_BUBBLES,
SPR_CARGO_BUBBLES, CC_PIECE_GOODS ),
MK( 25, 'PLST', 202, 16, 4664, 30, 255, true, TE_NONE,
STR_002C_PLASTIC, STR_004C_PLASTIC, STR_LITERS, STR_QUANTITY_PLASTIC, STR_ABBREV_PLASTIC,
SPR_CARGO_PLASTIC, CC_LIQUID ),
MK( 26, 'FZDR', 48, 2, 6250, 30, 50, true, TE_FOOD,
STR_002D_FIZZY_DRINKS, STR_004D_FIZZY_DRINK, STR_ITEMS, STR_QUANTITY_FIZZY_DRINKS, STR_ABBREV_FIZZY_DRINKS,
SPR_CARGO_FIZZYDRINK, CC_PIECE_GOODS ),
/* Void slot in temperate */
MK( 0xFF, 0, 1, 0, 5688, 0, 30, true, TE_NONE,
STR_000E, STR_002E, STR_TONS, STR_QUANTITY_NOTHING, STR_ABBREV_NOTHING,
SPR_ASCII_SPACE, CC_NOAVAILABLE ),
/* Void slot in arctic */
MK( 0xFF, 0, 184, 0, 5120, 9, 255, true, TE_NONE,
STR_000E, STR_002E, STR_TONS, STR_QUANTITY_NOTHING, STR_ABBREV_NOTHING,
SPR_ASCII_SPACE, CC_NOAVAILABLE ),
};
/* Table of which cargo types are available in each climate, by default */
static const CargoLabel _default_climate_cargo[NUM_LANDSCAPE][12] = {
{ 'PASS', 'COAL', 'MAIL', 'OIL_', 'LVST', 'GOOD', 'GRAI', 'WOOD', 'IORE', 'STEL', 'VALU', 33, },
{ 'PASS', 'COAL', 'MAIL', 'OIL_', 'LVST', 'GOOD', 'WHEA', 'WOOD', 34, 'PAPR', 'GOLD', 'FOOD', },
{ 'PASS', 'RUBR', 'MAIL', 4, 'FRUT', 'GOOD', 'MAIZ', 11, 'CORE', 'WATR', 'DIAM', 'FOOD', },
{ 'PASS', 'SUGR', 'MAIL', 'TOYS', 'BATT', 'SWET', 'TOFF', 'COLA', 'CTCD', 'BUBL', 'PLST', 'FZDR', },
};
| 8,675
|
C++
|
.h
| 124
| 67.064516
| 119
| 0.554694
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,624
|
elrail_data.h
|
EnergeticBark_OpenTTD-3DS/src/table/elrail_data.h
|
/* $Id$ */
/** @file elrail_data.h Stores all the data for overhead wire and pylon drawing.
* @see elrail.c */
#ifndef ELRAIL_DATA_H
#define ELRAIL_DATA_H
/** Tile Location group.
* This defines whether the X and or Y coordinate of a tile is even */
enum TLG {
XEVEN_YEVEN = 0,
XEVEN_YODD = 1,
XODD_YEVEN = 2,
XODD_YODD = 3,
TLG_END
};
/** When determining the pylon configuration on the edge, two tiles are taken
* into account: the tile being drawn itself (the home tile, the one in
* ti->tile), and the neighbouring tile */
enum TileSource {
TS_HOME = 0,
TS_NEIGHBOUR = 1,
TS_END
};
enum {
NUM_TRACKS_AT_PCP = 6
};
/** Which PPPs are possible at all on a given PCP */
static byte AllowedPPPonPCP[DIAGDIR_END] = {
1 << DIR_N | 1 << DIR_E | 1 << DIR_SE | 1 << DIR_S | 1 << DIR_W | 1 << DIR_NW,
1 << DIR_N | 1 << DIR_NE | 1 << DIR_E | 1 << DIR_S | 1 << DIR_SW | 1 << DIR_W,
1 << DIR_N | 1 << DIR_E | 1 << DIR_SE | 1 << DIR_S | 1 << DIR_W | 1 << DIR_NW,
1 << DIR_N | 1 << DIR_NE | 1 << DIR_E | 1 << DIR_S | 1 << DIR_SW | 1 << DIR_W,
};
/** Which of the PPPs are inside the tile. For the two PPPs on the tile border
* the following system is used: if you rotate the PCP so that it is in the
* north, the eastern PPP belongs to the tile. */
static byte OwnedPPPonPCP[DIAGDIR_END] = {
1 << DIR_SE | 1 << DIR_S | 1 << DIR_SW | 1 << DIR_W,
1 << DIR_N | 1 << DIR_SW | 1 << DIR_W | 1 << DIR_NW,
1 << DIR_N | 1 << DIR_NE | 1 << DIR_E | 1 << DIR_NW,
1 << DIR_NE | 1 << DIR_E | 1 << DIR_SE | 1 << DIR_S
};
/** Maps a track bit onto two PCP positions */
static const DiagDirection PCPpositions[TRACK_END][2] = {
{DIAGDIR_NE, DIAGDIR_SW}, // X
{DIAGDIR_SE, DIAGDIR_NW}, // Y
{DIAGDIR_NW, DIAGDIR_NE}, // UPPER
{DIAGDIR_SE, DIAGDIR_SW}, // LOWER
{DIAGDIR_SW, DIAGDIR_NW}, // LEFT
{DIAGDIR_NE, DIAGDIR_SE}, // RIGHT
};
#define PCP_NOT_ON_TRACK 0xFF
/** Preferred points of each trackbit. Those are the ones perpendicular to the
* track, plus the point in extension of the track (to mark end-of-track). PCPs
* which are not on either end of the track are fully preferred.
* @see PCPpositions */
static byte PreferredPPPofTrackAtPCP[TRACK_END][DIAGDIR_END] = {
{ // X
1 << DIR_NE | 1 << DIR_SE | 1 << DIR_NW, // NE
PCP_NOT_ON_TRACK, // SE
1 << DIR_SE | 1 << DIR_SW | 1 << DIR_NW, // SW
PCP_NOT_ON_TRACK // NE
}, { // Y
PCP_NOT_ON_TRACK,
1 << DIR_NE | 1 << DIR_SE | 1 << DIR_SW,
PCP_NOT_ON_TRACK,
1 << DIR_SW | 1 << DIR_NW | 1 << DIR_NE
}, { // UPPER
1 << DIR_E | 1 << DIR_N | 1 << DIR_S,
PCP_NOT_ON_TRACK,
PCP_NOT_ON_TRACK,
1 << DIR_W | 1 << DIR_N | 1 << DIR_S
}, { // LOWER
PCP_NOT_ON_TRACK,
1 << DIR_E | 1 << DIR_N | 1 << DIR_S,
1 << DIR_W | 1 << DIR_N | 1 << DIR_S,
PCP_NOT_ON_TRACK
}, { // LEFT
PCP_NOT_ON_TRACK,
PCP_NOT_ON_TRACK,
1 << DIR_S | 1 << DIR_E | 1 << DIR_W,
1 << DIR_N | 1 << DIR_E | 1 << DIR_W
}, { // RIGHT
1 << DIR_N | 1 << DIR_E | 1 << DIR_W,
1 << DIR_S | 1 << DIR_E | 1 << DIR_W,
PCP_NOT_ON_TRACK,
PCP_NOT_ON_TRACK
}
};
#undef PCP_NOT_ON_TRACK
#define NUM_IGNORE_GROUPS 3
#define IGNORE_NONE 0xFF
/** In case we have a staight line, we place pylon only every two tiles,
* so there are certain tiles which we ignore. A straight line is found if
* we have exactly two PPPs. */
static byte IgnoredPCP[NUM_IGNORE_GROUPS][TLG_END][DIAGDIR_END] = {
{ // Ignore group 1, X and Y tracks
{ // X even, Y even
IGNORE_NONE,
1 << DIR_NE | 1 << DIR_SW,
1 << DIR_NW | 1 << DIR_SE,
IGNORE_NONE
}, { // X even, Y odd
IGNORE_NONE,
IGNORE_NONE,
1 << DIR_NW | 1 << DIR_SE,
1 << DIR_NE | 1 << DIR_SW
}, { // X odd, Y even
1 << DIR_NW | 1 << DIR_SE,
1 << DIR_NE | 1 << DIR_SW,
IGNORE_NONE,
IGNORE_NONE
}, { // X odd, Y odd
1 << DIR_NW | 1 << DIR_SE,
IGNORE_NONE,
IGNORE_NONE,
1 << DIR_NE | 1 << DIR_SW
}
},
{ // Ignore group 2, LEFT and RIGHT tracks
{
1 << DIR_E | 1 << DIR_W,
IGNORE_NONE,
IGNORE_NONE,
1 << DIR_E | 1 << DIR_W
}, {
IGNORE_NONE,
1 << DIR_E | 1 << DIR_W,
1 << DIR_E | 1 << DIR_W,
IGNORE_NONE
}, {
IGNORE_NONE,
1 << DIR_E | 1 << DIR_W,
1 << DIR_E | 1 << DIR_W,
IGNORE_NONE
}, {
1 << DIR_E | 1 << DIR_W,
IGNORE_NONE,
IGNORE_NONE,
1 << DIR_E | 1 << DIR_W
}
},
{ // Ignore group 3, UPPER and LOWER tracks
{
1 << DIR_N | 1 << DIR_S,
1 << DIR_N | 1 << DIR_S,
IGNORE_NONE,
IGNORE_NONE
}, {
IGNORE_NONE,
IGNORE_NONE,
1 << DIR_N | 1 << DIR_S,
1 << DIR_N | 1 << DIR_S
}, {
IGNORE_NONE,
IGNORE_NONE,
1 << DIR_N | 1 << DIR_S ,
1 << DIR_N | 1 << DIR_S
}, {
1 << DIR_N | 1 << DIR_S,
1 << DIR_N | 1 << DIR_S,
IGNORE_NONE,
IGNORE_NONE
}
}
};
#undef NO_IGNORE
/** Which pylons can definately NOT be built */
static byte DisallowedPPPofTrackAtPCP[TRACK_END][DIAGDIR_END] = {
{1 << DIR_SW | 1 << DIR_NE, 0, 1 << DIR_SW | 1 << DIR_NE, 0 }, // X
{0, 1 << DIR_NW | 1 << DIR_SE, 0, 1 << DIR_NW | 1 << DIR_SE}, // Y
{1 << DIR_W | 1 << DIR_E, 0, 0, 1 << DIR_W | 1 << DIR_E }, // UPPER
{0, 1 << DIR_W | 1 << DIR_E, 1 << DIR_W | 1 << DIR_E, 0 }, // LOWER
{0, 0, 1 << DIR_S | 1 << DIR_N, 1 << DIR_N | 1 << DIR_S }, // LEFT
{1 << DIR_S | 1 << DIR_N, 1 << DIR_S | 1 << DIR_N, 0, 0, }, // RIGHT
};
/* This array stores which track bits can meet at a tile edge */
static const Track TracksAtPCP[DIAGDIR_END][NUM_TRACKS_AT_PCP] = {
{TRACK_X, TRACK_X, TRACK_UPPER, TRACK_LOWER, TRACK_LEFT, TRACK_RIGHT},
{TRACK_Y, TRACK_Y, TRACK_UPPER, TRACK_LOWER, TRACK_LEFT, TRACK_RIGHT},
{TRACK_X, TRACK_X, TRACK_UPPER, TRACK_LOWER, TRACK_LEFT, TRACK_RIGHT},
{TRACK_Y, TRACK_Y, TRACK_UPPER, TRACK_LOWER, TRACK_LEFT, TRACK_RIGHT},
};
/* takes each of the 6 track bits from the array above and
* assigns it to the home tile or neighbour tile */
static const TileSource TrackSourceTile[DIAGDIR_END][NUM_TRACKS_AT_PCP] = {
{TS_HOME, TS_NEIGHBOUR, TS_HOME , TS_NEIGHBOUR, TS_NEIGHBOUR, TS_HOME },
{TS_HOME, TS_NEIGHBOUR, TS_NEIGHBOUR, TS_HOME , TS_NEIGHBOUR, TS_HOME },
{TS_HOME, TS_NEIGHBOUR, TS_NEIGHBOUR, TS_HOME , TS_HOME , TS_NEIGHBOUR},
{TS_HOME, TS_NEIGHBOUR, TS_HOME , TS_NEIGHBOUR, TS_HOME , TS_NEIGHBOUR},
};
/* Several PPPs maybe exist, here they are sorted in order of preference. */
static const Direction PPPorder[DIAGDIR_END][TLG_END][DIR_END] = { // X - Y
{ // PCP 0
{DIR_NE, DIR_NW, DIR_SE, DIR_SW, DIR_N, DIR_E, DIR_S, DIR_W}, // evn - evn
{DIR_NE, DIR_SE, DIR_SW, DIR_NW, DIR_S, DIR_W, DIR_N, DIR_E}, // evn - odd
{DIR_SW, DIR_NW, DIR_NE, DIR_SE, DIR_S, DIR_W, DIR_N, DIR_E}, // odd - evn
{DIR_SW, DIR_SE, DIR_NE, DIR_NW, DIR_N, DIR_E, DIR_S, DIR_W}, // odd - odd
}, {// PCP 1
{DIR_NE, DIR_NW, DIR_SE, DIR_SW, DIR_S, DIR_E, DIR_N, DIR_W}, // evn - evn
{DIR_NE, DIR_SE, DIR_SW, DIR_NW, DIR_N, DIR_W, DIR_S, DIR_E}, // evn - odd
{DIR_SW, DIR_NW, DIR_NE, DIR_SE, DIR_N, DIR_W, DIR_S, DIR_E}, // odd - evn
{DIR_SW, DIR_SE, DIR_NE, DIR_NW, DIR_S, DIR_E, DIR_N, DIR_W}, // odd - odd
}, {// PCP 2
{DIR_NE, DIR_NW, DIR_SE, DIR_SW, DIR_S, DIR_W, DIR_N, DIR_E}, // evn - evn
{DIR_NE, DIR_SE, DIR_SW, DIR_NW, DIR_N, DIR_E, DIR_S, DIR_W}, // evn - odd
{DIR_SW, DIR_NW, DIR_NE, DIR_SE, DIR_N, DIR_E, DIR_S, DIR_W}, // odd - evn
{DIR_SW, DIR_SE, DIR_NE, DIR_NW, DIR_S, DIR_W, DIR_N, DIR_E}, // odd - odd
}, {// PCP 3
{DIR_NE, DIR_NW, DIR_SE, DIR_SW, DIR_N, DIR_W, DIR_S, DIR_E}, // evn - evn
{DIR_NE, DIR_SE, DIR_SW, DIR_NW, DIR_S, DIR_E, DIR_N, DIR_W}, // evn - odd
{DIR_SW, DIR_NW, DIR_NE, DIR_SE, DIR_S, DIR_E, DIR_N, DIR_W}, // odd - evn
{DIR_SW, DIR_SE, DIR_NE, DIR_NW, DIR_N, DIR_W, DIR_S, DIR_E}, // odd - odd
}
};
/* Geometric placement of the PCP relative to the tile origin */
static const int8 x_pcp_offsets[DIAGDIR_END] = {0, 8, 16, 8};
static const int8 y_pcp_offsets[DIAGDIR_END] = {8, 16, 8, 0};
/* Geometric placement of the PPP relative to the PCP*/
static const int8 x_ppp_offsets[DIR_END] = {-2, -4, -2, 0, 2, 4, 2, 0};
static const int8 y_ppp_offsets[DIR_END] = {-2, 0, 2, 4, 2, 0, -2, -4};
/**
* Offset for pylon sprites from the base pylon sprite.
*/
enum PylonSpriteOffset {
PSO_Y_NE,
PSO_Y_SW,
PSO_X_NW,
PSO_X_SE,
PSO_EW_N,
PSO_EW_S,
PSO_NS_W,
PSO_NS_E,
};
/* The type of pylon to draw at each PPP */
static const uint8 pylon_sprites[] = {
PSO_EW_N,
PSO_Y_NE,
PSO_NS_E,
PSO_X_SE,
PSO_EW_S,
PSO_Y_SW,
PSO_NS_W,
PSO_X_NW,
};
/**
* Offset for wire sprites from the base wire sprite.
*/
enum WireSpriteOffset {
WSO_X_SHORT,
WSO_Y_SHORT,
WSO_EW_SHORT,
WSO_NS_SHORT,
WSO_X_SHORT_DOWN,
WSO_Y_SHORT_UP,
WSO_X_SHORT_UP,
WSO_Y_SHORT_DOWN,
WSO_X_SW,
WSO_Y_SE,
WSO_EW_E,
WSO_NS_S,
WSO_X_SW_DOWN,
WSO_Y_SE_UP,
WSO_X_SW_UP,
WSO_Y_SE_DOWN,
WSO_X_NE,
WSO_Y_NW,
WSO_EW_W,
WSO_NS_N,
WSO_X_NE_DOWN,
WSO_Y_NW_UP,
WSO_X_NE_UP,
WSO_Y_NW_DOWN,
WSO_ENTRANCE_NE,
WSO_ENTRANCE_SE,
WSO_ENTRANCE_SW,
WSO_ENTRANCE_NW,
};
struct SortableSpriteStruct {
uint8 image_offset;
int8 x_offset;
int8 y_offset;
int8 x_size;
int8 y_size;
int8 z_size;
int8 z_offset;
};
enum {
/** Distance between wire and rail */
ELRAIL_ELEVATION = 10,
/** Wires that a draw one level higher than the north corner. */
ELRAIL_ELEVRAISE = ELRAIL_ELEVATION + TILE_HEIGHT
};
static const SortableSpriteStruct CatenarySpriteData[] = {
/* X direction
* Flat tiles:
* Wires */
{ WSO_X_SW, 0, 7, 15, 1, 1, ELRAIL_ELEVATION }, //! 0: Wire in X direction, pylon on the SW end only
{ WSO_X_NE, 0, 7, 15, 1, 1, ELRAIL_ELEVATION }, //! 1: Wire in X direction, pylon on the NE end
{ WSO_X_SHORT, 0, 7, 15, 1, 1, ELRAIL_ELEVATION }, //! 2: Wire in X direction, pylon on both ends
/* "up" tiles
* Wires */
{ WSO_X_SW_UP, 0, 7, 15, 8, 1, ELRAIL_ELEVRAISE }, //! 3: Wire in X pitch up, pylon on the SW end only
{ WSO_X_NE_UP, 0, 7, 15, 8, 1, ELRAIL_ELEVRAISE }, //! 4: Wire in X pitch up, pylon on the NE end
{ WSO_X_SHORT_UP, 0, 7, 15, 8, 1, ELRAIL_ELEVRAISE }, //! 5: Wire in X pitch up, pylon on both ends
/* "down" tiles
* Wires */
{ WSO_X_SW_DOWN, 0, 7, 15, 8, 1, ELRAIL_ELEVATION }, //! 6: Wire in X pitch down, pylon on the SW end
{ WSO_X_NE_DOWN, 0, 7, 15, 8, 1, ELRAIL_ELEVATION }, //! 7: Wire in X pitch down, pylon on the NE end
{ WSO_X_SHORT_DOWN, 0, 7, 15, 8, 1, ELRAIL_ELEVATION }, //! 8: Wire in X pitch down, pylon on both ends
/* Y direction
* Flat tiles:
* Wires */
{ WSO_Y_SE, 7, 0, 1, 15, 1, ELRAIL_ELEVATION }, //! 9: Wire in Y direction, pylon on the SE end only
{ WSO_Y_NW, 7, 0, 1, 15, 1, ELRAIL_ELEVATION }, //!10: Wire in Y direction, pylon on the NW end
{ WSO_Y_SHORT, 7, 0, 1, 15, 1, ELRAIL_ELEVATION }, //!11: Wire in Y direction, pylon on both ends
/* "up" tiles
* Wires */
{ WSO_Y_SE_UP, 7, 0, 8, 15, 1, ELRAIL_ELEVRAISE }, //!12: Wire in Y pitch up, pylon on the SE end only
{ WSO_Y_NW_UP, 7, 0, 8, 15, 1, ELRAIL_ELEVRAISE }, //!13: Wire in Y pitch up, pylon on the NW end
{ WSO_Y_SHORT_UP, 7, 0, 8, 15, 1, ELRAIL_ELEVRAISE }, //!14: Wire in Y pitch up, pylon on both ends
/* "down" tiles
* Wires */
{ WSO_Y_SE_DOWN, 7, 0, 8, 15, 1, ELRAIL_ELEVATION }, //!15: Wire in Y pitch down, pylon on the SE end
{ WSO_Y_NW_DOWN, 7, 0, 8, 15, 1, ELRAIL_ELEVATION }, //!16: Wire in Y pitch down, pylon on the NW end
{ WSO_Y_SHORT_DOWN, 7, 0, 8, 15, 1, ELRAIL_ELEVATION }, //!17: Wire in Y pitch down, pylon on both ends
/* NS Direction */
{ WSO_NS_SHORT, 8, 0, 8, 8, 1, ELRAIL_ELEVATION }, //!18: LEFT trackbit wire, pylon on both ends
{ WSO_NS_SHORT, 0, 8, 8, 8, 1, ELRAIL_ELEVATION }, //!19: RIGHT trackbit wire, pylon on both ends
{ WSO_NS_N, 8, 0, 8, 8, 1, ELRAIL_ELEVATION }, //!20: LEFT trackbit wire, pylon on N end
{ WSO_NS_N, 0, 8, 8, 8, 1, ELRAIL_ELEVATION }, //!21: RIGHT trackbit wire, pylon on N end
{ WSO_NS_S, 8, 0, 8, 8, 1, ELRAIL_ELEVATION }, //!22: LEFT trackbit wire, pylon on S end
{ WSO_NS_S, 0, 8, 8, 8, 1, ELRAIL_ELEVATION }, //!23: RIGHT trackbit wire, pylon on S end
/* EW Direction */
{ WSO_EW_SHORT, 7, 0, 1, 1, 1, ELRAIL_ELEVATION }, //!24: UPPER trackbit wire, pylon on both ends
{ WSO_EW_SHORT, 15, 8, 3, 3, 1, ELRAIL_ELEVATION }, //!25: LOWER trackbit wire, pylon on both ends
{ WSO_EW_W, 7, 0, 1, 1, 1, ELRAIL_ELEVATION }, //!28: UPPER trackbit wire, pylon on both ends
{ WSO_EW_W, 15, 8, 3, 3, 1, ELRAIL_ELEVATION }, //!29: LOWER trackbit wire, pylon on both ends
{ WSO_EW_E, 7, 0, 1, 1, 1, ELRAIL_ELEVATION }, //!32: UPPER trackbit wire, pylon on both ends
{ WSO_EW_E, 15, 8, 3, 3, 1, ELRAIL_ELEVATION } //!33: LOWER trackbit wire, pylon on both ends
};
static const SortableSpriteStruct CatenarySpriteData_Depot[] = {
{ WSO_ENTRANCE_NE, 0, 7, 15, 1, 1, ELRAIL_ELEVATION }, //! Wire for NE depot exit
{ WSO_ENTRANCE_SE, 7, 0, 1, 15, 1, ELRAIL_ELEVATION }, //! Wire for SE depot exit
{ WSO_ENTRANCE_SW, 0, 7, 15, 1, 1, ELRAIL_ELEVATION }, //! Wire for SW depot exit
{ WSO_ENTRANCE_NW, 7, 0, 1, 15, 1, ELRAIL_ELEVATION } //! Wire for NW depot exit
};
static const SortableSpriteStruct CatenarySpriteData_Tunnel[] = {
{ WSO_ENTRANCE_NE, 0, 7, 15, 1, 1, ELRAIL_ELEVATION }, //! Wire for NE tunnel exit
{ WSO_ENTRANCE_SE, 7, 0, 1, 15, 1, ELRAIL_ELEVATION }, //! Wire for SE tunnel exit
{ WSO_ENTRANCE_SW, 0, 7, 15, 1, 1, ELRAIL_ELEVATION }, //! Wire for SW tunnel exit
{ WSO_ENTRANCE_NW, 7, 0, 1, 15, 1, ELRAIL_ELEVATION } //! Wire for NW tunnel exit
};
/** Refers to a certain element of the catenary.
* Identifiers for Wires:
* <ol><li>Direction of the wire</li>
* <li>Slope of the tile for diagonals, placement inside the track for horiz/vertical pieces</li>
* <li>Place where a pylon shoule be</li></ol>
* Identifiers for Pylons:
* <ol><li>Direction of the wire</li>
* <li>Slope of the tile</li>
* <li>Position of the Pylon relative to the track</li>
* <li>Position of the Pylon inside the tile</li></ol>
*/
enum CatenarySprite {
WIRE_X_FLAT_SW,
WIRE_X_FLAT_NE,
WIRE_X_FLAT_BOTH,
WIRE_X_UP_SW,
WIRE_X_UP_NE,
WIRE_X_UP_BOTH,
WIRE_X_DOWN_SW,
WIRE_X_DOWN_NE,
WIRE_X_DOWN_BOTH,
WIRE_Y_FLAT_SE,
WIRE_Y_FLAT_NW,
WIRE_Y_FLAT_BOTH,
WIRE_Y_UP_SE,
WIRE_Y_UP_NW,
WIRE_Y_UP_BOTH,
WIRE_Y_DOWN_SE,
WIRE_Y_DOWN_NW,
WIRE_Y_DOWN_BOTH,
WIRE_NS_W_BOTH,
WIRE_NS_E_BOTH,
WIRE_NS_W_N,
WIRE_NS_E_N,
WIRE_NS_W_S,
WIRE_NS_E_S,
WIRE_EW_N_BOTH,
WIRE_EW_S_BOTH,
WIRE_EW_N_W,
WIRE_EW_S_W,
WIRE_EW_N_E,
WIRE_EW_S_E,
INVALID_CATENARY = 0xFF
};
/* Selects a Wire (with white and grey ends) depending on whether:
* a) none (should never happen)
* b) the first
* c) the second
* d) both
* PCP exists.*/
static const CatenarySprite Wires[5][TRACK_END][4] = {
{ // Tileh == 0
{INVALID_CATENARY, WIRE_X_FLAT_NE, WIRE_X_FLAT_SW, WIRE_X_FLAT_BOTH},
{INVALID_CATENARY, WIRE_Y_FLAT_SE, WIRE_Y_FLAT_NW, WIRE_Y_FLAT_BOTH},
{INVALID_CATENARY, WIRE_EW_N_W, WIRE_EW_N_E, WIRE_EW_N_BOTH},
{INVALID_CATENARY, WIRE_EW_S_E, WIRE_EW_S_W, WIRE_EW_S_BOTH},
{INVALID_CATENARY, WIRE_NS_W_S, WIRE_NS_W_N, WIRE_NS_W_BOTH},
{INVALID_CATENARY, WIRE_NS_E_N, WIRE_NS_E_S, WIRE_NS_E_BOTH},
}, { // Tileh == 3
{INVALID_CATENARY, WIRE_X_UP_NE, WIRE_X_UP_SW, WIRE_X_UP_BOTH},
{INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY},
{INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY},
{INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY},
{INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY},
{INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY},
}, { // Tileh == 6
{INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY},
{INVALID_CATENARY, WIRE_Y_UP_SE, WIRE_Y_UP_NW, WIRE_Y_UP_BOTH},
{INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY},
{INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY},
{INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY},
{INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY},
}, { // Tileh == 9
{INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY},
{INVALID_CATENARY, WIRE_Y_DOWN_SE, WIRE_Y_DOWN_NW, WIRE_Y_DOWN_BOTH},
{INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY},
{INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY},
{INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY},
{INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY},
}, { // Tileh == 12
{INVALID_CATENARY, WIRE_X_DOWN_NE, WIRE_X_DOWN_SW, WIRE_X_DOWN_BOTH},
{INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY},
{INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY},
{INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY},
{INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY},
{INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY, INVALID_CATENARY},
}
};
#endif /* ELRAIL_DATA_H */
| 17,512
|
C++
|
.h
| 441
| 37.321995
| 113
| 0.610344
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,625
|
clear_land.h
|
EnergeticBark_OpenTTD-3DS/src/table/clear_land.h
|
/* $Id$ */
/** @file clear_land.h Tables with sprites for clear land and fences. */
static const SpriteID _landscape_clear_sprites[8] = {
0xFA0,
0xFB3,
0xFB4,
0xFB5,
0xFB6,
0xFA0,
0xFB3,
0xFB4,
};
static const byte _fence_mod_by_tileh[32] = {
0, 2, 4, 0, 0, 2, 4, 0,
0, 2, 4, 0, 0, 2, 4, 0,
0, 2, 4, 0, 0, 2, 4, 4,
0, 2, 4, 2, 0, 2, 4, 0,
};
static const byte _fence_mod_by_tileh_2[32] = {
1, 1, 5, 5, 3, 3, 1, 1,
1, 1, 5, 5, 3, 3, 1, 1,
1, 1, 5, 5, 3, 3, 1, 5,
1, 1, 5, 5, 3, 3, 3, 1,
};
static const SpriteID _clear_land_fence_sprites_1[7] = {
0xFFA,
0x1000,
0x1006,
0x100C,
0x1012,
0x1018,
};
static const SpriteID _clear_land_sprites_1[16] = {
0x101E,
0x1031,
0x1044,
0x1057,
0x106A,
0x107D,
0x1090,
0x10A3,
0x10B6,
};
static const SpriteID _clear_land_sprites_2[8] = {
0x118D,
0x11A0,
0x11B3,
0x11C6,
};
static const SpriteID _clear_land_sprites_3[8] = {
0x118D,
0x11A0,
0x11B3,
0x11C6,
};
| 943
|
C++
|
.h
| 55
| 15.272727
| 72
| 0.631399
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,626
|
genland.h
|
EnergeticBark_OpenTTD-3DS/src/table/genland.h
|
/* $Id$ */
/** @file genland.h Table used to generate deserts and/or rain forests. */
#define M(x, y) {x, y}
static const TileIndexDiffC _make_desert_or_rainforest_data[] = {
M(-5, -6),
M(-4, -6),
M(-3, -6),
M(-2, -6),
M(-1, -6),
M( 0, -5),
M( 1, -5),
M( 2, -5),
M( 3, -5),
M( 4, -5),
M( 5, -5),
M(-5, -5),
M(-4, -5),
M(-3, -5),
M(-2, -5),
M(-1, -5),
M( 0, -4),
M( 1, -4),
M( 2, -4),
M( 3, -4),
M( 4, -4),
M( 5, -4),
M(-5, -4),
M(-4, -4),
M(-3, -4),
M(-2, -4),
M(-1, -4),
M( 0, -3),
M( 1, -3),
M( 2, -3),
M( 3, -3),
M( 4, -3),
M( 5, -3),
M(-5, -3),
M(-4, -3),
M(-3, -3),
M(-2, -3),
M(-1, -3),
M( 0, -2),
M( 1, -2),
M( 2, -2),
M( 3, -2),
M( 4, -2),
M( 5, -2),
M(-5, -2),
M(-4, -2),
M(-3, -2),
M(-2, -2),
M(-1, -2),
M( 0, -1),
M( 1, -1),
M( 2, -1),
M( 3, -1),
M( 4, -1),
M( 5, -1),
M(-5, -1),
M(-4, -1),
M(-3, -1),
M(-2, -1),
M(-1, -1),
M( 0, 0),
M( 1, 0),
M( 2, 0),
M( 3, 0),
M( 4, 0),
M( 5, 0),
M(-5, 0),
M(-4, 0),
M(-3, 0),
M(-2, 0),
M(-1, 0),
M( 0, 1),
M( 1, 1),
M( 2, 1),
M( 3, 1),
M( 4, 1),
M( 5, 1),
M(-5, 1),
M(-4, 1),
M(-3, 1),
M(-2, 1),
M(-1, 1),
M( 0, 2),
M( 1, 2),
M( 2, 2),
M( 3, 2),
M( 4, 2),
M( 5, 2),
M(-5, 2),
M(-4, 2),
M(-3, 2),
M(-2, 2),
M(-1, 2),
M( 0, 3),
M( 1, 3),
M( 2, 3),
M( 3, 3),
M( 4, 3),
M( 5, 3),
M(-5, 3),
M(-4, 3),
M(-3, 3),
M(-2, 3),
M(-1, 3),
M( 0, 4),
M( 1, 4),
M( 2, 4),
M( 3, 4),
M( 4, 4),
M( 5, 4),
M(-5, 4),
M(-4, 4),
M(-3, 4),
M(-2, 4),
M(-1, 4),
M( 0, 5),
M( 1, 5),
M( 2, 5),
M( 3, 5),
M( 4, 5),
M( 5, 5),
M( 6, -3),
M(-6, -4),
M(-3, 5),
M(-3, -7),
M( 6, -2),
M(-6, -3),
M(-2, 5),
M(-2, -7),
M( 6, -1),
M(-6, -2),
M(-1, 5),
M(-1, -7),
M( 6, 0),
M(-6, -1),
M( 0, 6),
M( 0, -6),
M( 6, 1),
M(-6, 0),
M( 1, 6),
M( 1, -6),
M( 6, 2),
M(-6, 1),
M( 2, 6),
M( 2, -6),
M( 6, 3),
M(-6, 2),
M( 3, 6),
M( 3, -6)
};
#undef M
| 1,981
|
C++
|
.h
| 155
| 10.780645
| 74
| 0.313736
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,627
|
animcursors.h
|
EnergeticBark_OpenTTD-3DS/src/table/animcursors.h
|
/* $Id$ */
/** @file animcursors.h
* This file defines all the the animated cursors.
* Animated cursors consist of the number of sprites that are
* displayed in a round-robin manner. Each sprite also has a time
* associated that indicates how many ticks the corresponding sprite
* is to be displayed.
*/
/** Creates two array entries that define one
* status of the cursor.
* @param Sprite The Sprite to be displayed
* @param display_time The Number of ticks to display the sprite
*/
#define ANIM_CURSOR_LINE(Sprite, display_time) { Sprite, display_time },
/** This indicates the termination of the cursor list
*/
#define ANIM_CURSOR_END() ANIM_CURSOR_LINE(AnimCursor::LAST, 0)
/** Animated cursor elements for demolishion
*/
static const AnimCursor _demolish_animcursor[] = {
ANIM_CURSOR_LINE(0x2C0, 8)
ANIM_CURSOR_LINE(0x2C1, 8)
ANIM_CURSOR_LINE(0x2C2, 8)
ANIM_CURSOR_LINE(0x2C3, 8)
ANIM_CURSOR_END()
};
/** Animated cursor elements for lower land
*/
static const AnimCursor _lower_land_animcursor[] = {
ANIM_CURSOR_LINE(0x2BB, 10)
ANIM_CURSOR_LINE(0x2BC, 10)
ANIM_CURSOR_LINE(0x2BD, 29)
ANIM_CURSOR_END()
};
/** Animated cursor elements for raise land
*/
static const AnimCursor _raise_land_animcursor[] = {
ANIM_CURSOR_LINE(0x2B8, 10)
ANIM_CURSOR_LINE(0x2B9, 10)
ANIM_CURSOR_LINE(0x2BA, 29)
ANIM_CURSOR_END()
};
/** Animated cursor elements for the goto icon
*/
static const AnimCursor _order_goto_animcursor[] = {
ANIM_CURSOR_LINE(0x2CC, 10)
ANIM_CURSOR_LINE(0x2CD, 10)
ANIM_CURSOR_LINE(0x2CE, 29)
ANIM_CURSOR_END()
};
/** Animated cursor elements for the build signal icon
*/
static const AnimCursor _build_signals_animcursor[] = {
ANIM_CURSOR_LINE(0x50C, 20)
ANIM_CURSOR_LINE(0x50D, 20)
ANIM_CURSOR_END()
};
/** This is an array of pointers to all the animated cursor
* definitions we have above. This is the only thing that is
* accessed directly from other files
*/
static const AnimCursor * const _animcursors[] = {
_demolish_animcursor,
_lower_land_animcursor,
_raise_land_animcursor,
_order_goto_animcursor,
_build_signals_animcursor
};
| 2,107
|
C++
|
.h
| 68
| 29.205882
| 72
| 0.750246
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,628
|
tree_land.h
|
EnergeticBark_OpenTTD-3DS/src/table/tree_land.h
|
/* $Id$ */
/** @file tree_land.h Sprites to use and how to display them for tree tiles. */
#ifndef TREE_LAND_H
#define TREE_LAND_H
static const SpriteID _tree_sprites_1[] = {
SPR_FLAT_1_QUART_SNOWY_TILE,
SPR_FLAT_2_QUART_SNOWY_TILE,
SPR_FLAT_3_QUART_SNOWY_TILE,
SPR_FLAT_SNOWY_TILE
};
static const byte _tree_base_by_landscape[4] = {0, 12, 20, 32};
static const byte _tree_count_by_landscape[4] = {12, 8, 12, 9};
struct TreePos {
uint8 x;
uint8 y;
};
static const TreePos _tree_layout_xy[][4] = {
{ { 9, 3 }, { 1, 8 }, { 0, 0 }, { 8, 9 } },
{ { 4, 4 }, { 9, 1 }, { 6, 9 }, { 0, 9 } },
{ { 9, 1 }, { 0, 9 }, { 6, 6 }, { 3, 0 } },
{ { 3, 9 }, { 8, 2 }, { 9, 9 }, { 1, 5 } }
};
static const PalSpriteID _tree_layout_sprite[164 + (79 - 48 + 1)][4] = {
{ { 0x652, PAL_NONE }, { 0x659, PAL_NONE }, { 0x660, PAL_NONE }, { 0x667, PAL_NONE } }, // 0
{ { 0x652, PAL_NONE }, { 0x667, PAL_NONE }, { 0x66e, PAL_NONE }, { 0x675, PAL_NONE } }, // 1
{ { 0x652, PAL_NONE }, { 0x66e, PAL_NONE }, { 0x659, PAL_NONE }, { 0x675, PAL_NONE } }, // 2
{ { 0x652, PAL_NONE }, { 0x652, PAL_NONE }, { 0x660, PAL_NONE }, { 0x66e, PAL_NONE } }, // 3
{ { 0x660, PAL_NONE }, { 0x667, PAL_NONE }, { 0x659, PAL_NONE }, { 0x652, PAL_NONE } }, // 4
{ { 0x660, PAL_NONE }, { 0x675, PAL_NONE }, { 0x660, PAL_NONE }, { 0x660, PAL_NONE } }, // 5
{ { 0x660, PAL_NONE }, { 0x652, PAL_NONE }, { 0x652, PAL_NONE }, { 0x66e, PAL_NONE } }, // 6
{ { 0x660, PAL_NONE }, { 0x675, PAL_NONE }, { 0x667, PAL_NONE }, { 0x659, PAL_NONE } }, // 7
{ { 0x675, PAL_NONE }, { 0x660, PAL_NONE }, { 0x675, PAL_NONE }, { 0x675, PAL_NONE } }, // 8
{ { 0x675, PAL_NONE }, { 0x659, PAL_NONE }, { 0x652, PAL_NONE }, { 0x652, PAL_NONE } }, // 9
{ { 0x675, PAL_NONE }, { 0x66e, PAL_NONE }, { 0x652, PAL_NONE }, { 0x652, PAL_NONE } }, // 10
{ { 0x675, PAL_NONE }, { 0x667, PAL_NONE }, { 0x659, PAL_NONE }, { 0x667, PAL_NONE } }, // 11
{ { 0x628, PAL_NONE }, { 0x652, PAL_NONE }, { 0x660, PAL_NONE }, { 0x62f, PAL_NONE } }, // 12
{ { 0x628, PAL_NONE }, { 0x636, PAL_NONE }, { 0x675, PAL_NONE }, { 0x644, PAL_NONE } }, // 13
{ { 0x628, PAL_NONE }, { 0x652, PAL_NONE }, { 0x63d, PAL_NONE }, { 0x66e, PAL_NONE } }, // 14
{ { 0x628, PAL_NONE }, { 0x667, PAL_NONE }, { 0x644, PAL_NONE }, { 0x652, PAL_NONE } }, // 15
{ { 0x644, PAL_NONE }, { 0x659, PAL_NONE }, { 0x660, PAL_NONE }, { 0x628, PAL_NONE } }, // 16
{ { 0x644, PAL_NONE }, { 0x64b, PAL_NONE }, { 0x659, PAL_NONE }, { 0x636, PAL_NONE } }, // 17
{ { 0x644, PAL_NONE }, { 0x675, PAL_NONE }, { 0x652, PAL_NONE }, { 0x63d, PAL_NONE } }, // 18
{ { 0x644, PAL_NONE }, { 0x63d, PAL_NONE }, { 0x66e, PAL_NONE }, { 0x652, PAL_NONE } }, // 19
{ { 0x636, PAL_NONE }, { 0x636, PAL_NONE }, { 0x628, PAL_NONE }, { 0x636, PAL_NONE } }, // 20
{ { 0x636, PAL_NONE }, { 0x63d, PAL_NONE }, { 0x636, PAL_NONE }, { 0x636, PAL_NONE } }, // 21
{ { 0x636, PAL_NONE }, { 0x64b, PAL_NONE }, { 0x636, PAL_NONE }, { 0x636, PAL_NONE } }, // 22
{ { 0x636, PAL_NONE }, { 0x636, PAL_NONE }, { 0x636, PAL_NONE }, { 0x636, PAL_NONE } }, // 23
{ { 0x64b, PAL_NONE }, { 0x628, PAL_NONE }, { 0x62f, PAL_NONE }, { 0x636, PAL_NONE } }, // 24
{ { 0x64b, PAL_NONE }, { 0x63d, PAL_NONE }, { 0x644, PAL_NONE }, { 0x636, PAL_NONE } }, // 25
{ { 0x64b, PAL_NONE }, { 0x636, PAL_NONE }, { 0x63d, PAL_NONE }, { 0x628, PAL_NONE } }, // 26
{ { 0x64b, PAL_NONE }, { 0x64b, PAL_NONE }, { 0x636, PAL_NONE }, { 0x63d, PAL_NONE } }, // 27
{ { 0x62f, PAL_NONE }, { 0x644, PAL_NONE }, { 0x644, PAL_NONE }, { 0x636, PAL_NONE } }, // 28
{ { 0x62f, PAL_NONE }, { 0x62f, PAL_NONE }, { 0x636, PAL_NONE }, { 0x628, PAL_NONE } }, // 29
{ { 0x62f, PAL_NONE }, { 0x64b, PAL_NONE }, { 0x636, PAL_NONE }, { 0x636, PAL_NONE } }, // 30
{ { 0x62f, PAL_NONE }, { 0x636, PAL_NONE }, { 0x62f, PAL_NONE }, { 0x636, PAL_NONE } }, // 31
{ { 0x67c, PAL_NONE }, { 0x675, PAL_NONE }, { 0x683, PAL_NONE }, { 0x67c, PAL_NONE } }, // 32
{ { 0x67c, PAL_NONE }, { 0x69f, PAL_NONE }, { 0x67c, PAL_NONE }, { 0x659, PAL_NONE } }, // 33
{ { 0x67c, PAL_NONE }, { 0x67c, PAL_NONE }, { 0x67c, PAL_NONE }, { 0x6a6, PAL_NONE } }, // 34
{ { 0x67c, PAL_NONE }, { 0x691, PAL_NONE }, { 0x66e, PAL_NONE }, { 0x68a, PAL_NONE } }, // 35
{ { 0x68a, PAL_NONE }, { 0x68a, PAL_NONE }, { 0x698, PAL_NONE }, { 0x68a, PAL_NONE } }, // 36
{ { 0x68a, PAL_NONE }, { 0x698, PAL_NONE }, { 0x683, PAL_NONE }, { 0x68a, PAL_NONE } }, // 37
{ { 0x68a, PAL_NONE }, { 0x67c, PAL_NONE }, { 0x691, PAL_NONE }, { 0x68a, PAL_NONE } }, // 38
{ { 0x68a, PAL_NONE }, { 0x683, PAL_NONE }, { 0x6a6, PAL_NONE }, { 0x69f, PAL_NONE } }, // 39
{ { 0x698, PAL_NONE }, { 0x68a, PAL_NONE }, { 0x698, PAL_NONE }, { 0x652, PAL_NONE } }, // 40
{ { 0x698, PAL_NONE }, { 0x698, PAL_NONE }, { 0x660, PAL_NONE }, { 0x667, PAL_NONE } }, // 41
{ { 0x698, PAL_NONE }, { 0x67c, PAL_NONE }, { 0x6a6, PAL_NONE }, { 0x698, PAL_NONE } }, // 42
{ { 0x698, PAL_NONE }, { 0x698, PAL_NONE }, { 0x698, PAL_NONE }, { 0x691, PAL_NONE } }, // 43
{ { 0x6a6, PAL_NONE }, { 0x6a6, PAL_NONE }, { 0x67c, PAL_NONE }, { 0x660, PAL_NONE } }, // 44
{ { 0x6a6, PAL_NONE }, { 0x69f, PAL_NONE }, { 0x6a6, PAL_NONE }, { 0x652, PAL_NONE } }, // 45
{ { 0x6a6, PAL_NONE }, { 0x67c, PAL_NONE }, { 0x6a6, PAL_NONE }, { 0x691, PAL_NONE } }, // 46
{ { 0x6a6, PAL_NONE }, { 0x691, PAL_NONE }, { 0x69f, PAL_NONE }, { 0x6a6, PAL_NONE } }, // 47
{ { 0x6ad, PAL_NONE }, { 0x6ad, PAL_NONE }, { 0x6ad, PAL_NONE }, { 0x6ad, PAL_NONE } }, // 48
{ { 0x6ad, PAL_NONE }, { 0x6ad, PAL_NONE }, { 0x6c2, PAL_NONE }, { 0x6d0, PAL_NONE } }, // 49
{ { 0x6ad, PAL_NONE }, { 0x6d7, PAL_NONE }, { 0x6ad, PAL_NONE }, { 0x6ad, PAL_NONE } }, // 50
{ { 0x6ad, PAL_NONE }, { 0x6d0, PAL_NONE }, { 0x6c9, PAL_NONE }, { 0x6ad, PAL_NONE } }, // 51
{ { 0x6d0, PAL_NONE }, { 0x6d0, PAL_NONE }, { 0x6d0, PAL_NONE }, { 0x6ad, PAL_NONE } }, // 52
{ { 0x6d0, PAL_NONE }, { 0x6ad, PAL_NONE }, { 0x6d7, PAL_NONE }, { 0x6c9, PAL_NONE } }, // 53
{ { 0x6d0, PAL_NONE }, { 0x6d7, PAL_NONE }, { 0x6d0, PAL_NONE }, { 0x6c2, PAL_NONE } }, // 54
{ { 0x6d0, PAL_NONE }, { 0x6d0, PAL_NONE }, { 0x6d0, PAL_NONE }, { 0x6ad, PAL_NONE } }, // 55
{ { 0x6d7, PAL_NONE }, { 0x6d7, PAL_NONE }, { 0x6d7, PAL_NONE }, { 0x6d7, PAL_NONE } }, // 56
{ { 0x6d7, PAL_NONE }, { 0x6d7, PAL_NONE }, { 0x6ad, PAL_NONE }, { 0x6ad, PAL_NONE } }, // 57
{ { 0x6d7, PAL_NONE }, { 0x6d0, PAL_NONE }, { 0x6d7, PAL_NONE }, { 0x6ad, PAL_NONE } }, // 58
{ { 0x6d7, PAL_NONE }, { 0x6d7, PAL_NONE }, { 0x6d0, PAL_NONE }, { 0x6ad, PAL_NONE } }, // 59
{ { 0x6c2, PAL_NONE }, { 0x6d0, PAL_NONE }, { 0x6c9, PAL_NONE }, { 0x6c2, PAL_NONE } }, // 60
{ { 0x6c2, PAL_NONE }, { 0x6c9, PAL_NONE }, { 0x6c2, PAL_NONE }, { 0x6ad, PAL_NONE } }, // 61
{ { 0x6c2, PAL_NONE }, { 0x6c2, PAL_NONE }, { 0x6c2, PAL_NONE }, { 0x6ad, PAL_NONE } }, // 62
{ { 0x6c2, PAL_NONE }, { 0x6c2, PAL_NONE }, { 0x6c2, PAL_NONE }, { 0x6c9, PAL_NONE } }, // 63
{ { 0x6c9, PAL_NONE }, { 0x6d0, PAL_NONE }, { 0x6b4, PAL_NONE }, { 0x6c2, PAL_NONE } }, // 64
{ { 0x6c9, PAL_NONE }, { 0x6bb, PAL_NONE }, { 0x6de, PAL_NONE }, { 0x6d7, PAL_NONE } }, // 65
{ { 0x6c9, PAL_NONE }, { 0x6c2, PAL_NONE }, { 0x6bb, PAL_NONE }, { 0x6b4, PAL_NONE } }, // 66
{ { 0x6c9, PAL_NONE }, { 0x6bb, PAL_NONE }, { 0x6c2, PAL_NONE }, { 0x6de, PAL_NONE } }, // 67
{ { 0x6b4, PAL_NONE }, { 0x6b4, PAL_NONE }, { 0x6de, PAL_NONE }, { 0x6c9, PAL_NONE } }, // 68
{ { 0x6b4, PAL_NONE }, { 0x6bb, PAL_NONE }, { 0x6bb, PAL_NONE }, { 0x6ad, PAL_NONE } }, // 69
{ { 0x6b4, PAL_NONE }, { 0x6de, PAL_NONE }, { 0x6bb, PAL_NONE }, { 0x6b4, PAL_NONE } }, // 70
{ { 0x6b4, PAL_NONE }, { 0x6ad, PAL_NONE }, { 0x6c2, PAL_NONE }, { 0x6de, PAL_NONE } }, // 71
{ { 0x6bb, PAL_NONE }, { 0x6d0, PAL_NONE }, { 0x6de, PAL_NONE }, { 0x6c2, PAL_NONE } }, // 72
{ { 0x6bb, PAL_NONE }, { 0x6b4, PAL_NONE }, { 0x6bb, PAL_NONE }, { 0x6d7, PAL_NONE } }, // 73
{ { 0x6bb, PAL_NONE }, { 0x6de, PAL_NONE }, { 0x6bb, PAL_NONE }, { 0x6b4, PAL_NONE } }, // 74
{ { 0x6bb, PAL_NONE }, { 0x6c9, PAL_NONE }, { 0x6c2, PAL_NONE }, { 0x6de, PAL_NONE } }, // 75
{ { 0x6de, PAL_NONE }, { 0x6d7, PAL_NONE }, { 0x6de, PAL_NONE }, { 0x6c2, PAL_NONE } }, // 76
{ { 0x6de, PAL_NONE }, { 0x6bb, PAL_NONE }, { 0x6de, PAL_NONE }, { 0x6d0, PAL_NONE } }, // 77
{ { 0x6de, PAL_NONE }, { 0x6de, PAL_NONE }, { 0x6bb, PAL_NONE }, { 0x6b4, PAL_NONE } }, // 78
{ { 0x6de, PAL_NONE }, { 0x6c9, PAL_NONE }, { 0x6c2, PAL_NONE }, { 0x6de, PAL_NONE } }, // 79
{ { 0x72b, PAL_NONE }, { 0x732, PAL_NONE }, { 0x72b, PAL_NONE }, { 0x739, PAL_NONE } }, // 80
{ { 0x72b, PAL_NONE }, { 0x747, PAL_NONE }, { 0x755, PAL_NONE }, { 0x72b, PAL_NONE } }, // 81
{ { 0x72b, PAL_NONE }, { 0x72b, PAL_NONE }, { 0x76a, PAL_NONE }, { 0x786, PAL_NONE } }, // 82
{ { 0x72b, PAL_NONE }, { 0x74e, PAL_NONE }, { 0x72b, PAL_NONE }, { 0x72b, PAL_NONE } }, // 83
{ { 0x732, PAL_NONE }, { 0x732, PAL_NONE }, { 0x72b, PAL_NONE }, { 0x739, PAL_NONE } }, // 84
{ { 0x732, PAL_NONE }, { 0x747, PAL_NONE }, { 0x732, PAL_NONE }, { 0x732, PAL_NONE } }, // 85
{ { 0x732, PAL_NONE }, { 0x732, PAL_NONE }, { 0x755, PAL_NONE }, { 0x794, PAL_NONE } }, // 86
{ { 0x732, PAL_NONE }, { 0x74e, PAL_NONE }, { 0x732, PAL_NONE }, { 0x78d, PAL_NONE } }, // 87
{ { 0x747, PAL_NONE }, { 0x732, PAL_NONE }, { 0x747, PAL_NONE }, { 0x740, PAL_NONE } }, // 88
{ { 0x747, PAL_NONE }, { 0x747, PAL_NONE }, { 0x732, PAL_NONE }, { 0x76a, PAL_NONE } }, // 89
{ { 0x747, PAL_NONE }, { 0x72b, PAL_NONE }, { 0x755, PAL_NONE }, { 0x747, PAL_NONE } }, // 90
{ { 0x747, PAL_NONE }, { 0x786, PAL_NONE }, { 0x732, PAL_NONE }, { 0x747, PAL_NONE } }, // 91
{ { 0x74e, PAL_NONE }, { 0x74e, PAL_NONE }, { 0x72b, PAL_NONE }, { 0x794, PAL_NONE } }, // 92
{ { 0x74e, PAL_NONE }, { 0x755, PAL_NONE }, { 0x732, PAL_NONE }, { 0x74e, PAL_NONE } }, // 93
{ { 0x74e, PAL_NONE }, { 0x72b, PAL_NONE }, { 0x786, PAL_NONE }, { 0x747, PAL_NONE } }, // 94
{ { 0x74e, PAL_NONE }, { 0x74e, PAL_NONE }, { 0x732, PAL_NONE }, { 0x794, PAL_NONE } }, // 95
{ { 0x76a, PAL_NONE }, { 0x76a, PAL_NONE }, { 0x74e, PAL_NONE }, { 0x74e, PAL_NONE } }, // 96
{ { 0x76a, PAL_NONE }, { 0x794, PAL_NONE }, { 0x732, PAL_NONE }, { 0x76a, PAL_NONE } }, // 97
{ { 0x76a, PAL_NONE }, { 0x732, PAL_NONE }, { 0x786, PAL_NONE }, { 0x76a, PAL_NONE } }, // 98
{ { 0x76a, PAL_NONE }, { 0x786, PAL_NONE }, { 0x732, PAL_NONE }, { 0x78d, PAL_NONE } }, // 99
{ { 0x78d, PAL_NONE }, { 0x78d, PAL_NONE }, { 0x74e, PAL_NONE }, { 0x794, PAL_NONE } }, // 100
{ { 0x78d, PAL_NONE }, { 0x732, PAL_NONE }, { 0x739, PAL_NONE }, { 0x747, PAL_NONE } }, // 101
{ { 0x78d, PAL_NONE }, { 0x732, PAL_NONE }, { 0x786, PAL_NONE }, { 0x76a, PAL_NONE } }, // 102
{ { 0x78d, PAL_NONE }, { 0x786, PAL_NONE }, { 0x78d, PAL_NONE }, { 0x794, PAL_NONE } }, // 103
{ { 0x786, PAL_NONE }, { 0x786, PAL_NONE }, { 0x740, PAL_NONE }, { 0x732, PAL_NONE } }, // 104
{ { 0x786, PAL_NONE }, { 0x786, PAL_NONE }, { 0x72b, PAL_NONE }, { 0x732, PAL_NONE } }, // 105
{ { 0x786, PAL_NONE }, { 0x732, PAL_NONE }, { 0x786, PAL_NONE }, { 0x786, PAL_NONE } }, // 106
{ { 0x786, PAL_NONE }, { 0x786, PAL_NONE }, { 0x78d, PAL_NONE }, { 0x794, PAL_NONE } }, // 107
{ { 0x778, PAL_NONE }, { 0x778, PAL_NONE }, { 0x77f, PAL_NONE }, { 0x778, PAL_NONE } }, // 108
{ { 0x778, PAL_NONE }, { 0x77f, PAL_NONE }, { 0x778, PAL_NONE }, { 0x77f, PAL_NONE } }, // 109
{ { 0x778, PAL_NONE }, { 0x77f, PAL_NONE }, { 0x77f, PAL_NONE }, { 0x778, PAL_NONE } }, // 110
{ { 0x778, PAL_NONE }, { 0x778, PAL_NONE }, { 0x778, PAL_NONE }, { 0x77f, PAL_NONE } }, // 111
{ { 0x75c, PAL_NONE }, { 0x71d, PAL_NONE }, { 0x75c, PAL_NONE }, { 0x724, PAL_NONE } }, // 112
{ { 0x75c, PAL_NONE }, { 0x72b, PAL_NONE }, { 0x75c, PAL_NONE }, { 0x763, PAL_NONE } }, // 113
{ { 0x75c, PAL_NONE }, { 0x75c, PAL_NONE }, { 0x771, PAL_NONE }, { 0x71d, PAL_NONE } }, // 114
{ { 0x75c, PAL_NONE }, { 0x771, PAL_NONE }, { 0x75c, PAL_NONE }, { 0x75c, PAL_NONE } }, // 115
{ { 0x771, PAL_NONE }, { 0x771, PAL_NONE }, { 0x75c, PAL_NONE }, { 0x71d, PAL_NONE } }, // 116
{ { 0x771, PAL_NONE }, { 0x747, PAL_NONE }, { 0x75c, PAL_NONE }, { 0x771, PAL_NONE } }, // 117
{ { 0x771, PAL_NONE }, { 0x75c, PAL_NONE }, { 0x771, PAL_NONE }, { 0x724, PAL_NONE } }, // 118
{ { 0x771, PAL_NONE }, { 0x771, PAL_NONE }, { 0x75c, PAL_NONE }, { 0x763, PAL_NONE } }, // 119
{ { 0x71d, PAL_NONE }, { 0x71d, PAL_NONE }, { 0x771, PAL_NONE }, { 0x724, PAL_NONE } }, // 120
{ { 0x71d, PAL_NONE }, { 0x74e, PAL_NONE }, { 0x763, PAL_NONE }, { 0x71d, PAL_NONE } }, // 121
{ { 0x71d, PAL_NONE }, { 0x724, PAL_NONE }, { 0x794, PAL_NONE }, { 0x71d, PAL_NONE } }, // 122
{ { 0x71d, PAL_NONE }, { 0x71d, PAL_NONE }, { 0x75c, PAL_NONE }, { 0x78d, PAL_NONE } }, // 123
{ { 0x794, PAL_NONE }, { 0x724, PAL_NONE }, { 0x75c, PAL_NONE }, { 0x794, PAL_NONE } }, // 124
{ { 0x794, PAL_NONE }, { 0x794, PAL_NONE }, { 0x75c, PAL_NONE }, { 0x71d, PAL_NONE } }, // 125
{ { 0x794, PAL_NONE }, { 0x724, PAL_NONE }, { 0x794, PAL_NONE }, { 0x71d, PAL_NONE } }, // 126
{ { 0x794, PAL_NONE }, { 0x794, PAL_NONE }, { 0x771, PAL_NONE }, { 0x78d, PAL_NONE } }, // 127
{ { 0x79b, PALETTE_TO_RED }, { 0x79b, PALETTE_TO_PALE_GREEN }, { 0x79b, PALETTE_TO_MAUVE }, { 0x79b, PALETTE_TO_PURPLE } }, // 128
{ { 0x79b, PAL_NONE }, { 0x79b, PALETTE_TO_GREY }, { 0x79b, PALETTE_TO_GREEN }, { 0x79b, PALETTE_TO_WHITE } }, // 129
{ { 0x79b, PALETTE_TO_GREEN }, { 0x79b, PALETTE_TO_ORANGE }, { 0x79b, PALETTE_TO_PINK }, { 0x79b, PAL_NONE } }, // 130
{ { 0x79b, PALETTE_TO_YELLOW }, { 0x79b, PALETTE_TO_RED }, { 0x79b, PALETTE_TO_CREAM }, { 0x79b, PALETTE_TO_RED } }, // 131
{ { 0x7a2, PAL_NONE }, { 0x7a2, PALETTE_TO_RED }, { 0x7a2, PALETTE_TO_PINK }, { 0x7a2, PALETTE_TO_PURPLE } }, // 132
{ { 0x7a2, PALETTE_TO_MAUVE }, { 0x7a2, PALETTE_TO_GREEN }, { 0x7a2, PALETTE_TO_PINK }, { 0x7a2, PALETTE_TO_GREY } }, // 133
{ { 0x7a2, PALETTE_TO_RED }, { 0x7a2, PALETTE_TO_PALE_GREEN }, { 0x7a2, PALETTE_TO_YELLOW }, { 0x7a2, PALETTE_TO_WHITE } }, // 134
{ { 0x7a2, PALETTE_TO_ORANGE }, { 0x7a2, PALETTE_TO_MAUVE }, { 0x7a2, PALETTE_TO_CREAM }, { 0x7a2, PALETTE_TO_BROWN } }, // 135
{ { 0x7a9, PALETTE_TO_RED }, { 0x7a9, PAL_NONE }, { 0x7a9, PALETTE_TO_ORANGE }, { 0x7a9, PALETTE_TO_GREY } }, // 136
{ { 0x7a9, PALETTE_TO_ORANGE }, { 0x7a9, PALETTE_TO_GREEN }, { 0x7a9, PALETTE_TO_PALE_GREEN }, { 0x7a9, PALETTE_TO_MAUVE } }, // 137
{ { 0x7a9, PALETTE_TO_PINK }, { 0x7a9, PALETTE_TO_RED }, { 0x7a9, PALETTE_TO_GREEN }, { 0x7a9, PALETTE_TO_BROWN } }, // 138
{ { 0x7a9, PALETTE_TO_GREEN }, { 0x7a9, PAL_NONE }, { 0x7a9, PALETTE_TO_RED }, { 0x7a9, PALETTE_TO_CREAM } }, // 139
{ { 0x7b0, PAL_NONE }, { 0x7b0, PAL_NONE }, { 0x7b0, PAL_NONE }, { 0x7b0, PAL_NONE } }, // 140
{ { 0x7b0, PAL_NONE }, { 0x7b0, PAL_NONE }, { 0x7b0, PAL_NONE }, { 0x7b0, PAL_NONE } }, // 141
{ { 0x7b0, PAL_NONE }, { 0x7b0, PAL_NONE }, { 0x7b0, PAL_NONE }, { 0x7b0, PAL_NONE } }, // 142
{ { 0x7b0, PAL_NONE }, { 0x7b0, PAL_NONE }, { 0x7b0, PAL_NONE }, { 0x7b0, PAL_NONE } }, // 143
{ { 0x7b7, PALETTE_TO_PINK }, { 0x7b7, PALETTE_TO_RED }, { 0x7b7, PALETTE_TO_ORANGE }, { 0x7b7, PALETTE_TO_MAUVE } }, // 144
{ { 0x7b7, PALETTE_TO_RED }, { 0x7b7, PAL_NONE }, { 0x7b7, PALETTE_TO_GREY }, { 0x7b7, PALETTE_TO_CREAM } }, // 145
{ { 0x7b7, PALETTE_TO_GREEN }, { 0x7b7, PALETTE_TO_BROWN }, { 0x7b7, PALETTE_TO_PINK }, { 0x7b7, PALETTE_TO_RED } }, // 146
{ { 0x7b7, PAL_NONE }, { 0x7b7, PALETTE_TO_PALE_GREEN }, { 0x7b7, PALETTE_TO_ORANGE }, { 0x7b7, PALETTE_TO_RED } }, // 147
{ { 0x7be, PALETTE_TO_RED }, { 0x7be, PALETTE_TO_PINK }, { 0x7be, PALETTE_TO_GREEN }, { 0x7be, PAL_NONE } }, // 148
{ { 0x7be, PALETTE_TO_GREEN }, { 0x7be, PALETTE_TO_BROWN }, { 0x7be, PALETTE_TO_PURPLE }, { 0x7be, PALETTE_TO_GREY } }, // 149
{ { 0x7be, PALETTE_TO_MAUVE }, { 0x7be, PALETTE_TO_CREAM }, { 0x7be, PALETTE_TO_ORANGE }, { 0x7be, PALETTE_TO_RED } }, // 150
{ { 0x7be, PAL_NONE }, { 0x7be, PALETTE_TO_RED }, { 0x7be, PALETTE_TO_PALE_GREEN }, { 0x7be, PALETTE_TO_PINK } }, // 151
{ { 0x7c5, PALETTE_TO_YELLOW }, { 0x7c5, PALETTE_TO_RED }, { 0x7c5, PALETTE_TO_WHITE }, { 0x7c5, PALETTE_TO_CREAM } }, // 152
{ { 0x7c5, PALETTE_TO_RED }, { 0x7c5, PALETTE_TO_PALE_GREEN }, { 0x7c5, PALETTE_TO_BROWN }, { 0x7c5, PALETTE_TO_YELLOW } }, // 153
{ { 0x7c5, PAL_NONE }, { 0x7c5, PALETTE_TO_PURPLE }, { 0x7c5, PALETTE_TO_GREEN }, { 0x7c5, PALETTE_TO_YELLOW } }, // 154
{ { 0x7c5, PALETTE_TO_PINK }, { 0x7c5, PALETTE_TO_CREAM }, { 0x7c5, PAL_NONE }, { 0x7c5, PALETTE_TO_GREY } }, // 155
{ { 0x7cc, PALETTE_TO_YELLOW }, { 0x7cc, PALETTE_TO_GREY }, { 0x7cc, PALETTE_TO_PURPLE }, { 0x7cc, PALETTE_TO_BROWN } }, // 156
{ { 0x7cc, PALETTE_TO_GREEN }, { 0x7cc, PAL_NONE }, { 0x7cc, PALETTE_TO_CREAM }, { 0x7cc, PALETTE_TO_WHITE } }, // 157
{ { 0x7cc, PALETTE_TO_RED }, { 0x7cc, PALETTE_TO_PALE_GREEN }, { 0x7cc, PALETTE_TO_MAUVE }, { 0x7cc, PALETTE_TO_RED } }, // 158
{ { 0x7cc, PALETTE_TO_PINK }, { 0x7cc, PALETTE_TO_ORANGE }, { 0x7cc, PALETTE_TO_GREEN }, { 0x7cc, PALETTE_TO_YELLOW } }, // 159
{ { 0x7d3, PALETTE_TO_RED }, { 0x7d3, PALETTE_TO_PINK }, { 0x7d3, PALETTE_TO_BROWN }, { 0x7d3, PALETTE_TO_WHITE } }, // 160
{ { 0x7d3, PALETTE_TO_GREEN }, { 0x7d3, PALETTE_TO_ORANGE }, { 0x7d3, PALETTE_TO_GREY }, { 0x7d3, PALETTE_TO_MAUVE } }, // 161
{ { 0x7d3, PALETTE_TO_YELLOW }, { 0x7d3, PALETTE_TO_PALE_GREEN }, { 0x7d3, PAL_NONE }, { 0x7d3, PALETTE_TO_CREAM } }, // 162
{ { 0x7d3, PALETTE_TO_GREY }, { 0x7d3, PALETTE_TO_RED }, { 0x7d3, PALETTE_TO_WHITE }, { 0x7d3, PAL_NONE } }, // 163
/* the extra things follow */
{ { 0x6e5, PAL_NONE }, { 0x6e5, PAL_NONE }, { 0x6e5, PAL_NONE }, { 0x6e5, PAL_NONE } }, // 0
{ { 0x6e5, PAL_NONE }, { 0x6e5, PAL_NONE }, { 0x6fa, PAL_NONE }, { 0x708, PAL_NONE } }, // 1
{ { 0x6e5, PAL_NONE }, { 0x70f, PAL_NONE }, { 0x6e5, PAL_NONE }, { 0x6e5, PAL_NONE } }, // 2
{ { 0x6e5, PAL_NONE }, { 0x708, PAL_NONE }, { 0x701, PAL_NONE }, { 0x6e5, PAL_NONE } }, // 3
{ { 0x708, PAL_NONE }, { 0x708, PAL_NONE }, { 0x708, PAL_NONE }, { 0x6e5, PAL_NONE } }, // 4
{ { 0x708, PAL_NONE }, { 0x6e5, PAL_NONE }, { 0x70f, PAL_NONE }, { 0x701, PAL_NONE } }, // 5
{ { 0x708, PAL_NONE }, { 0x70f, PAL_NONE }, { 0x708, PAL_NONE }, { 0x6fa, PAL_NONE } }, // 6
{ { 0x708, PAL_NONE }, { 0x708, PAL_NONE }, { 0x708, PAL_NONE }, { 0x6e5, PAL_NONE } }, // 7
{ { 0x70f, PAL_NONE }, { 0x70f, PAL_NONE }, { 0x70f, PAL_NONE }, { 0x70f, PAL_NONE } }, // 8
{ { 0x70f, PAL_NONE }, { 0x70f, PAL_NONE }, { 0x6e5, PAL_NONE }, { 0x6e5, PAL_NONE } }, // 9
{ { 0x70f, PAL_NONE }, { 0x708, PAL_NONE }, { 0x70f, PAL_NONE }, { 0x6e5, PAL_NONE } }, // 10
{ { 0x70f, PAL_NONE }, { 0x70f, PAL_NONE }, { 0x708, PAL_NONE }, { 0x6e5, PAL_NONE } }, // 11
{ { 0x6fa, PAL_NONE }, { 0x708, PAL_NONE }, { 0x701, PAL_NONE }, { 0x6fa, PAL_NONE } }, // 12
{ { 0x6fa, PAL_NONE }, { 0x701, PAL_NONE }, { 0x6fa, PAL_NONE }, { 0x6e5, PAL_NONE } }, // 13
{ { 0x6fa, PAL_NONE }, { 0x6fa, PAL_NONE }, { 0x6fa, PAL_NONE }, { 0x6e5, PAL_NONE } }, // 14
{ { 0x6fa, PAL_NONE }, { 0x6fa, PAL_NONE }, { 0x6fa, PAL_NONE }, { 0x701, PAL_NONE } }, // 15
{ { 0x701, PAL_NONE }, { 0x708, PAL_NONE }, { 0x6ec, PAL_NONE }, { 0x6fa, PAL_NONE } }, // 16
{ { 0x701, PAL_NONE }, { 0x6f3, PAL_NONE }, { 0x716, PAL_NONE }, { 0x70f, PAL_NONE } }, // 17
{ { 0x701, PAL_NONE }, { 0x6fa, PAL_NONE }, { 0x6f3, PAL_NONE }, { 0x6ec, PAL_NONE } }, // 18
{ { 0x701, PAL_NONE }, { 0x6f3, PAL_NONE }, { 0x6fa, PAL_NONE }, { 0x716, PAL_NONE } }, // 19
{ { 0x6ec, PAL_NONE }, { 0x6ec, PAL_NONE }, { 0x716, PAL_NONE }, { 0x701, PAL_NONE } }, // 20
{ { 0x6ec, PAL_NONE }, { 0x6f3, PAL_NONE }, { 0x6f3, PAL_NONE }, { 0x6e5, PAL_NONE } }, // 21
{ { 0x6ec, PAL_NONE }, { 0x716, PAL_NONE }, { 0x6f3, PAL_NONE }, { 0x6ec, PAL_NONE } }, // 22
{ { 0x6ec, PAL_NONE }, { 0x6e5, PAL_NONE }, { 0x6fa, PAL_NONE }, { 0x716, PAL_NONE } }, // 23
{ { 0x6f3, PAL_NONE }, { 0x708, PAL_NONE }, { 0x716, PAL_NONE }, { 0x6fa, PAL_NONE } }, // 24
{ { 0x6f3, PAL_NONE }, { 0x6ec, PAL_NONE }, { 0x6f3, PAL_NONE }, { 0x70f, PAL_NONE } }, // 25
{ { 0x6f3, PAL_NONE }, { 0x716, PAL_NONE }, { 0x6f3, PAL_NONE }, { 0x6ec, PAL_NONE } }, // 26
{ { 0x6f3, PAL_NONE }, { 0x701, PAL_NONE }, { 0x6fa, PAL_NONE }, { 0x716, PAL_NONE } }, // 27
{ { 0x716, PAL_NONE }, { 0x70f, PAL_NONE }, { 0x716, PAL_NONE }, { 0x6fa, PAL_NONE } }, // 28
{ { 0x716, PAL_NONE }, { 0x6f3, PAL_NONE }, { 0x716, PAL_NONE }, { 0x708, PAL_NONE } }, // 29
{ { 0x716, PAL_NONE }, { 0x716, PAL_NONE }, { 0x6f3, PAL_NONE }, { 0x6ec, PAL_NONE } }, // 30
{ { 0x716, PAL_NONE }, { 0x701, PAL_NONE }, { 0x6fa, PAL_NONE }, { 0x716, PAL_NONE } }, // 31
};
#endif /* TREE_LAND_H */
| 21,073
|
C++
|
.h
| 222
| 92.954955
| 139
| 0.531977
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,629
|
road_land.h
|
EnergeticBark_OpenTTD-3DS/src/table/road_land.h
|
/* $Id$ */
/** @file road_land.h Sprite constructs for road depots. */
#define TILE_SEQ_LINE(img, pal, dx, dy, sx, sy) { dx, dy, 0, sx, sy, 20, {img, pal} },
#define TILE_SEQ_END() { 0, 0, 0, 0, 0, 0, {0, 0} }
static const DrawTileSeqStruct _road_depot_NE[] = {
TILE_SEQ_LINE(0x584 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 15, 16, 1)
TILE_SEQ_END()
};
static const DrawTileSeqStruct _road_depot_SE[] = {
TILE_SEQ_LINE(0x580 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 1, 16)
TILE_SEQ_LINE(0x581 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 15, 0, 1, 16)
TILE_SEQ_END()
};
static const DrawTileSeqStruct _road_depot_SW[] = {
TILE_SEQ_LINE(0x582 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 1)
TILE_SEQ_LINE(0x583 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 15, 16, 1)
TILE_SEQ_END()
};
static const DrawTileSeqStruct _road_depot_NW[] = {
TILE_SEQ_LINE(0x585 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 15, 0, 1, 16)
TILE_SEQ_END()
};
static const DrawTileSprites _road_depot[] = {
{ {0xA4A, PAL_NONE}, _road_depot_NE },
{ {0xA4A, PAL_NONE}, _road_depot_SE },
{ {0xA4A, PAL_NONE}, _road_depot_SW },
{ {0xA4A, PAL_NONE}, _road_depot_NW }
};
static const DrawTileSeqStruct _tram_depot_NE[] = {
TILE_SEQ_LINE((SPR_TRAMWAY_BASE + 0x35) | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 15, 16, 1)
TILE_SEQ_END()
};
static const DrawTileSeqStruct _tram_depot_SE[] = {
TILE_SEQ_LINE((SPR_TRAMWAY_BASE + 0x31) | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 1, 16)
TILE_SEQ_LINE((SPR_TRAMWAY_BASE + 0x32) | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 15, 0, 1, 16)
TILE_SEQ_END()
};
static const DrawTileSeqStruct _tram_depot_SW[] = {
TILE_SEQ_LINE((SPR_TRAMWAY_BASE + 0x33) | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 1)
TILE_SEQ_LINE((SPR_TRAMWAY_BASE + 0x34) | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 15, 16, 1)
TILE_SEQ_END()
};
static const DrawTileSeqStruct _tram_depot_NW[] = {
TILE_SEQ_LINE((SPR_TRAMWAY_BASE + 0x36) | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 15, 0, 1, 16)
TILE_SEQ_END()
};
static const DrawTileSprites _tram_depot[] = {
{ {0xA4A, PAL_NONE}, _tram_depot_NE },
{ {0xA4A, PAL_NONE}, _tram_depot_SE },
{ {0xA4A, PAL_NONE}, _tram_depot_SW },
{ {0xA4A, PAL_NONE}, _tram_depot_NW }
};
#undef TILE_SEQ_LINE
#undef TILE_SEQ_END
static const SpriteID _road_tile_sprites_1[16] = {
0, 0x546, 0x545, 0x53B, 0x544, 0x534, 0x53E, 0x539,
0x543, 0x53C, 0x535, 0x538, 0x53D, 0x537, 0x53A, 0x536
};
static const SpriteID _road_frontwire_sprites_1[16] = {
0, 0x54, 0x55, 0x5B, 0x54, 0x54, 0x5E, 0x5A, 0x55, 0x5C, 0x55, 0x58, 0x5D, 0x57, 0x59, 0x56
};
static const SpriteID _road_backpole_sprites_1[16] = {
0, 0x38, 0x39, 0x40, 0x38, 0x38, 0x43, 0x3E, 0x39, 0x41, 0x39, 0x3C, 0x42, 0x3B, 0x3D, 0x3A
};
#define MAKELINE(a, b, c) { a, b, c },
#define ENDLINE { 0, 0, 0 }
static const DrawRoadTileStruct _roadside_nothing[] = {
ENDLINE
};
static const DrawRoadTileStruct _road_display_datas2_3[] = {
MAKELINE(0x57f, 1, 8)
ENDLINE
};
static const DrawRoadTileStruct _road_display_datas2_5[] = {
MAKELINE(0x57f, 1, 8)
MAKELINE(0x57e, 14, 8)
ENDLINE
};
static const DrawRoadTileStruct _road_display_datas2_6[] = {
MAKELINE(0x57e, 8, 1)
ENDLINE
};
static const DrawRoadTileStruct _road_display_datas2_7[] = {
MAKELINE(0x57f, 1, 8)
ENDLINE
};
static const DrawRoadTileStruct _road_display_datas2_9[] = {
MAKELINE(0x57f, 8, 14)
ENDLINE
};
static const DrawRoadTileStruct _road_display_datas2_10[] = {
MAKELINE(0x57f, 8, 14)
MAKELINE(0x57e, 8, 1)
ENDLINE
};
static const DrawRoadTileStruct _road_display_datas2_11[] = {
MAKELINE(0x57f, 8, 14)
ENDLINE
};
static const DrawRoadTileStruct _road_display_datas2_12[] = {
MAKELINE(0x57e, 8, 1)
ENDLINE
};
static const DrawRoadTileStruct _road_display_datas2_13[] = {
MAKELINE(0x57e, 14, 8)
ENDLINE
};
static const DrawRoadTileStruct _road_display_datas2_14[] = {
MAKELINE(0x57e, 8, 1)
ENDLINE
};
static const DrawRoadTileStruct _road_display_datas2_19[] = {
MAKELINE(0x1212, 0, 2)
MAKELINE(0x1212, 3, 9)
MAKELINE(0x1212, 10, 12)
ENDLINE
};
static const DrawRoadTileStruct _road_display_datas2_21[] = {
MAKELINE(0x1212, 0, 2)
MAKELINE(0x1212, 0, 10)
MAKELINE(0x1212, 12, 2)
MAKELINE(0x1212, 12, 10)
ENDLINE
};
static const DrawRoadTileStruct _road_display_datas2_22[] = {
MAKELINE(0x1212, 10, 0)
MAKELINE(0x1212, 3, 3)
MAKELINE(0x1212, 0, 10)
ENDLINE
};
static const DrawRoadTileStruct _road_display_datas2_23[] = {
MAKELINE(0x1212, 0, 2)
MAKELINE(0x1212, 0, 10)
ENDLINE
};
static const DrawRoadTileStruct _road_display_datas2_25[] = {
MAKELINE(0x1212, 12, 2)
MAKELINE(0x1212, 9, 9)
MAKELINE(0x1212, 2, 12)
ENDLINE
};
static const DrawRoadTileStruct _road_display_datas2_26[] = {
MAKELINE(0x1212, 2, 0)
MAKELINE(0x1212, 10, 0)
MAKELINE(0x1212, 2, 12)
MAKELINE(0x1212, 10, 12)
ENDLINE
};
static const DrawRoadTileStruct _road_display_datas2_27[] = {
MAKELINE(0x1212, 2, 12)
MAKELINE(0x1212, 10, 12)
ENDLINE
};
static const DrawRoadTileStruct _road_display_datas2_28[] = {
MAKELINE(0x1212, 2, 0)
MAKELINE(0x1212, 9, 3)
MAKELINE(0x1212, 12, 10)
ENDLINE
};
static const DrawRoadTileStruct _road_display_datas2_29[] = {
MAKELINE(0x1212, 12, 2)
MAKELINE(0x1212, 12, 10)
ENDLINE
};
static const DrawRoadTileStruct _road_display_datas2_30[] = {
MAKELINE(0x1212, 2, 0)
MAKELINE(0x1212, 10, 0)
ENDLINE
};
#undef MAKELINE
#undef ENDLINE
static const DrawRoadTileStruct * const _roadside_none[] = {
_roadside_nothing, _roadside_nothing,
_roadside_nothing, _roadside_nothing,
_roadside_nothing, _roadside_nothing,
_roadside_nothing, _roadside_nothing,
_roadside_nothing, _roadside_nothing,
_roadside_nothing, _roadside_nothing,
_roadside_nothing, _roadside_nothing,
_roadside_nothing, _roadside_nothing
};
static const DrawRoadTileStruct * const _roadside_lamps[] = {
_roadside_nothing,
_roadside_nothing,
_roadside_nothing,
_road_display_datas2_3,
_roadside_nothing,
_road_display_datas2_5,
_road_display_datas2_6,
_road_display_datas2_7,
_roadside_nothing,
_road_display_datas2_9,
_road_display_datas2_10,
_road_display_datas2_11,
_road_display_datas2_12,
_road_display_datas2_13,
_road_display_datas2_14,
_roadside_nothing,
};
static const DrawRoadTileStruct * const _roadside_trees[] = {
_roadside_nothing,
_roadside_nothing,
_roadside_nothing,
_road_display_datas2_19,
_roadside_nothing,
_road_display_datas2_21,
_road_display_datas2_22,
_road_display_datas2_23,
_roadside_nothing,
_road_display_datas2_25,
_road_display_datas2_26,
_road_display_datas2_27,
_road_display_datas2_28,
_road_display_datas2_29,
_road_display_datas2_30,
_roadside_nothing,
};
static const DrawRoadTileStruct * const * const _road_display_table[] = {
_roadside_none,
_roadside_none,
_roadside_none,
_roadside_lamps,
_roadside_none,
_roadside_trees,
};
| 6,925
|
C++
|
.h
| 225
| 28.955556
| 98
| 0.709992
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,630
|
industry_land.h
|
EnergeticBark_OpenTTD-3DS/src/table/industry_land.h
|
/* $Id$ */
/** @file industry_land.h Information about the behaviour of the default industry tiles. */
/**
* This is used to gather some data about animation
* drawing in the industry code
* Image_1-2-3 are in fact only offset in the sprites
* used by the industry.
* To specify an invalid one, either 255 or 0 is used,
* depending of the industry.
*/
struct DrawIndustryAnimationStruct {
int x; ///< coordinate x of the first image offset
byte image_1; ///< image offset 1
byte image_2; ///< image offset 2
byte image_3; ///< image offset 3
};
/**
* Simple structure gathering x,y coordinates for
* industries animations
*/
struct DrawIndustryCoordinates {
byte x; ///< coordinate x of the pair
byte y; ///< coordinate y of the pair
};
/**
* Macro to ease the declaration of the array
* @param s1 sprite ID of ground sprite
* @param p1 palette ID of ground sprite
* @param s2 sprite ID of building sprite
* @param p2 palette ID of building sprite
* @param sx coordinate x of the sprite
* @param sy coordinate y of the sprite
* @param w width of the sprite
* @param h height of the sprite
* @param dz virtual height of the sprite
* @param p this allows to specify a special drawing procedure.
* @see DrawBuildingsTileStruct */
#define M(s1, p1, s2, p2, sx, sy, w, h, dz, p) { { s1, p1 }, { s2, p2 }, sx, sy, w, h, dz, p }
/** Structure for industry tiles drawing */
static const DrawBuildingsTileStruct _industry_draw_tile_data[NEW_INDUSTRYTILEOFFSET * 4] = {
M( 0xf54, PAL_NONE, 0x7db, PAL_NONE, 7, 0, 9, 9, 10, 0),
M( 0xf54, PAL_NONE, 0x7dc, PAL_NONE, 7, 0, 9, 9, 30, 0),
M( 0xf54, PAL_NONE, 0x7dd, PAL_NONE, 7, 0, 9, 9, 30, 0),
M( 0x7e6, PAL_NONE, 0x7dd, PAL_NONE, 7, 0, 9, 9, 30, 0),
M( 0x7e6, PAL_NONE, 0x7dd, PAL_NONE, 7, 0, 9, 9, 30, 0),
M( 0x7e6, PAL_NONE, 0x7de, PAL_NONE, 7, 0, 9, 9, 30, 0),
M( 0x7e6, PAL_NONE, 0x7df, PAL_NONE, 7, 0, 9, 9, 30, 0),
M( 0x7e6, PAL_NONE, 0x7df, PAL_NONE, 7, 0, 9, 9, 30, 0),
M( 0xf54, PAL_NONE, 0x7e0, PAL_NONE, 1, 2, 15, 9, 30, 0),
M( 0xf54, PAL_NONE, 0x7e1, PAL_NONE, 1, 2, 15, 9, 30, 0),
M( 0xf54, PAL_NONE, 0x7e2, PAL_NONE, 1, 2, 15, 9, 30, 0),
M( 0x7e6, PAL_NONE, 0x7e2, PAL_NONE, 1, 2, 15, 9, 30, 0),
M( 0xf54, PAL_NONE, 0x7e3, PAL_NONE, 4, 4, 9, 9, 30, 0),
M( 0xf54, PAL_NONE, 0x7e4, PAL_NONE, 4, 4, 9, 9, 30, 0),
M( 0xf54, PAL_NONE, 0x7e5, PAL_NONE, 4, 4, 9, 9, 30, 0),
M( 0x7e6, PAL_NONE, 0x7e5, PAL_NONE, 4, 4, 9, 9, 30, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0x7e9, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0x7e7, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0x7e8, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0xf54, PAL_NONE, 0x7fd, PAL_NONE, 1, 1, 14, 14, 5, 0),
M( 0xf54, PAL_NONE, 0x7fe, PAL_NONE, 1, 1, 14, 14, 44, 0),
M( 0xf54, PAL_NONE, 0x7ff, PAL_NONE, 1, 1, 14, 14, 44, 0),
M( 0xf54, PAL_NONE, 0x7ff, PAL_NONE, 1, 1, 14, 14, 44, 0),
M( 0xf54, PAL_NONE, 0x800, PAL_NONE, 0, 2, 16, 12, 6, 0),
M( 0xf54, PAL_NONE, 0x801, PAL_NONE, 0, 2, 16, 12, 47, 0),
M( 0xf54, PAL_NONE, 0x802, PAL_NONE, 0, 2, 16, 12, 50, 0),
M( 0xf54, PAL_NONE, 0x802, PAL_NONE, 0, 2, 16, 12, 50, 0),
M( 0xf54, PAL_NONE, 0x803, PAL_NONE, 1, 0, 14, 15, 5, 0),
M( 0xf54, PAL_NONE, 0x804, PAL_NONE, 1, 0, 14, 15, 19, 0),
M( 0xf54, PAL_NONE, 0x805, PAL_NONE, 1, 0, 14, 15, 21, 0),
M( 0xf54, PAL_NONE, 0x805, PAL_NONE, 1, 0, 14, 15, 21, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0xf54, PAL_NONE, 0x806, PAL_NONE, 1, 2, 14, 11, 32, 5),
M( 0xf54, PAL_NONE, 0x80d, PAL_NONE, 1, 0, 13, 16, 8, 0),
M( 0xf54, PAL_NONE, 0x80e, PAL_NONE, 1, 0, 13, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x80f, PAL_NONE, 1, 0, 13, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x80f, PAL_NONE, 1, 0, 13, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x810, PAL_NONE, 0, 1, 16, 14, 8, 0),
M( 0xf54, PAL_NONE, 0x811, PAL_NONE, 0, 1, 16, 14, 21, 0),
M( 0xf54, PAL_NONE, 0x812, PAL_NONE, 0, 1, 16, 14, 21, 0),
M( 0xf54, PAL_NONE, 0x812, PAL_NONE, 0, 1, 16, 14, 21, 0),
M( 0xf54, PAL_NONE, 0x813, PAL_NONE, 1, 1, 14, 14, 12, 0),
M( 0xf54, PAL_NONE, 0x814, PAL_NONE, 1, 1, 14, 14, 15, 0),
M( 0xf54, PAL_NONE, 0x815, PAL_NONE, 1, 1, 14, 14, 22, 0),
M( 0xf54, PAL_NONE, 0x815, PAL_NONE, 1, 1, 14, 14, 22, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0xf54, PAL_NONE, 0x816, PAL_NONE, 0, 0, 16, 15, 20, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0xf54, PAL_NONE, 0x817, PAL_NONE, 0, 1, 16, 13, 19, 0),
M( 0x81d, PAL_NONE, 0x818, PAL_NONE, 0, 0, 16, 16, 10, 0),
M( 0x81d, PAL_NONE, 0x819, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0x81d, PAL_NONE, 0x81a, PAL_NONE, 0, 0, 16, 16, 31, 0),
M( 0x81d, PAL_NONE, 0x81b, PAL_NONE, 0, 0, 16, 16, 39, 0),
M( 0x81d, PAL_NONE, 0x81c, PAL_NONE, 0, 0, 16, 16, 7, 0),
M( 0x81d, PAL_NONE, 0x81c, PAL_NONE, 0, 0, 16, 16, 7, 0),
M( 0x81d, PAL_NONE, 0x81c, PAL_NONE, 0, 0, 16, 16, 7, 0),
M( 0x81d, PAL_NONE, 0x81c, PAL_NONE, 0, 0, 16, 16, 7, 0),
M( 0xf54, PAL_NONE, 0x81e | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 1, 1, 14, 14, 4, 0),
M( 0xf54, PAL_NONE, 0x81f | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 1, 1, 14, 14, 24, 0),
M( 0xf54, PAL_NONE, 0x820 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 1, 1, 14, 14, 27, 0),
M( 0x58c, PAL_NONE, 0x820 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 1, 1, 14, 14, 27, 0),
M( 0xf54, PAL_NONE, 0x821 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 3, 3, 10, 9, 3, 0),
M( 0xf54, PAL_NONE, 0x822 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 3, 3, 10, 9, 63, 0),
M( 0xf54, PAL_NONE, 0x823 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 3, 3, 10, 9, 62, 0),
M( 0x58c, PAL_NONE, 0x823 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 3, 3, 10, 9, 62, 0),
M( 0xf54, PAL_NONE, 0x824 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 4, 4, 7, 7, 3, 0),
M( 0xf54, PAL_NONE, 0x825 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 4, 4, 7, 7, 72, 0),
M( 0xf54, PAL_NONE, 0x825 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 4, 4, 7, 7, 72, 0),
M( 0x58c, PAL_NONE, 0x826 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 4, 4, 7, 7, 80, 0),
M( 0xf54, PAL_NONE, 0x827 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 2, 0, 12, 16, 51, 0),
M( 0xf54, PAL_NONE, 0x828 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 2, 0, 12, 16, 51, 0),
M( 0xf54, PAL_NONE, 0x829 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 2, 0, 12, 16, 51, 0),
M( 0x58c, PAL_NONE, 0x829 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 2, 0, 12, 16, 51, 0),
M( 0xf54, PAL_NONE, 0x82a | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 26, 0),
M( 0xf54, PAL_NONE, 0x82b | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 44, 0),
M( 0xf54, PAL_NONE, 0x82c | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 46, 0),
M( 0x58c, PAL_NONE, 0x82c | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 46, 0),
M( 0xf54, PAL_NONE, 0x82d, PAL_NONE, 3, 1, 10, 13, 2, 0),
M( 0xf54, PAL_NONE, 0x82e, PAL_NONE, 3, 1, 10, 13, 11, 0),
M( 0xf54, PAL_NONE, 0x82f, PAL_NONE, 3, 1, 10, 13, 11, 0),
M( 0x58c, PAL_NONE, 0x82f, PAL_NONE, 3, 1, 10, 13, 11, 0),
M( 0xfdd, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0xfdd, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0xfdd, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0xfdd, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0xfdd, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0xfdd, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0xfdd, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0xfdd, PAL_NONE, 0x833, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xfdd, PAL_NONE, 0x837, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xfdd, PAL_NONE, 0x834, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xfdd, PAL_NONE, 0x834, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xfdd, PAL_NONE, 0x830, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xfdd, PAL_NONE, 0x838, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xfdd, PAL_NONE, 0x835, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xfdd, PAL_NONE, 0x835, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xfdd, PAL_NONE, 0x831, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xfdd, PAL_NONE, 0x839, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xfdd, PAL_NONE, 0x836, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xfdd, PAL_NONE, 0x836, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xfdd, PAL_NONE, 0x832, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0x87d, PAL_NONE, 0x87e, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x87d, PAL_NONE, 0x87e, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x87d, PAL_NONE, 0x87e, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x87d, PAL_NONE, 0x87e, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x87d, PAL_NONE, 0x87f, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x87d, PAL_NONE, 0x880, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x87d, PAL_NONE, 0x881, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x87d, PAL_NONE, 0x882, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x87d, PAL_NONE, 0x883, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x87d, PAL_NONE, 0x883, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x87d, PAL_NONE, 0x882, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x87d, PAL_NONE, 0x881, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x87d, PAL_NONE, 0x880, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x87d, PAL_NONE, 0x87f, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x87d, PAL_NONE, 0x87e, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x83a, PAL_NONE, 0x83c | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 18, 0),
M( 0x83a, PAL_NONE, 0x83c | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 18, 0),
M( 0x83a, PAL_NONE, 0x83c | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 18, 0),
M( 0x83a, PAL_NONE, 0x83c | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 18, 0),
M( 0x83b, PAL_NONE, 0x83d | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 18, 0),
M( 0x83b, PAL_NONE, 0x83d | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 18, 0),
M( 0x83b, PAL_NONE, 0x83d | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 18, 0),
M( 0x83b, PAL_NONE, 0x83d | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 18, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0x83e, PAL_NONE, 0x83f | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 18, 0),
M( 0x83e, PAL_NONE, 0x83f | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 18, 0),
M( 0x83e, PAL_NONE, 0x83f | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 18, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0x840, PAL_NONE, 0x841, PAL_NONE, 0, 0, 16, 16, 18, 0),
M( 0x840, PAL_NONE, 0x841, PAL_NONE, 0, 0, 16, 16, 18, 0),
M( 0x840, PAL_NONE, 0x841, PAL_NONE, 0, 0, 16, 16, 18, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0x842, PAL_NONE, 0x843, PAL_NONE, 0, 0, 16, 16, 30, 0),
M( 0x842, PAL_NONE, 0x843, PAL_NONE, 0, 0, 16, 16, 30, 0),
M( 0x842, PAL_NONE, 0x843, PAL_NONE, 0, 0, 16, 16, 30, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0x844, PAL_NONE, 0x845, PAL_NONE, 0, 0, 16, 16, 16, 0),
M( 0x844, PAL_NONE, 0x845, PAL_NONE, 0, 0, 16, 16, 16, 0),
M( 0x844, PAL_NONE, 0x845, PAL_NONE, 0, 0, 16, 16, 16, 0),
M( 0x7e6, PAL_NONE, 0x869, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x86d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x86d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x862 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x866 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x86a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x86e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x86e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x863 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x867 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x86b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x86f, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x86f, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x864 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x868 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x86c, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x870, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x870, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x865 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0xf54, PAL_NONE, 0x871 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x875 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x875 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x879 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x872 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x876 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x876 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x87a | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x873 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x877 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x877 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x87b | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x874 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x878 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x878 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x87c | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x7ea, PAL_NONE, 3, 2, 8, 8, 18, 0),
M( 0xf54, PAL_NONE, 0x7eb, PAL_NONE, 3, 2, 8, 8, 37, 0),
M( 0xf54, PAL_NONE, 0x7ec, PAL_NONE, 3, 2, 8, 8, 49, 0),
M( 0x7e6, PAL_NONE, 0x7ec, PAL_NONE, 3, 2, 8, 8, 49, 0),
M( 0x7e6, PAL_NONE, 0x7ec, PAL_NONE, 3, 2, 8, 8, 49, 0),
M( 0x7e6, PAL_NONE, 0x7ed, PAL_NONE, 3, 2, 8, 8, 49, 0),
M( 0x7e6, PAL_NONE, 0x7ee, PAL_NONE, 3, 2, 8, 8, 49, 0),
M( 0x7e6, PAL_NONE, 0x7ee, PAL_NONE, 3, 2, 8, 8, 49, 0),
M( 0xf54, PAL_NONE, 0x7ef, PAL_NONE, 3, 2, 10, 7, 20, 0),
M( 0xf54, PAL_NONE, 0x7f0, PAL_NONE, 3, 2, 10, 7, 40, 0),
M( 0xf54, PAL_NONE, 0x7f1, PAL_NONE, 3, 2, 10, 7, 40, 0),
M( 0x7e6, PAL_NONE, 0x7f1, PAL_NONE, 3, 2, 10, 7, 40, 0),
M( 0xf54, PAL_NONE, 0x7f2, PAL_NONE, 4, 4, 7, 8, 22, 0),
M( 0xf54, PAL_NONE, 0x7f3, PAL_NONE, 4, 4, 7, 8, 22, 0),
M( 0xf54, PAL_NONE, 0x7f4, PAL_NONE, 4, 4, 7, 8, 22, 0),
M( 0x7e6, PAL_NONE, 0x7f4, PAL_NONE, 4, 4, 7, 8, 22, 0),
M( 0xf54, PAL_NONE, 0x7f5, PAL_NONE, 2, 1, 11, 13, 12, 0),
M( 0xf54, PAL_NONE, 0x7f6, PAL_NONE, 2, 1, 11, 13, 12, 0),
M( 0xf54, PAL_NONE, 0x7f7, PAL_NONE, 2, 1, 11, 13, 12, 0),
M( 0x7e6, PAL_NONE, 0x7f7, PAL_NONE, 2, 1, 11, 13, 12, 0),
M( 0x7e6, PAL_NONE, 0x85c, PAL_NONE, 0, 0, 1, 1, 1, 0),
M( 0x851, PAL_NONE, 0x852, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x851, PAL_NONE, 0x852, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x846 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x847 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x7e6, PAL_NONE, 0x85d, PAL_NONE, 0, 0, 1, 1, 1, 0),
M( 0x853, PAL_NONE, 0x854, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x853, PAL_NONE, 0x854, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x848 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x849 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x7e6, PAL_NONE, 0x85e, PAL_NONE, 0, 0, 1, 1, 1, 0),
M( 0x855, PAL_NONE, 0x856, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x855, PAL_NONE, 0x856, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x84a | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x84b | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x7e6, PAL_NONE, 0x85f, PAL_NONE, 0, 0, 1, 1, 1, 0),
M( 0x857, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0x857, PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0x84c | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0x7e6, PAL_NONE, 0x860, PAL_NONE, 0, 0, 1, 1, 1, 0),
M( 0x858, PAL_NONE, 0x859, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x858, PAL_NONE, 0x859, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x84d | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x84e | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x7e6, PAL_NONE, 0x861, PAL_NONE, 0, 0, 1, 1, 1, 0),
M( 0x85a, PAL_NONE, 0x85b, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x85a, PAL_NONE, 0x85b, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x84f | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x850 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x7e6, PAL_NONE, 0x884, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x884, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x884, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x886, PAL_NONE, 0x884, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x885, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x885, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x885, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x887, PAL_NONE, 0x885, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x88c | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x88d | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x88d | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x88e | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x88f | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x890 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x890 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x891 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x892 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x893 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x893 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x894 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x895 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x896 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x896 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x897 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x898, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x899, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x899, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x89a, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8a6, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x89b, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x89c, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x89c, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x89d, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x89e, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x89f, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8a0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8a0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x89f, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8a0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8a1, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8a2, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8a3, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8a4, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8a2, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8a3, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8a5, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8a7, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8b7, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8b7, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8c7, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8a8, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8b8, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8b8, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8c8, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8a9, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8b9, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8b9, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8c9, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8aa, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8ba, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8ba, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8ca, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8ab, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8bb, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8bb, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8cb, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8ac, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8bc, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8bc, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8cc, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8ad, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8bd, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8bd, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8cd, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8ae, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8be, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8be, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8ce, PAL_NONE, 0x8d7, PAL_NONE, 0, 0, 16, 16, 35, 0),
M( 0x8af, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8bf, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8bf, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8cf, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8b0, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8c0, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8c0, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8d0, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8b1, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8c1, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8c1, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8d1, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8b2, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8c2, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8c2, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8d2, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8b3, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8c3, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8c3, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8d3, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8b4, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8c4, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8c4, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8d4, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8b5, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8c5, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8c5, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8d5, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8b6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8c6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8c6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8d6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8ce, PAL_NONE, 0x8d7, PAL_NONE, 0, 0, 16, 16, 35, 0),
M( 0x8ce, PAL_NONE, 0x8d8, PAL_NONE, 0, 0, 16, 16, 35, 0),
M( 0x8ce, PAL_NONE, 0x8d9, PAL_NONE, 0, 0, 16, 16, 35, 0),
M( 0x8ce, PAL_NONE, 0x8d9, PAL_NONE, 0, 0, 16, 16, 35, 0),
M( 0x7e6, PAL_NONE, 0x88a, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x88a, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x88a, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x888, PAL_NONE, 0x88a, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x88b, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x88b, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x88b, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x889, PAL_NONE, 0x88b, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8da, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8e3, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8e3, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8ec, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8db, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8e4, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8e4, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8ed, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8dc, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8e5, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8e5, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8ee, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8dd, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8e6, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8e6, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8ef, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8de, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8e7, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8e7, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8f0, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8df, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8e8, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8e8, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8f1, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8e0, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8e9, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8e9, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x8f2, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8e1, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8ea, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8ea, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8f3, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8e2, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8eb, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8eb, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8f4, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8f5, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x905, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x905, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x915, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8f6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x906, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x906, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x916, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8f7, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x907, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x907, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x917, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8f8, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x908, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x908, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x918, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8f9, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x909, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x909, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x919, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8fa, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x90a, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x90a, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x91a, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8fb, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x90b, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x90b, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x91b, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8fc, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x90c, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x90c, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x91c, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8fd, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x90d, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x90d, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x91d, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8fe, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x90e, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x90e, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x91e, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x8ff, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x90f, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x90f, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x91f, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x900, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x910, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x910, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x920, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x901, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x911, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x911, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x921, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x902, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x912, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x912, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x922, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x903, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x913, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x913, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x923, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x904, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x914, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x914, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x924, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x925, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x925, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x925, PAL_NONE, 0x926, PAL_NONE, 0, 0, 16, 16, 30, 0),
M( 0x925, PAL_NONE, 0x926, PAL_NONE, 0, 0, 16, 16, 30, 0),
M( 0x925, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x925, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x925, PAL_NONE, 0x927, PAL_NONE, 0, 0, 16, 16, 30, 0),
M( 0x925, PAL_NONE, 0x927, PAL_NONE, 0, 0, 16, 16, 30, 0),
M( 0x11c6, PAL_NONE, 0x92b | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x11c6, PAL_NONE, 0x92c | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x11c6, PAL_NONE, 0x92c | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x11c6, PAL_NONE, 0x92d | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x11c6, PAL_NONE, 0x92e | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x11c6, PAL_NONE, 0x92f | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x11c6, PAL_NONE, 0x92f | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x11c6, PAL_NONE, 0x930 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x11c6, PAL_NONE, 0x928 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x11c6, PAL_NONE, 0x929 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x11c6, PAL_NONE, 0x929 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x11c6, PAL_NONE, 0x92a | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x7e6, PAL_NONE, 0x869, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x86d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x86d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x862 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x866 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x86a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x86e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x86e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x863 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x867 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x86b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x86f, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x86f, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x864 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x868 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x86c, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x870, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x870, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x865 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x0, PAL_NONE, 0, 0, 1, 1, 0, 0),
M( 0x7e6, PAL_NONE, 0x931, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x935, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x935, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x939, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x932, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x936, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x936, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x93a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x933, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x937, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x937, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x93b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x934, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x938, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x938, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x93c, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x81d, PAL_NONE, 0x818, PAL_NONE, 0, 0, 16, 16, 10, 0),
M( 0x81d, PAL_NONE, 0x819, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0x81d, PAL_NONE, 0x81a, PAL_NONE, 0, 0, 16, 16, 31, 0),
M( 0x81d, PAL_NONE, 0x81b, PAL_NONE, 0, 0, 16, 16, 39, 0),
M( 0x81d, PAL_NONE, 0x81c, PAL_NONE, 0, 0, 16, 16, 7, 0),
M( 0x81d, PAL_NONE, 0x81c, PAL_NONE, 0, 0, 16, 16, 7, 0),
M( 0x81d, PAL_NONE, 0x81c, PAL_NONE, 0, 0, 16, 16, 7, 0),
M( 0x81d, PAL_NONE, 0x81c, PAL_NONE, 0, 0, 16, 16, 7, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x1245 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x1248 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x1248 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x124b | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x1247 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x124a | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x124a | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x124d | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x1246 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x1249 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x1249 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x124c | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x81d, PAL_NONE, 0x124e, PAL_NONE, 0, 0, 16, 16, 10, 0),
M( 0x81d, PAL_NONE, 0x124f, PAL_NONE, 0, 0, 16, 16, 10, 0),
M( 0x81d, PAL_NONE, 0x1250, PAL_NONE, 0, 0, 16, 16, 10, 0),
M( 0x81d, PAL_NONE, 0x1251, PAL_NONE, 0, 0, 16, 16, 10, 0),
M( 0x81d, PAL_NONE, 0x1252, PAL_NONE, 0, 0, 16, 16, 10, 0),
M( 0x81d, PAL_NONE, 0x1252, PAL_NONE, 0, 0, 16, 16, 10, 0),
M( 0x81d, PAL_NONE, 0x1252, PAL_NONE, 0, 0, 16, 16, 10, 0),
M( 0x81d, PAL_NONE, 0x1252, PAL_NONE, 0, 0, 16, 16, 10, 0),
M( 0x81d, PAL_NONE, 0x1253, PAL_NONE, 0, 0, 16, 16, 10, 0),
M( 0x81d, PAL_NONE, 0x1254, PAL_NONE, 0, 0, 16, 16, 10, 0),
M( 0x81d, PAL_NONE, 0x1254, PAL_NONE, 0, 0, 16, 16, 10, 0),
M( 0x81d, PAL_NONE, 0x1255, PAL_NONE, 0, 0, 16, 16, 10, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x125b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x125e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x125e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x1261, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x125c, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x125f, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x125f, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x1262, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x125d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x1260, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x1260, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x7e6, PAL_NONE, 0x1263, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x1264, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x1264, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x1268, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x1265, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x1265, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x1269, PAL_NONE, 0, 0, 16, 16, 50, 4),
M( 0x1243, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x1266, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x1266, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x126a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x1267, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x1267, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x126b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x126c, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1271, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1271, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1271, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1271, PAL_NONE, 0x1279, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1272, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1272, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1272, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1272, PAL_NONE, 0x127a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1273, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1273, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1273, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1273, PAL_NONE, 0x127b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1274, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1274, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1274, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1274, PAL_NONE, 0x127c, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1275, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1275, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1275, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1275, PAL_NONE, 0x127d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1276, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1276, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1276, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1276, PAL_NONE, 0x127e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1277, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1277, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1277, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1277, PAL_NONE, 0x127f, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1278, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1278, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1278, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1278, PAL_NONE, 0x1280, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1244, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1244, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1244, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1244, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1244, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1244, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1244, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1244, PAL_NONE, 0x1284 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1244, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1244, PAL_NONE, 0x1283 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1244, PAL_NONE, 0x1283 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1244, PAL_NONE, 0x1286 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1244, PAL_NONE, 0x1281 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1244, PAL_NONE, 0x1282 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1244, PAL_NONE, 0x1282 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1244, PAL_NONE, 0x1285 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x1287, PALETTE_TO_RED, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x1287, PALETTE_TO_RED, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x1287, PALETTE_TO_RED, 0, 0, 16, 16, 50, 0),
M( 0x1244, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1244, PAL_NONE, 0x1288, PALETTE_TO_RED, 0, 0, 16, 16, 50, 0),
M( 0x1244, PAL_NONE, 0x1288, PALETTE_TO_RED, 0, 0, 16, 16, 50, 0),
M( 0x1244, PAL_NONE, 0x1288, PALETTE_TO_RED, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1243, PAL_NONE, 0x1289, PALETTE_TO_RED, 0, 0, 16, 16, 50, 3),
M( 0x1243, PAL_NONE, 0x1289, PALETTE_TO_RED, 0, 0, 16, 16, 50, 3),
M( 0x1243, PAL_NONE, 0x1289, PALETTE_TO_RED, 0, 0, 16, 16, 50, 3),
M( 0x1244, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1244, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1244, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x1244, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf8d, PAL_NONE, 0x129b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf8d, PAL_NONE, 0x129b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf8d, PAL_NONE, 0x129b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf8d, PAL_NONE, 0x129b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf8d, PAL_NONE, 0x129c, PAL_NONE, 0, 0, 16, 16, 50, 2),
M( 0xf8d, PAL_NONE, 0x129c, PAL_NONE, 0, 0, 16, 16, 50, 2),
M( 0xf8d, PAL_NONE, 0x129c, PAL_NONE, 0, 0, 16, 16, 50, 2),
M( 0xf8d, PAL_NONE, 0x129c, PAL_NONE, 0, 0, 16, 16, 50, 2),
M( 0xf8d, PAL_NONE, 0x129d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf8d, PAL_NONE, 0x129d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf8d, PAL_NONE, 0x129d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf8d, PAL_NONE, 0x129d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x12a0 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x12a0 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x12a0 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x12a0 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x12a1 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x12a1 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x12a1 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x12a1 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x12a2 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x12a2 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x12a2 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x12a2 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x12a3 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x12a3 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x12a3 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x12a3 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf8d, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf8d, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf8d, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf8d, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf8d, PAL_NONE, 0x12a4 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf8d, PAL_NONE, 0x12a4 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf8d, PAL_NONE, 0x12a4 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf8d, PAL_NONE, 0x12a4 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf8d, PAL_NONE, 0x12a6 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf8d, PAL_NONE, 0x12a6 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf8d, PAL_NONE, 0x12a6 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf8d, PAL_NONE, 0x12a6 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf8d, PAL_NONE, 0x12a5 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 1),
M( 0xf8d, PAL_NONE, 0x12a5 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 1),
M( 0xf8d, PAL_NONE, 0x12a5 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 1),
M( 0xf8d, PAL_NONE, 0x12a5 | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE, 0, 0, 16, 16, 50, 1),
};
#undef M
/* this is ONLY used for Sugar Mine*/
static const DrawIndustryAnimationStruct _draw_industry_spec1[96] = {
{ 8, 4, 0, 0},
{ 6, 0, 1, 0},
{ 4, 0, 2, 0},
{ 6, 0, 3, 0},
{ 8, 0, 4, 0},
{ 10, 0, 5, 0},
{ 12, 0, 6, 0},
{ 10, 0, 1, 0},
{ 8, 0, 2, 0},
{ 6, 0, 3, 0},
{ 4, 0, 4, 0},
{ 6, 0, 5, 1},
{ 8, 0, 6, 1},
{ 10, 0, 1, 1},
{ 12, 0, 2, 1},
{ 10, 0, 3, 1},
{ 8, 1, 4, 1},
{ 6, 1, 5, 1},
{ 4, 1, 6, 1},
{ 6, 1, 1, 1},
{ 8, 1, 2, 1},
{ 10, 1, 3, 1},
{ 12, 1, 4, 1},
{ 10, 1, 5, 2},
{ 8, 1, 6, 2},
{ 6, 1, 1, 2},
{ 4, 1, 2, 2},
{ 6, 1, 3, 2},
{ 8, 1, 4, 2},
{ 10, 1, 5, 2},
{ 12, 1, 6, 2},
{ 10, 1, 1, 2},
{ 8, 2, 2, 2},
{ 6, 2, 3, 2},
{ 4, 2, 4, 3},
{ 6, 2, 5, 3},
{ 8, 2, 6, 3},
{ 10, 2, 1, 3},
{ 12, 2, 2, 3},
{ 10, 2, 3, 3},
{ 8, 2, 4, 3},
{ 6, 2, 5, 3},
{ 4, 2, 6, 3},
{ 6, 2, 1, 3},
{ 8, 2, 2, 3},
{ 10, 2, 3, 4},
{ 12, 2, 4, 4},
{ 10, 2, 5, 4},
{ 8, 3, 6, 4},
{ 6, 3, 1, 4},
{ 4, 3, 2, 4},
{ 6, 3, 3, 4},
{ 8, 3, 4, 4},
{ 10, 3, 5, 4},
{ 12, 3, 6, 4},
{ 10, 3, 1, 4},
{ 8, 3, 2, 4},
{ 6, 3, 3, 4},
{ 4, 3, 4, 4},
{ 6, 3, 5, 4},
{ 8, 3, 6, 4},
{ 10, 3, 1, 4},
{ 12, 3, 2, 4},
{ 10, 3, 3, 4},
{ 8, 4, 4, 4},
{ 6, 4, 5, 4},
{ 4, 4, 6, 4},
{ 6, 4, 0, 4},
{ 8, 4, 0, 4},
{ 10, 4, 0, 4},
{ 12, 4, 0, 4},
{ 10, 4, 0, 4},
{ 8, 4, 0, 4},
{ 6, 4, 0, 4},
{ 4, 4, 0, 4},
{ 6, 4, 0, 4},
{ 8, 4, 0, 4},
{ 10, 4, 0, 4},
{ 12, 4, 0, 4},
{ 10, 4, 0, 4},
{ 8, 4, 0, 4},
{ 6, 4, 0, 4},
{ 4, 4, 0, 4},
{ 6, 4, 0, 4},
{ 8, 4, 0, 4},
{ 10, 4, 0, 4},
{ 12, 4, 0, 4},
{ 10, 4, 0, 4},
{ 8, 4, 0, 4},
{ 6, 4, 0, 4},
{ 4, 4, 0, 4},
{ 6, 4, 0, 4},
{ 8, 4, 0, 4},
{ 10, 4, 0, 4},
{ 12, 4, 0, 4},
{ 10, 4, 0, 4},
};
/* this is ONLY used for Sugar Mine*/
static const DrawIndustryCoordinates _drawtile_proc1[5] = {
{22, 73},
{17, 70},
{14, 69},
{10, 66},
{ 8, 41},
};
/** this is ONLY used for Toy Factory.
* 255 means no drawing
* @param img1 offset from base sprite SPR_IT_SUGAR_MINE_SIEVE
* @param img2 offset from base sprite SPR_IT_SUGAR_MINE_CLOUDS
* @param img3 offset from base sprite SPR_IT_SUGAR_MINE_PILE
*/
#define MD( img1, img2, img3) { (50 - img1 * 2), img1, img2, img3 }
static const DrawIndustryAnimationStruct _industry_anim_offs_toys[] = {
MD(255, 255, 0),
MD( 0, 255, 0),
MD( 1, 255, 0),
MD( 2, 255, 0),
MD( 3, 255, 0),
MD( 4, 255, 0),
MD( 5, 255, 0),
MD( 6, 255, 0),
MD( 7, 255, 0),
MD( 8, 255, 0),
MD( 9, 255, 0),
MD( 10, 255, 0),
MD( 11, 255, 0),
MD( 12, 255, 0),
MD( 13, 255, 0),
MD( 14, 255, 0),
MD( 15, 255, 0),
MD( 16, 255, 0),
MD( 17, 255, 0),
MD( 18, 255, 0),
MD( 18, 255, 1),
MD( 18, 255, 2),
MD( 18, 255, 4),
MD( 18, 255, 6),
MD( 18, 255, 8),
MD( 18, 255, 11),
MD( 18, 255, 14),
MD( 18, 255, 17),
MD( 18, 255, 20),
MD( 18, 255, 24),
MD(255, 0, 29),
MD(255, 0, 24),
MD(255, 0, 20),
MD(255, 0, 17),
MD(255, 0, 14),
MD(255, 0, 11),
MD(255, 0, 8),
MD(255, 0, 6),
MD(255, 0, 4),
MD(255, 0, 2),
MD(255, 0, 1),
MD(255, 1, 0),
MD(255, 2, 0),
MD(255, 3, 0),
MD(255, 4, 0),
MD(255, 5, 0),
MD(255, 6, 0),
MD(255, 7, 0),
MD(255, 8, 0),
MD(255, 255, 0),
};
#undef MD
/* this is ONLY used for Toffee Quarry*/
static const byte _industry_anim_offs_toffee[] = {
255, 0, 0, 0, 2, 4, 6, 8, 10, 9,
7, 5, 3, 1, 255, 0, 0, 0, 2, 4,
6, 8, 10, 9, 7, 5, 3, 1, 255, 0,
0, 0, 2, 4, 6, 8, 10, 9, 7, 5,
3, 1, 255, 0, 0, 0, 2, 4, 6, 8,
10, 9, 7, 5, 3, 1, 255, 0, 0, 0,
2, 4, 6, 8, 10, 9, 7, 5, 3, 1
};
/* this is ONLY used for the Bubble Generator*/
static const byte _industry_anim_offs_bubbles[] = {
68, 69, 71, 74, 77, 80, 83, 85, 86, 86,
86, 86, 86, 86, 86, 86, 86, 86, 86, 86,
86, 86, 85, 84, 83, 82, 81, 80, 79, 78,
77, 76, 75, 74, 73, 72, 71, 70, 69, 68,
};
/**
* Movement of the sparks , only used for Power Station
*/
static const DrawIndustryCoordinates _coal_plant_sparks[] = {
{11, 23},
{11, 11},
{14, 6},
{13, 3},
{18, 1},
{15, 0},
};
| 61,556
|
C++
|
.h
| 937
| 63.70651
| 135
| 0.48336
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,631
|
track_land.h
|
EnergeticBark_OpenTTD-3DS/src/table/track_land.h
|
/* $Id$ */
/** @file track_land.h Sprites to use and how to display them for train depot/waypoint tiles. */
#define TILE_SEQ_LINE(img, dx, dy, sx, sy) { dx, dy, 0, sx, sy, 23, {img, PAL_NONE} },
#define TILE_SEQ_END() { (byte)0x80, 0, 0, 0, 0, 0, {0, 0} }
static const DrawTileSeqStruct _depot_gfx_NE[] = {
TILE_SEQ_LINE(SPR_RAIL_DEPOT_NE | (1 << PALETTE_MODIFIER_COLOUR), 2, 13, 13, 1)
TILE_SEQ_END()
};
static const DrawTileSeqStruct _depot_gfx_SE[] = {
TILE_SEQ_LINE(SPR_RAIL_DEPOT_SE_1 | (1 << PALETTE_MODIFIER_COLOUR), 2, 2, 1, 13)
TILE_SEQ_LINE(SPR_RAIL_DEPOT_SE_2 | (1 << PALETTE_MODIFIER_COLOUR), 13, 2, 1, 13)
TILE_SEQ_END()
};
static const DrawTileSeqStruct _depot_gfx_SW[] = {
TILE_SEQ_LINE(SPR_RAIL_DEPOT_SW_1 | (1 << PALETTE_MODIFIER_COLOUR), 2, 2, 13, 1)
TILE_SEQ_LINE(SPR_RAIL_DEPOT_SW_2 | (1 << PALETTE_MODIFIER_COLOUR), 2, 13, 13, 1)
TILE_SEQ_END()
};
static const DrawTileSeqStruct _depot_gfx_NW[] = {
TILE_SEQ_LINE(SPR_RAIL_DEPOT_NW | (1 << PALETTE_MODIFIER_COLOUR), 13, 2, 1, 13)
TILE_SEQ_END()
};
static const DrawTileSprites _depot_gfx_table[] = {
{ {SPR_FLAT_GRASS_TILE, PAL_NONE}, _depot_gfx_NE },
{ {SPR_RAIL_TRACK_Y, PAL_NONE}, _depot_gfx_SE },
{ {SPR_RAIL_TRACK_X, PAL_NONE}, _depot_gfx_SW },
{ {SPR_FLAT_GRASS_TILE, PAL_NONE}, _depot_gfx_NW }
};
static const DrawTileSprites _depot_invisible_gfx_table[] = {
{ {SPR_RAIL_TRACK_X, PAL_NONE}, _depot_gfx_NE },
{ {SPR_RAIL_TRACK_Y, PAL_NONE}, _depot_gfx_SE },
{ {SPR_RAIL_TRACK_X, PAL_NONE}, _depot_gfx_SW },
{ {SPR_RAIL_TRACK_Y, PAL_NONE}, _depot_gfx_NW }
};
static const DrawTileSeqStruct _waypoint_gfx_X[] = {
TILE_SEQ_LINE((1 << PALETTE_MODIFIER_COLOUR) | SPR_WAYPOINT_X_1, 0, 0, 16, 5)
TILE_SEQ_LINE((1 << PALETTE_MODIFIER_COLOUR) | SPR_WAYPOINT_X_2, 0, 11, 16, 5)
TILE_SEQ_END()
};
static const DrawTileSeqStruct _waypoint_gfx_Y[] = {
TILE_SEQ_LINE((1 << PALETTE_MODIFIER_COLOUR) | SPR_WAYPOINT_Y_1, 0, 0, 5, 16)
TILE_SEQ_LINE((1 << PALETTE_MODIFIER_COLOUR) | SPR_WAYPOINT_Y_2, 11, 0, 5, 16)
TILE_SEQ_END()
};
static const DrawTileSprites _waypoint_gfx_table[] = {
{ {SPR_RAIL_TRACK_X, PAL_NONE}, _waypoint_gfx_X },
{ {SPR_RAIL_TRACK_Y, PAL_NONE}, _waypoint_gfx_Y }
};
#undef TILE_SEQ_LINE
#undef TILE_SEQ_END
| 2,250
|
C++
|
.h
| 50
| 43.2
| 96
| 0.659195
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,632
|
control_codes.h
|
EnergeticBark_OpenTTD-3DS/src/table/control_codes.h
|
/* $Id$ */
/** @file control_codes.h Control codes that are embedded in the translation strings. */
#ifndef CONTROL_CODES_H
#define CONTROL_CODES_H
/**
* List of string control codes used for string formatting, displaying, and
* by strgen to generate the language files.
*/
enum StringControlCode {
SCC_CONTROL_START = 0xE000,
SCC_CONTROL_END = 0xE1FF,
SCC_SPRITE_START = 0xE200,
SCC_SPRITE_END = SCC_SPRITE_START + 0xFF,
/* Display control codes */
SCC_SETX = SCC_CONTROL_START,
SCC_SETXY,
SCC_TINYFONT, ///< Switch to small font
SCC_BIGFONT, ///< Switch to large font
/* Formatting control codes */
SCC_REVISION,
SCC_STATION_FEATURES,
SCC_INDUSTRY_NAME,
SCC_WAYPOINT_NAME,
SCC_STATION_NAME,
SCC_TOWN_NAME,
SCC_GROUP_NAME,
SCC_VEHICLE_NAME,
SCC_SIGN_NAME,
SCC_COMPANY_NAME,
SCC_COMPANY_NUM,
SCC_PRESIDENT_NAME,
SCC_ENGINE_NAME,
SCC_CURRENCY_COMPACT,
SCC_CURRENCY,
SCC_CARGO,
SCC_CARGO_SHORT,
SCC_POWER,
SCC_VOLUME,
SCC_VOLUME_SHORT,
SCC_WEIGHT,
SCC_WEIGHT_SHORT,
SCC_FORCE,
SCC_VELOCITY,
SCC_DATE_TINY,
SCC_DATE_SHORT,
SCC_DATE_LONG,
SCC_DATE_ISO,
SCC_STRING1,
SCC_STRING2,
SCC_STRING3,
SCC_STRING4,
SCC_STRING5,
SCC_SKIP,
SCC_STRING,
SCC_COMMA,
SCC_NUM,
SCC_HEX,
SCC_BYTES,
SCC_STRING_ID,
SCC_RAW_STRING_POINTER,
SCC_PLURAL_LIST,
SCC_GENDER_LIST,
SCC_GENDER_INDEX,
SCC_ARG_INDEX,
SCC_SETCASE,
SCC_SWITCH_CASE,
/* Colour codes */
SCC_BLUE,
SCC_SILVER,
SCC_GOLD,
SCC_RED,
SCC_PURPLE,
SCC_LTBROWN,
SCC_ORANGE,
SCC_GREEN,
SCC_YELLOW,
SCC_DKGREEN,
SCC_CREAM,
SCC_BROWN,
SCC_WHITE,
SCC_LTBLUE,
SCC_GRAY,
SCC_DKBLUE,
SCC_BLACK,
SCC_PREVIOUS_COLOUR,
/**
* The next variables are part of a NewGRF subsystem for creating text strings.
* It uses a "stack" of bytes and reads from there.
*/
SCC_NEWGRF_FIRST,
SCC_NEWGRF_PRINT_DWORD = SCC_NEWGRF_FIRST, ///< Read 4 bytes from the stack
SCC_NEWGRF_PRINT_SIGNED_WORD, ///< Read 2 bytes from the stack as signed value
SCC_NEWGRF_PRINT_SIGNED_BYTE, ///< Read 1 byte from the stack as signed value
SCC_NEWGRF_PRINT_UNSIGNED_WORD, ///< Read 2 bytes from the stack as unsigned value
SCC_NEWGRF_PRINT_DWORD_CURRENCY, ///< Read 4 bytes from the stack as currency
SCC_NEWGRF_PRINT_STRING_ID, ///< Read 2 bytes from the stack as String ID
SCC_NEWGRF_PRINT_DATE, ///< Read 2 bytes from the stack as base 1920 date
SCC_NEWGRF_PRINT_MONTH_YEAR, ///< Read 2 bytes from the stack as base 1920 date
SCC_NEWGRF_PRINT_WORD_SPEED, ///< Read 2 bytes from the stack as signed speed
SCC_NEWGRF_PRINT_WORD_LITRES, ///< Read 2 bytes from the stack as signed litres
SCC_NEWGRF_PRINT_QWORD_CURRENCY, ///< Read 8 bytes from the stack as currency
SCC_NEWGRF_PRINT_HEX_BYTE, ///< Read 1 byte from the stack and print it as hex
SCC_NEWGRF_PRINT_HEX_WORD, ///< Read 2 bytes from the stack and print it as hex
SCC_NEWGRF_PRINT_HEX_DWORD, ///< Read 4 bytes from the stack and print it as hex
SCC_NEWGRF_PUSH_WORD, ///< Pushes 2 bytes onto the stack
SCC_NEWGRF_UNPRINT, ///< "Unprints" the given number of bytes from the string
SCC_NEWGRF_DISCARD_WORD, ///< Discard the next two bytes
SCC_NEWGRF_ROTATE_TOP_4_WORDS, ///< Rotate the top 4 words of the stack (W4 W1 W2 W3)
SCC_NEWGRF_LAST = SCC_NEWGRF_ROTATE_TOP_4_WORDS,
/* Special printable symbols.
* These are mapped to the original glyphs */
SCC_LESSTHAN = SCC_SPRITE_START + 0x3C,
SCC_GREATERTHAN = SCC_SPRITE_START + 0x3E,
SCC_UPARROW = SCC_SPRITE_START + 0xA0,
SCC_DOWNARROW = SCC_SPRITE_START + 0xAA,
SCC_CHECKMARK = SCC_SPRITE_START + 0xAC,
SCC_CROSS = SCC_SPRITE_START + 0xAD,
SCC_RIGHTARROW = SCC_SPRITE_START + 0xAF,
SCC_TRAIN = SCC_SPRITE_START + 0xB4,
SCC_LORRY = SCC_SPRITE_START + 0xB5,
SCC_BUS = SCC_SPRITE_START + 0xB6,
SCC_PLANE = SCC_SPRITE_START + 0xB7,
SCC_SHIP = SCC_SPRITE_START + 0xB8,
SCC_SUPERSCRIPT_M1 = SCC_SPRITE_START + 0xB9,
SCC_SMALLUPARROW = SCC_SPRITE_START + 0xBC,
SCC_SMALLDOWNARROW = SCC_SPRITE_START + 0xBD,
};
#endif /* CONTROL_CODES_H */
| 4,324
|
C++
|
.h
| 128
| 31.6875
| 101
| 0.67488
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,633
|
train_cmd.h
|
EnergeticBark_OpenTTD-3DS/src/table/train_cmd.h
|
/* $Id$ */
/** @file train_cmd.h Sprites to use for trains. */
static const SpriteID _engine_sprite_base[] = {
0x0B59, 0x0B61, 0x0B69, 0x0BE1, 0x0B71, 0x0B75, 0x0B7D, 0x0B7D,
0x0B85, 0x0B85, 0x0B8D, 0x0B8D, 0x0BC9, 0x0BD1, 0x0BD9, 0x0BE9,
0x0BED, 0x0BED, 0x0BF5, 0x0BF9, 0x0B79, 0x0B9D, 0x0B9D, 0x0B95,
0x0B95, 0x0BA5, 0x0BA9, 0x0BA9, 0x0BC1, 0x0BC5, 0x0BB1, 0x0BB9,
0x0BB9, 0x0AAD, 0x0AB1, 0x0AB5, 0x0AB9, 0x0ABD, 0x0AC1, 0x0AC9,
0x0ACD, 0x0AD5, 0x0AD1, 0x0AD9, 0x0AC5, 0x0AD1, 0x0AD5, 0x0AF9,
0x0AFD, 0x0B05, 0x0AB9, 0x0AC1, 0x0AC9, 0x0AD1, 0x0AD9, 0x0AE1,
0x0AE5, 0x0AE9, 0x0AF1, 0x0AF9, 0x0B0D, 0x0B11, 0x0B15, 0x0B19,
0x0B1D, 0x0B21, 0x0B29, 0x0B2D, 0x0B35, 0x0B31, 0x0B39, 0x0B25,
0x0B31, 0x0B35,
};
/* For how many directions do we have sprites? (8 or 4; if 4, the other 4
* directions are symmetric. */
static const byte _engine_sprite_and[] = {
7, 7, 7, 7, 3, 3, 7, 7,
7, 7, 7, 7, 7, 7, 7, 3,
7, 7, 3, 7, 3, 7, 7, 7,
7, 3, 7, 7, 3, 3, 7, 7,
7, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3,
3, 3, 3, 3, 3, 3, 3, 3,
3, 3,
};
/* Non-zero for multihead trains. */
static const byte _engine_sprite_add[] = {
0, 0, 0, 0, 0, 0, 0, 4,
0, 4, 0, 4, 0, 0, 0, 0,
0, 4, 0, 0, 0, 0, 4, 0,
4, 0, 0, 4, 0, 0, 0, 0,
4, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0,
};
static const byte _wagon_full_adder[] = {
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 44, 0, 0, 0, 0, 24,
24, 24, 24, 0, 0, 32, 32, 0,
4, 4, 4, 4, 4, 4, 4, 0,
0, 4, 4, 4, 0, 44, 0, 0,
0, 0, 24, 24, 24, 24, 0, 0,
32, 32
};
| 1,741
|
C++
|
.h
| 53
| 31.377358
| 73
| 0.557669
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,634
|
palettes.h
|
EnergeticBark_OpenTTD-3DS/src/table/palettes.h
|
/* $Id$ */
/** @file palettes.h The colour translation of the GRF palettes. */
#include "../core/endian_type.hpp"
#if TTD_ENDIAN == TTD_BIG_ENDIAN
#define M(r, g, b) { 0xff, r, g, b }
#else
#define M(r, g, b) { b, g, r, 0xff }
#endif /* TTD_ENDIAN == TTD_BIG_ENDIAN */
static const Colour _palettes[][256] = {
/* palette 0 (mixed TTD DOS + TTD Windows palette */
{
{ 0, 0, 0, 0 }, M( 16, 16, 16), M( 32, 32, 32), M( 48, 48, 48),
M( 65, 64, 65), M( 82, 80, 82), M( 98, 101, 98), M(115, 117, 115),
M(131, 133, 131), M(148, 149, 148), M(168, 168, 168), M(184, 184, 184),
M(200, 200, 200), M(216, 216, 216), M(232, 232, 232), M(252, 252, 252),
M( 52, 60, 72), M( 68, 76, 92), M( 88, 96, 112), M(108, 116, 132),
M(132, 140, 152), M(156, 160, 172), M(176, 184, 196), M(204, 208, 220),
M( 48, 44, 4), M( 64, 60, 12), M( 80, 76, 20), M( 96, 92, 28),
M(120, 120, 64), M(148, 148, 100), M(176, 176, 132), M(204, 204, 168),
M( 72, 44, 4), M( 88, 60, 20), M(104, 80, 44), M(124, 104, 72),
M(152, 132, 92), M(184, 160, 120), M(212, 188, 148), M(244, 220, 176),
M( 64, 0, 4), M( 88, 4, 16), M(112, 16, 32), M(136, 32, 52),
M(160, 56, 76), M(188, 84, 108), M(204, 104, 124), M(220, 132, 144),
M(236, 156, 164), M(252, 188, 192), M(252, 212, 0), M(252, 232, 60),
M(252, 248, 128), M( 76, 40, 0), M( 96, 60, 8), M(116, 88, 28),
M(136, 116, 56), M(156, 136, 80), M(176, 156, 108), M(196, 180, 136),
M( 68, 24, 0), M( 96, 44, 4), M(128, 68, 8), M(156, 96, 16),
M(184, 120, 24), M(212, 156, 32), M(232, 184, 16), M(252, 212, 0),
M(252, 248, 128), M(252, 252, 192), M( 32, 4, 0), M( 64, 20, 8),
M( 84, 28, 16), M(108, 44, 28), M(128, 56, 40), M(148, 72, 56),
M(168, 92, 76), M(184, 108, 88), M(196, 128, 108), M(212, 148, 128),
M( 8, 52, 0), M( 16, 64, 0), M( 32, 80, 4), M( 48, 96, 4),
M( 64, 112, 12), M( 84, 132, 20), M(104, 148, 28), M(128, 168, 44),
M( 28, 52, 24), M( 44, 68, 32), M( 60, 88, 48), M( 80, 104, 60),
M(104, 124, 76), M(128, 148, 92), M(152, 176, 108), M(180, 204, 124),
M( 16, 52, 24), M( 32, 72, 44), M( 56, 96, 72), M( 76, 116, 88),
M( 96, 136, 108), M(120, 164, 136), M(152, 192, 168), M(184, 220, 200),
M( 32, 24, 0), M( 56, 28, 0), M( 72, 40, 0), M( 88, 52, 12),
M(104, 64, 24), M(124, 84, 44), M(140, 108, 64), M(160, 128, 88),
M( 76, 40, 16), M( 96, 52, 24), M(116, 68, 40), M(136, 84, 56),
M(164, 96, 64), M(184, 112, 80), M(204, 128, 96), M(212, 148, 112),
M(224, 168, 128), M(236, 188, 148), M( 80, 28, 4), M(100, 40, 20),
M(120, 56, 40), M(140, 76, 64), M(160, 100, 96), M(184, 136, 136),
M( 36, 40, 68), M( 48, 52, 84), M( 64, 64, 100), M( 80, 80, 116),
M(100, 100, 136), M(132, 132, 164), M(172, 172, 192), M(212, 212, 224),
M( 40, 20, 112), M( 64, 44, 144), M( 88, 64, 172), M(104, 76, 196),
M(120, 88, 224), M(140, 104, 252), M(160, 136, 252), M(188, 168, 252),
M( 0, 24, 108), M( 0, 36, 132), M( 0, 52, 160), M( 0, 72, 184),
M( 0, 96, 212), M( 24, 120, 220), M( 56, 144, 232), M( 88, 168, 240),
M(128, 196, 252), M(188, 224, 252), M( 16, 64, 96), M( 24, 80, 108),
M( 40, 96, 120), M( 52, 112, 132), M( 80, 140, 160), M(116, 172, 192),
M(156, 204, 220), M(204, 240, 252), M(172, 52, 52), M(212, 52, 52),
M(252, 52, 52), M(252, 100, 88), M(252, 144, 124), M(252, 184, 160),
M(252, 216, 200), M(252, 244, 236), M( 72, 20, 112), M( 92, 44, 140),
M(112, 68, 168), M(140, 100, 196), M(168, 136, 224), M(204, 180, 252),
M(204, 180, 252), M(232, 208, 252), M( 60, 0, 0), M( 92, 0, 0),
M(128, 0, 0), M(160, 0, 0), M(196, 0, 0), M(224, 0, 0),
M(252, 0, 0), M(252, 80, 0), M(252, 108, 0), M(252, 136, 0),
M(252, 164, 0), M(252, 192, 0), M(252, 220, 0), M(252, 252, 0),
M(204, 136, 8), M(228, 144, 4), M(252, 156, 0), M(252, 176, 48),
M(252, 196, 100), M(252, 216, 152), M( 8, 24, 88), M( 12, 36, 104),
M( 20, 52, 124), M( 28, 68, 140), M( 40, 92, 164), M( 56, 120, 188),
M( 72, 152, 216), M(100, 172, 224), M( 92, 156, 52), M(108, 176, 64),
M(124, 200, 76), M(144, 224, 92), M(224, 244, 252), M(204, 240, 252),
M(180, 220, 236), M(132, 188, 216), M( 88, 152, 172), M( 16, 16, 16),
M( 32, 32, 32), M( 8, 92, 104), M( 16, 100, 112), M( 24, 108, 120),
M( 32, 116, 128), M( 44, 124, 140), M( 92, 164, 184), M(116, 180, 196),
M(148, 200, 216), M(180, 220, 232), M(216, 244, 252), M( 0, 0, 0),
M( 0, 0, 0), M( 0, 0, 0), M( 0, 0, 0), M( 0, 0, 0),
M(252, 60, 0), M(252, 80, 0), M(252, 104, 0), M(252, 128, 0),
M(252, 148, 0), M(252, 172, 0), M(252, 196, 0), M(252, 0, 0),
M(252, 0, 0), M( 0, 0, 0), M( 0, 0, 0), M( 0, 0, 0),
M(252, 228, 0), M(148, 148, 148), M( 16, 101, 115), M( 24, 109, 123),
M( 32, 117, 131), M( 41, 125, 139), M( 90, 165, 189), M(115, 182, 197),
M(148, 202, 222), M(180, 222, 238), M(222, 246, 255), M(252, 252, 252)
},
/* palette 1 (TTD Windows) */
{
{ 0, 0, 0, 0 }, M(212, 0, 212), M(212, 0, 212), M(212, 0, 212),
M(212, 0, 212), M(212, 0, 212), M(212, 0, 212), M(212, 0, 212),
M(212, 0, 212), M(212, 0, 212), M(168, 168, 168), M(184, 184, 184),
M(200, 200, 200), M(216, 216, 216), M(232, 232, 232), M(252, 252, 252),
M( 52, 60, 72), M( 68, 76, 92), M( 88, 96, 112), M(108, 116, 132),
M(132, 140, 152), M(156, 160, 172), M(176, 184, 196), M(204, 208, 220),
M( 48, 44, 4), M( 64, 60, 12), M( 80, 76, 20), M( 96, 92, 28),
M(120, 120, 64), M(148, 148, 100), M(176, 176, 132), M(204, 204, 168),
M(100, 100, 100), M(116, 116, 116), M(104, 80, 44), M(124, 104, 72),
M(152, 132, 92), M(184, 160, 120), M(212, 188, 148), M(244, 220, 176),
M(132, 132, 132), M( 88, 4, 16), M(112, 16, 32), M(136, 32, 52),
M(160, 56, 76), M(188, 84, 108), M(204, 104, 124), M(220, 132, 144),
M(236, 156, 164), M(252, 188, 192), M(252, 212, 0), M(252, 232, 60),
M(252, 248, 128), M( 76, 40, 0), M( 96, 60, 8), M(116, 88, 28),
M(136, 116, 56), M(156, 136, 80), M(176, 156, 108), M(196, 180, 136),
M( 68, 24, 0), M( 96, 44, 4), M(128, 68, 8), M(156, 96, 16),
M(184, 120, 24), M(212, 156, 32), M(232, 184, 16), M(252, 212, 0),
M(252, 248, 128), M(252, 252, 192), M( 32, 4, 0), M( 64, 20, 8),
M( 84, 28, 16), M(108, 44, 28), M(128, 56, 40), M(148, 72, 56),
M(168, 92, 76), M(184, 108, 88), M(196, 128, 108), M(212, 148, 128),
M( 8, 52, 0), M( 16, 64, 0), M( 32, 80, 4), M( 48, 96, 4),
M( 64, 112, 12), M( 84, 132, 20), M(104, 148, 28), M(128, 168, 44),
M( 64, 64, 64), M( 44, 68, 32), M( 60, 88, 48), M( 80, 104, 60),
M(104, 124, 76), M(128, 148, 92), M(152, 176, 108), M(180, 204, 124),
M( 16, 52, 24), M( 32, 72, 44), M( 56, 96, 72), M( 76, 116, 88),
M( 96, 136, 108), M(120, 164, 136), M(152, 192, 168), M(184, 220, 200),
M( 32, 24, 0), M( 56, 28, 0), M( 80, 80, 80), M( 88, 52, 12),
M(104, 64, 24), M(124, 84, 44), M(140, 108, 64), M(160, 128, 88),
M( 76, 40, 16), M( 96, 52, 24), M(116, 68, 40), M(136, 84, 56),
M(164, 96, 64), M(184, 112, 80), M(204, 128, 96), M(212, 148, 112),
M(224, 168, 128), M(236, 188, 148), M( 80, 28, 4), M(100, 40, 20),
M(120, 56, 40), M(140, 76, 64), M(160, 100, 96), M(184, 136, 136),
M( 36, 40, 68), M( 48, 52, 84), M( 64, 64, 100), M( 80, 80, 116),
M(100, 100, 136), M(132, 132, 164), M(172, 172, 192), M(212, 212, 224),
M( 48, 48, 48), M( 64, 44, 144), M( 88, 64, 172), M(104, 76, 196),
M(120, 88, 224), M(140, 104, 252), M(160, 136, 252), M(188, 168, 252),
M( 0, 24, 108), M( 0, 36, 132), M( 0, 52, 160), M( 0, 72, 184),
M( 0, 96, 212), M( 24, 120, 220), M( 56, 144, 232), M( 88, 168, 240),
M(128, 196, 252), M(188, 224, 252), M( 16, 64, 96), M( 24, 80, 108),
M( 40, 96, 120), M( 52, 112, 132), M( 80, 140, 160), M(116, 172, 192),
M(156, 204, 220), M(204, 240, 252), M(172, 52, 52), M(212, 52, 52),
M(252, 52, 52), M(252, 100, 88), M(252, 144, 124), M(252, 184, 160),
M(252, 216, 200), M(252, 244, 236), M( 72, 20, 112), M( 92, 44, 140),
M(112, 68, 168), M(140, 100, 196), M(168, 136, 224), M(204, 180, 252),
M(204, 180, 252), M(232, 208, 252), M( 60, 0, 0), M( 92, 0, 0),
M(128, 0, 0), M(160, 0, 0), M(196, 0, 0), M(224, 0, 0),
M(252, 0, 0), M(252, 80, 0), M(252, 108, 0), M(252, 136, 0),
M(252, 164, 0), M(252, 192, 0), M(252, 220, 0), M(252, 252, 0),
M(204, 136, 8), M(228, 144, 4), M(252, 156, 0), M(252, 176, 48),
M(252, 196, 100), M(252, 216, 152), M( 8, 24, 88), M( 12, 36, 104),
M( 20, 52, 124), M( 28, 68, 140), M( 40, 92, 164), M( 56, 120, 188),
M( 72, 152, 216), M(100, 172, 224), M( 92, 156, 52), M(108, 176, 64),
M(124, 200, 76), M(144, 224, 92), M(224, 244, 252), M(204, 240, 252),
M(180, 220, 236), M(132, 188, 216), M( 88, 152, 172), M( 16, 16, 16),
M( 32, 32, 32), M( 8, 92, 104), M( 16, 100, 112), M( 24, 108, 120),
M( 32, 116, 128), M( 44, 124, 140), M( 92, 164, 184), M(116, 180, 196),
M(148, 200, 216), M(180, 220, 232), M(216, 244, 252), M( 0, 0, 0),
M( 0, 0, 0), M( 0, 0, 0), M( 0, 0, 0), M( 0, 0, 0),
M(252, 60, 0), M(252, 80, 0), M(252, 104, 0), M(252, 128, 0),
M(252, 148, 0), M(252, 172, 0), M(252, 196, 0), M(252, 0, 0),
M(252, 0, 0), M( 0, 0, 0), M( 0, 0, 0), M( 0, 0, 0),
M(252, 228, 0), M(148, 148, 148), M(212, 0, 212), M(212, 0, 212),
M(212, 0, 212), M(212, 0, 212), M(212, 0, 212), M(212, 0, 212),
M(212, 0, 212), M(212, 0, 212), M(212, 0, 212), M(252, 252, 252)
}
};
#define GET_PALETTE(x) _palettes[x]
struct ExtraPaletteValues {
Colour dark_water[15]; ///< dark blue water
Colour dark_water_TOY[15]; ///< dark blue water Toyland
Colour lighthouse[12]; ///< lighthouse & stadium
Colour oil_ref[21]; ///< oil refinery
Colour fizzy_drink[15]; ///< fizzy drinks
Colour glitter_water[45]; ///< glittery water
Colour glitter_water_TOY[45]; ///< glittery water Toyland
};
static const ExtraPaletteValues _extra_palette_values = {
/* dark blue water */
{ M( 32, 68, 112), M( 36, 72, 116), M( 40, 76, 120), M( 44, 80, 124),
M( 48, 84, 128) },
/* dark blue water Toyland */
{ M( 28, 108, 124), M( 32, 112, 128), M( 36, 116, 132), M( 40, 120, 136),
M( 44, 124, 140) },
/* lighthouse & stadium */
{ M(240, 208, 0), M( 0, 0, 0), M( 0, 0, 0), M( 0, 0, 0) },
/* oil refinery */
{ M(252, 60, 0), M(252, 84, 0), M(252, 108, 0), M(252, 124, 0),
M(252, 148, 0), M(252, 172, 0), M(252, 196, 0) },
/* fizzy drinks */
{ M( 76, 24, 8), M(108, 44, 24), M(144, 72, 52), M(176, 108, 84),
M(212, 148, 128) },
/* glittery water */
{ M(216, 244, 252), M(172, 208, 224), M(132, 172, 196), M(100, 132, 168),
M( 72, 100, 144), M( 72, 100, 144), M( 72, 100, 144), M( 72, 100, 144),
M( 72, 100, 144), M( 72, 100, 144), M( 72, 100, 144), M( 72, 100, 144),
M(100, 132, 168), M(132, 172, 196), M(172, 208, 224) },
/* glittery water Toyland */
{ M(216, 244, 252), M(180, 220, 232), M(148, 200, 216), M(116, 180, 196),
M( 92, 164, 184), M( 92, 164, 184), M( 92, 164, 184), M( 92, 164, 184),
M( 92, 164, 184), M( 92, 164, 184), M( 92, 164, 184), M( 92, 164, 184),
M(116, 180, 196), M(148, 200, 216), M(180, 220, 232) }
};
#undef M
/* Colour table for colours in lang files (e.g. {BLACK}) */
struct StringColour {
byte text;
byte shadow;
};
static const StringColour _string_colourmap[][17] = {
{ // DOS palette.
{ 150, 1 }, // TC_BLUE
{ 12, 1 }, // TC_SILVER
{ 189, 1 }, // TC_GOLD
{ 184, 1 }, // TC_RED
{ 174, 1 }, // TC_PURPLE
{ 30, 1 }, // TC_LIGHT_BROWN
{ 195, 1 }, // TC_ORANGE
{ 209, 1 }, // TC_GREEN
{ 68, 1 }, // TC_YELLOW
{ 95, 1 }, // TC_DARK_GREEN
{ 79, 1 }, // TC_CREAM
{ 116, 1 }, // TC_BROWN
{ 15, 1 }, // TC_WHITE
{ 152, 1 }, // TC_LIGHT_BLUE
{ 6, 1 }, // TC_GREY
{ 133, 1 }, // TC_DARK_BLUE
{ 1, 0 }, // TC_BLACK
},
{ // Windows palette.
{ 150, 215 }, // TC_BLUE
{ 12, 215 }, // TC_SILVER
{ 189, 215 }, // TC_GOLD
{ 184, 215 }, // TC_RED
{ 174, 215 }, // TC_PURPLE
{ 30, 215 }, // TC_LIGHT_BROWN
{ 195, 215 }, // TC_ORANGE
{ 209, 215 }, // TC_GREEN
{ 68, 215 }, // TC_YELLOW
{ 95, 215 }, // TC_DARK_GREEN
{ 79, 215 }, // TC_CREAM
{ 116, 215 }, // TC_BROWN
{ 15, 215 }, // TC_WHITE
{ 152, 215 }, // TC_LIGHT_BLUE
{ 32, 215 }, // TC_GREY
{ 133, 215 }, // TC_DARK_BLUE
{ 215, 0 }, // TC_BLACK
}
};
| 12,866
|
C++
|
.h
| 226
| 54.137168
| 76
| 0.472354
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,635
|
town_land.h
|
EnergeticBark_OpenTTD-3DS/src/table/town_land.h
|
/* $Id$ */
/** @file town_land.h Sprites to use and how to display them for town tiles. */
/** Writes the data into the Town Tile Drawing Struct
* @param s1 The first sprite of the building, mostly the ground sprite
* @param p1 The first sprite's palette of the building, mostly the ground sprite
* @param s2 The second sprite of the building.
* @param p2 The second sprite's palette of the building.
* @param sx The x-position of the sprite within the tile
* @param sy the y-position of the sprite within the tile
* @param w the width of the sprite
* @param h the height of the sprite
* @param dz the virtual height of the sprite
* @param p set to 1 if a lift is present ()
* @see DrawBuildingsTileStruct */
#define M(s1, p1, s2, p2, sx, sy, w, h, dz, p) { { s1, p1 }, { s2, p2 }, sx, sy, w, h, dz, p}
/** structure of houses graphics*/
static const DrawBuildingsTileStruct _town_draw_tile_data[] = {
M( 0xf54, PAL_NONE, 0x58d, PAL_NONE, 0, 0, 14, 14, 8, 0),
M( 0xf54, PAL_NONE, 0x58e, PAL_NONE, 0, 0, 14, 14, 60, 0),
M( 0xf54, PAL_NONE, 0x58f, PAL_NONE, 0, 0, 14, 14, 60, 0),
M( 0x590, PAL_NONE, 0x58f, PAL_NONE, 0, 0, 14, 14, 60, 0),
M( 0xf54, PAL_NONE, 0x58d, PAL_NONE, 0, 0, 14, 14, 8, 0),
M( 0xf54, PAL_NONE, 0x58e, PAL_NONE, 0, 0, 14, 14, 60, 0),
M( 0xf54, PAL_NONE, 0x591, PAL_NONE, 0, 0, 14, 14, 60, 0),
M( 0x590, PAL_NONE, 0x591, PAL_NONE, 0, 0, 14, 14, 60, 0),
M( 0xf54, PAL_NONE, 0x58d, PALETTE_TO_STRUCT_WHITE, 0, 0, 14, 14, 8, 0),
M( 0xf54, PAL_NONE, 0x58e, PALETTE_TO_STRUCT_WHITE, 0, 0, 14, 14, 60, 0),
M( 0xf54, PAL_NONE, 0x591, PALETTE_TO_STRUCT_WHITE, 0, 0, 14, 14, 60, 0),
M( 0x590, PAL_NONE, 0x591, PALETTE_TO_STRUCT_WHITE, 0, 0, 14, 14, 60, 0),
M( 0xf54, PAL_NONE, 0x58d, PALETTE_TO_STRUCT_CONCRETE, 0, 0, 14, 14, 8, 0),
M( 0xf54, PAL_NONE, 0x58e, PALETTE_TO_STRUCT_CONCRETE, 0, 0, 14, 14, 60, 0),
M( 0xf54, PAL_NONE, 0x591, PALETTE_TO_STRUCT_CONCRETE, 0, 0, 14, 14, 60, 0),
M( 0x590, PAL_NONE, 0x591, PALETTE_TO_STRUCT_CONCRETE, 0, 0, 14, 14, 60, 0),
M( 0xf54, PAL_NONE, 0x592, PAL_NONE, 0, 0, 14, 16, 11, 0),
M( 0xf54, PAL_NONE, 0x593, PAL_NONE, 0, 0, 14, 16, 33, 0),
M( 0xf54, PAL_NONE, 0x594, PAL_NONE, 0, 0, 14, 16, 33, 0),
M( 0x595, PAL_NONE, 0x594, PAL_NONE, 0, 0, 14, 16, 33, 0),
M( 0xf54, PAL_NONE, 0x592, PALETTE_TO_STRUCT_WHITE, 0, 0, 16, 16, 11, 0),
M( 0xf54, PAL_NONE, 0x593, PALETTE_TO_STRUCT_WHITE, 0, 0, 16, 16, 33, 0),
M( 0xf54, PAL_NONE, 0x594, PALETTE_TO_STRUCT_WHITE, 0, 0, 16, 16, 33, 0),
M( 0x595, PAL_NONE, 0x594, PALETTE_TO_STRUCT_WHITE, 0, 0, 16, 16, 33, 0),
M( 0xf54, PAL_NONE, 0x592, PALETTE_TO_STRUCT_CONCRETE, 0, 0, 16, 16, 11, 0),
M( 0xf54, PAL_NONE, 0x593, PALETTE_TO_STRUCT_CONCRETE, 0, 0, 16, 16, 33, 0),
M( 0xf54, PAL_NONE, 0x594, PALETTE_TO_STRUCT_CONCRETE, 0, 0, 16, 16, 33, 0),
M( 0x595, PAL_NONE, 0x594, PALETTE_TO_STRUCT_CONCRETE, 0, 0, 16, 16, 33, 0),
M( 0xf54, PAL_NONE, 0x592, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 11, 0),
M( 0xf54, PAL_NONE, 0x593, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 33, 0),
M( 0xf54, PAL_NONE, 0x594, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 33, 0),
M( 0x595, PAL_NONE, 0x594, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 33, 0),
M( 0xf54, PAL_NONE, 0x596, PAL_NONE, 0, 0, 12, 12, 6, 0),
M( 0xf54, PAL_NONE, 0x597, PAL_NONE, 0, 0, 12, 12, 17, 0),
M( 0xf54, PAL_NONE, 0x598, PAL_NONE, 0, 0, 12, 12, 17, 0),
M( 0x599, PAL_NONE, 0x598, PAL_NONE, 0, 0, 12, 12, 17, 0),
M( 0xf54, PAL_NONE, 0x596, PAL_NONE, 0, 0, 12, 12, 6, 0),
M( 0xf54, PAL_NONE, 0x597, PAL_NONE, 0, 0, 12, 12, 17, 0),
M( 0xf54, PAL_NONE, 0x598, PAL_NONE, 0, 0, 12, 12, 17, 0),
M( 0x599, PAL_NONE, 0x598, PAL_NONE, 0, 0, 12, 12, 17, 0),
M( 0xf54, PAL_NONE, 0x596, PAL_NONE, 0, 0, 12, 12, 6, 0),
M( 0xf54, PAL_NONE, 0x597, PAL_NONE, 0, 0, 12, 12, 17, 0),
M( 0xf54, PAL_NONE, 0x598, PAL_NONE, 0, 0, 12, 12, 17, 0),
M( 0x599, PAL_NONE, 0x598, PAL_NONE, 0, 0, 12, 12, 17, 0),
M( 0xf54, PAL_NONE, 0x596, PAL_NONE, 0, 0, 12, 12, 6, 0),
M( 0xf54, PAL_NONE, 0x597, PAL_NONE, 0, 0, 12, 12, 17, 0),
M( 0xf54, PAL_NONE, 0x598, PAL_NONE, 0, 0, 12, 12, 17, 0),
M( 0x599, PAL_NONE, 0x598, PAL_NONE, 0, 0, 12, 12, 17, 0),
M( 0xf54, PAL_NONE, 0x59a, PAL_NONE, 0, 0, 14, 16, 16, 0),
M( 0xf54, PAL_NONE, 0x59b, PAL_NONE, 0, 0, 14, 16, 22, 0),
M( 0xf54, PAL_NONE, 0x59c, PAL_NONE, 0, 0, 14, 16, 35, 0),
M( 0x59d, PAL_NONE, 0x59c, PAL_NONE, 0, 0, 14, 16, 35, 0),
M( 0xf54, PAL_NONE, 0x59a, PALETTE_59E, 0, 0, 14, 16, 16, 0),
M( 0xf54, PAL_NONE, 0x59b, PALETTE_59E, 0, 0, 14, 16, 22, 0),
M( 0xf54, PAL_NONE, 0x59c, PALETTE_59E, 0, 0, 14, 16, 35, 0),
M( 0x59d, PAL_NONE, 0x59c, PALETTE_59E, 0, 0, 14, 16, 35, 0),
M( 0xf54, PAL_NONE, 0x59a, PALETTE_59F, 0, 0, 14, 16, 16, 0),
M( 0xf54, PAL_NONE, 0x59b, PALETTE_59F, 0, 0, 14, 16, 22, 0),
M( 0xf54, PAL_NONE, 0x59c, PALETTE_59F, 0, 0, 14, 16, 35, 0),
M( 0x59d, PAL_NONE, 0x59c, PALETTE_59F, 0, 0, 14, 16, 35, 0),
M( 0xf54, PAL_NONE, 0x59a, PALETTE_59F, 0, 0, 14, 16, 16, 0),
M( 0xf54, PAL_NONE, 0x59b, PALETTE_59F, 0, 0, 14, 16, 22, 0),
M( 0xf54, PAL_NONE, 0x59c, PALETTE_59F, 0, 0, 14, 16, 35, 0),
M( 0x59d, PAL_NONE, 0x59c, PALETTE_59F, 0, 0, 14, 16, 35, 0),
M( 0xf54, PAL_NONE, 0x5a0, PAL_NONE, 0, 0, 15, 15, 5, 0),
M( 0xf54, PAL_NONE, 0x5a1, PAL_NONE, 0, 0, 15, 15, 53, 0),
M( 0xf54, PAL_NONE, 0x5a2, PAL_NONE, 0, 0, 15, 15, 53, 0),
M( 0x58c, PAL_NONE, 0x5a2, PAL_NONE, 0, 0, 15, 15, 53, 1),
M( 0xf54, PAL_NONE, 0x5a0, PAL_NONE, 0, 0, 15, 15, 5, 0),
M( 0xf54, PAL_NONE, 0x5a1, PAL_NONE, 0, 0, 15, 15, 53, 0),
M( 0xf54, PAL_NONE, 0x5a2, PAL_NONE, 0, 0, 15, 15, 53, 0),
M( 0x58c, PAL_NONE, 0x5a2, PAL_NONE, 0, 0, 15, 15, 53, 1),
M( 0xf54, PAL_NONE, 0x5a0, PAL_NONE, 0, 0, 15, 15, 5, 0),
M( 0xf54, PAL_NONE, 0x5a1, PAL_NONE, 0, 0, 15, 15, 53, 0),
M( 0xf54, PAL_NONE, 0x5a2, PAL_NONE, 0, 0, 15, 15, 53, 0),
M( 0x58c, PAL_NONE, 0x5a2, PAL_NONE, 0, 0, 15, 15, 53, 1),
M( 0xf54, PAL_NONE, 0x5a0, PAL_NONE, 0, 0, 15, 15, 5, 0),
M( 0xf54, PAL_NONE, 0x5a1, PAL_NONE, 0, 0, 15, 15, 53, 0),
M( 0xf54, PAL_NONE, 0x5a2, PAL_NONE, 0, 0, 15, 15, 53, 0),
M( 0x58c, PAL_NONE, 0x5a2, PAL_NONE, 0, 0, 15, 15, 53, 1),
M( 0xf54, PAL_NONE, 0x5a0, PAL_NONE, 0, 0, 15, 15, 5, 0),
M( 0xf54, PAL_NONE, 0x5a1, PAL_NONE, 0, 0, 15, 15, 53, 0),
M( 0xf54, PAL_NONE, 0x11d9, PAL_NONE, 0, 0, 15, 15, 53, 0),
M( 0x58c, PAL_NONE, 0x11d9, PAL_NONE, 0, 0, 15, 15, 53, 1),
M( 0xf54, PAL_NONE, 0x5a0, PAL_NONE, 0, 0, 15, 15, 5, 0),
M( 0xf54, PAL_NONE, 0x5a1, PAL_NONE, 0, 0, 15, 15, 53, 0),
M( 0xf54, PAL_NONE, 0x11d9, PAL_NONE, 0, 0, 15, 15, 53, 0),
M( 0x58c, PAL_NONE, 0x11d9, PAL_NONE, 0, 0, 15, 15, 53, 1),
M( 0xf54, PAL_NONE, 0x5a0, PAL_NONE, 0, 0, 15, 15, 5, 0),
M( 0xf54, PAL_NONE, 0x5a1, PAL_NONE, 0, 0, 15, 15, 53, 0),
M( 0xf54, PAL_NONE, 0x11d9, PAL_NONE, 0, 0, 15, 15, 53, 0),
M( 0x58c, PAL_NONE, 0x11d9, PAL_NONE, 0, 0, 15, 15, 53, 1),
M( 0xf54, PAL_NONE, 0x5a0, PAL_NONE, 0, 0, 15, 15, 5, 0),
M( 0xf54, PAL_NONE, 0x5a1, PAL_NONE, 0, 0, 15, 15, 53, 0),
M( 0xf54, PAL_NONE, 0x11d9, PAL_NONE, 0, 0, 15, 15, 53, 0),
M( 0x58c, PAL_NONE, 0x11d9, PAL_NONE, 0, 0, 15, 15, 53, 1),
M( 0xf54, PAL_NONE, 0x5a4, PAL_NONE, 0, 0, 16, 16, 16, 0),
M( 0xf54, PAL_NONE, 0x5a5, PAL_NONE, 0, 0, 16, 16, 16, 0),
M( 0xf54, PAL_NONE, 0x5a6, PAL_NONE, 0, 0, 16, 16, 16, 0),
M( 0x5a7, PAL_NONE, 0x5a6, PAL_NONE, 0, 0, 16, 16, 16, 0),
M( 0xf54, PAL_NONE, 0x5a4, PAL_NONE, 0, 0, 16, 16, 16, 0),
M( 0xf54, PAL_NONE, 0x5a5, PAL_NONE, 0, 0, 16, 16, 16, 0),
M( 0xf54, PAL_NONE, 0x5a6, PAL_NONE, 0, 0, 16, 16, 16, 0),
M( 0x5a7, PAL_NONE, 0x5a6, PAL_NONE, 0, 0, 16, 16, 16, 0),
M( 0x5dd, PAL_NONE, 0x5de, PAL_NONE, 0, 0, 16, 16, 16, 0),
M( 0x5df, PAL_NONE, 0x5e0, PAL_NONE, 0, 0, 16, 16, 16, 0),
M( 0x5e1, PAL_NONE, 0x5e2, PAL_NONE, 0, 0, 16, 16, 16, 0),
M( 0x5e1, PAL_NONE, 0x5e2, PAL_NONE, 0, 0, 16, 16, 16, 0),
M( 0x5dd, PAL_NONE, 0x5de, PAL_NONE, 0, 0, 16, 16, 16, 0),
M( 0x5df, PAL_NONE, 0x5e0, PAL_NONE, 0, 0, 16, 16, 16, 0),
M( 0x5e1, PAL_NONE, 0x5e2, PAL_NONE, 0, 0, 16, 16, 16, 0),
M( 0x5e1, PAL_NONE, 0x5e2, PAL_NONE, 0, 0, 16, 16, 16, 0),
M( 0xf54, PAL_NONE, 0x5a8, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf54, PAL_NONE, 0x5a9, PAL_NONE, 0, 0, 16, 16, 38, 0),
M( 0xf54, PAL_NONE, 0x5aa, PAL_NONE, 0, 0, 16, 16, 45, 0),
M( 0x58c, PAL_NONE, 0x5aa, PAL_NONE, 0, 0, 16, 16, 45, 0),
M( 0xf54, PAL_NONE, 0x5a8, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf54, PAL_NONE, 0x5a9, PAL_NONE, 0, 0, 16, 16, 38, 0),
M( 0xf54, PAL_NONE, 0x5aa, PAL_NONE, 0, 0, 16, 16, 45, 0),
M( 0x58c, PAL_NONE, 0x5aa, PAL_NONE, 0, 0, 16, 16, 45, 0),
M( 0xf54, PAL_NONE, 0x5a8, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf54, PAL_NONE, 0x5a9, PAL_NONE, 0, 0, 16, 16, 38, 0),
M( 0xf54, PAL_NONE, 0x5aa, PAL_NONE, 0, 0, 16, 16, 45, 0),
M( 0x58c, PAL_NONE, 0x5aa, PAL_NONE, 0, 0, 16, 16, 45, 0),
M( 0xf54, PAL_NONE, 0x5a8, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf54, PAL_NONE, 0x5a9, PAL_NONE, 0, 0, 16, 16, 38, 0),
M( 0xf54, PAL_NONE, 0x5aa, PAL_NONE, 0, 0, 16, 16, 45, 0),
M( 0x58c, PAL_NONE, 0x5aa, PAL_NONE, 0, 0, 16, 16, 45, 0),
M( 0xf54, PAL_NONE, 0x5ab, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf54, PAL_NONE, 0x5ac, PAL_NONE, 0, 0, 16, 16, 38, 0),
M( 0xf54, PAL_NONE, 0x5ad, PAL_NONE, 0, 0, 16, 16, 45, 0),
M( 0x58c, PAL_NONE, 0x5ad, PAL_NONE, 0, 0, 16, 16, 45, 0),
M( 0xf54, PAL_NONE, 0x5ab, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf54, PAL_NONE, 0x5ac, PAL_NONE, 0, 0, 16, 16, 38, 0),
M( 0xf54, PAL_NONE, 0x5ad, PAL_NONE, 0, 0, 16, 16, 45, 0),
M( 0x58c, PAL_NONE, 0x5ad, PAL_NONE, 0, 0, 16, 16, 45, 0),
M( 0xf54, PAL_NONE, 0x5ab, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf54, PAL_NONE, 0x5ac, PAL_NONE, 0, 0, 16, 16, 38, 0),
M( 0xf54, PAL_NONE, 0x5ad, PAL_NONE, 0, 0, 16, 16, 45, 0),
M( 0x58c, PAL_NONE, 0x5ad, PAL_NONE, 0, 0, 16, 16, 45, 0),
M( 0xf54, PAL_NONE, 0x5ab, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf54, PAL_NONE, 0x5ac, PAL_NONE, 0, 0, 16, 16, 38, 0),
M( 0xf54, PAL_NONE, 0x5ad, PAL_NONE, 0, 0, 16, 16, 45, 0),
M( 0x58c, PAL_NONE, 0x5ad, PAL_NONE, 0, 0, 16, 16, 45, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 6, 5, 3, 6, 8, 0),
M( 0x58c, PAL_NONE, 0x0, PAL_NONE, 6, 5, 3, 6, 8, 0),
M( 0x58c, PAL_NONE, 0x5ae, PAL_NONE, 6, 5, 3, 6, 8, 0),
M( 0x58c, PAL_NONE, 0x5ae, PAL_NONE, 6, 5, 3, 6, 8, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 6, 5, 3, 6, 8, 0),
M( 0x58c, PAL_NONE, 0x0, PAL_NONE, 6, 5, 3, 6, 8, 0),
M( 0x58c, PAL_NONE, 0x5ae, PAL_NONE, 6, 5, 3, 6, 8, 0),
M( 0x58c, PAL_NONE, 0x5ae, PAL_NONE, 6, 5, 3, 6, 8, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 6, 5, 3, 6, 8, 0),
M( 0x58c, PAL_NONE, 0x0, PAL_NONE, 6, 5, 3, 6, 8, 0),
M( 0x58c, PAL_NONE, 0x5ae, PAL_NONE, 6, 5, 3, 6, 8, 0),
M( 0x58c, PAL_NONE, 0x5ae, PAL_NONE, 6, 5, 3, 6, 8, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 6, 5, 3, 6, 8, 0),
M( 0x58c, PAL_NONE, 0x0, PAL_NONE, 6, 5, 3, 6, 8, 0),
M( 0x58c, PAL_NONE, 0x5ae, PAL_NONE, 6, 5, 3, 6, 8, 0),
M( 0x58c, PAL_NONE, 0x5ae, PAL_NONE, 6, 5, 3, 6, 8, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 3, 3, 9, 9, 8, 0),
M( 0x58c, PAL_NONE, 0x0, PAL_NONE, 3, 3, 9, 9, 8, 0),
M( 0x58c, PAL_NONE, 0x5af, PAL_NONE, 3, 3, 9, 9, 8, 0),
M( 0x58c, PAL_NONE, 0x5af, PAL_NONE, 3, 3, 9, 9, 8, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 3, 3, 9, 9, 8, 0),
M( 0x58c, PAL_NONE, 0x0, PAL_NONE, 3, 3, 9, 9, 8, 0),
M( 0x58c, PAL_NONE, 0x5af, PAL_NONE, 3, 3, 9, 9, 8, 0),
M( 0x58c, PAL_NONE, 0x5af, PAL_NONE, 3, 3, 9, 9, 8, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 3, 3, 9, 9, 8, 0),
M( 0x58c, PAL_NONE, 0x0, PAL_NONE, 3, 3, 9, 9, 8, 0),
M( 0x58c, PAL_NONE, 0x5af, PAL_NONE, 3, 3, 9, 9, 8, 0),
M( 0x58c, PAL_NONE, 0x5af, PAL_NONE, 3, 3, 9, 9, 8, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 3, 3, 9, 9, 8, 0),
M( 0x58c, PAL_NONE, 0x0, PAL_NONE, 3, 3, 9, 9, 8, 0),
M( 0x58c, PAL_NONE, 0x5af, PAL_NONE, 3, 3, 9, 9, 8, 0),
M( 0x58c, PAL_NONE, 0x5af, PAL_NONE, 3, 3, 9, 9, 8, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf8d, PAL_NONE, 0x5b0, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf8d, PAL_NONE, 0x5b0, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf8d, PAL_NONE, 0x5b0, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf8d, PAL_NONE, 0x5b0, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf8d, PAL_NONE, 0x5b0, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf8d, PAL_NONE, 0x5b0, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf8d, PAL_NONE, 0x5b0, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf8d, PAL_NONE, 0x5b0, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf8d, PAL_NONE, 0x5b0, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf8d, PAL_NONE, 0x5b0, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf8d, PAL_NONE, 0x5b0, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf8d, PAL_NONE, 0x5b0, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf8d, PAL_NONE, 0x5b1, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf8d, PAL_NONE, 0x5b1, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf8d, PAL_NONE, 0x5b1, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf8d, PAL_NONE, 0x5b1, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf8d, PAL_NONE, 0x5b1, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf8d, PAL_NONE, 0x5b1, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf8d, PAL_NONE, 0x5b1, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf8d, PAL_NONE, 0x5b1, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf8d, PAL_NONE, 0x5b1, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf8d, PAL_NONE, 0x5b1, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf8d, PAL_NONE, 0x5b1, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf8d, PAL_NONE, 0x5b1, PAL_NONE, 0, 0, 16, 16, 15, 0),
M( 0xf54, PAL_NONE, 0x5b2, PAL_NONE, 0, 0, 16, 16, 8, 0),
M( 0xf54, PAL_NONE, 0x5b3, PAL_NONE, 0, 0, 16, 16, 42, 0),
M( 0xf54, PAL_NONE, 0x5b4, PAL_NONE, 0, 0, 16, 16, 42, 0),
M( 0x58c, PAL_NONE, 0x5b4, PAL_NONE, 0, 0, 16, 16, 42, 0),
M( 0xf54, PAL_NONE, 0x5b2, PALETTE_TO_STRUCT_WHITE, 0, 0, 16, 16, 8, 0),
M( 0xf54, PAL_NONE, 0x5b3, PALETTE_TO_STRUCT_WHITE, 0, 0, 16, 16, 42, 0),
M( 0xf54, PAL_NONE, 0x5b4, PALETTE_TO_STRUCT_WHITE, 0, 0, 16, 16, 42, 0),
M( 0x58c, PAL_NONE, 0x5b4, PALETTE_TO_STRUCT_WHITE, 0, 0, 16, 16, 42, 0),
M( 0xf54, PAL_NONE, 0x5b2, PALETTE_TO_STRUCT_RED, 0, 0, 16, 16, 8, 0),
M( 0xf54, PAL_NONE, 0x5b3, PALETTE_TO_STRUCT_RED, 0, 0, 16, 16, 42, 0),
M( 0xf54, PAL_NONE, 0x5b4, PALETTE_TO_STRUCT_RED, 0, 0, 16, 16, 42, 0),
M( 0x58c, PAL_NONE, 0x5b4, PALETTE_TO_STRUCT_RED, 0, 0, 16, 16, 42, 0),
M( 0xf54, PAL_NONE, 0x5b2, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 8, 0),
M( 0xf54, PAL_NONE, 0x5b3, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 42, 0),
M( 0xf54, PAL_NONE, 0x5b4, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 42, 0),
M( 0x58c, PAL_NONE, 0x5b4, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 42, 0),
M( 0xf54, PAL_NONE, 0x5b5, PAL_NONE, 1, 3, 14, 11, 7, 0),
M( 0xf54, PAL_NONE, 0x5b6, PAL_NONE, 1, 3, 14, 11, 53, 0),
M( 0xf54, PAL_NONE, 0x5b7, PAL_NONE, 1, 3, 14, 11, 53, 0),
M( 0x58c, PAL_NONE, 0x5b7, PAL_NONE, 1, 3, 14, 11, 53, 0),
M( 0xf54, PAL_NONE, 0x5b5, PAL_NONE, 1, 3, 14, 11, 7, 0),
M( 0xf54, PAL_NONE, 0x5b6, PAL_NONE, 1, 3, 14, 11, 53, 0),
M( 0xf54, PAL_NONE, 0x5b7, PAL_NONE, 1, 3, 14, 11, 53, 0),
M( 0x58c, PAL_NONE, 0x5b7, PAL_NONE, 1, 3, 14, 11, 53, 0),
M( 0xf54, PAL_NONE, 0x5b5, PAL_NONE, 1, 3, 14, 11, 7, 0),
M( 0xf54, PAL_NONE, 0x5b6, PAL_NONE, 1, 3, 14, 11, 53, 0),
M( 0xf54, PAL_NONE, 0x5b7, PAL_NONE, 1, 3, 14, 11, 53, 0),
M( 0x58c, PAL_NONE, 0x5b7, PAL_NONE, 1, 3, 14, 11, 53, 0),
M( 0xf54, PAL_NONE, 0x5b5, PAL_NONE, 1, 3, 14, 11, 7, 0),
M( 0xf54, PAL_NONE, 0x5b6, PAL_NONE, 1, 3, 14, 11, 53, 0),
M( 0xf54, PAL_NONE, 0x5b7, PAL_NONE, 1, 3, 14, 11, 53, 0),
M( 0x58c, PAL_NONE, 0x5b7, PAL_NONE, 1, 3, 14, 11, 53, 0),
M( 0xf54, PAL_NONE, 0x5b8, PAL_NONE, 3, 1, 11, 14, 6, 0),
M( 0xf54, PAL_NONE, 0x5b9, PAL_NONE, 3, 1, 11, 14, 28, 0),
M( 0xf54, PAL_NONE, 0x5ba, PAL_NONE, 3, 1, 11, 14, 28, 0),
M( 0x58c, PAL_NONE, 0x5ba, PAL_NONE, 3, 1, 11, 14, 28, 0),
M( 0xf54, PAL_NONE, 0x5b8, PAL_NONE, 3, 1, 11, 14, 6, 0),
M( 0xf54, PAL_NONE, 0x5b9, PAL_NONE, 3, 1, 11, 14, 28, 0),
M( 0xf54, PAL_NONE, 0x5ba, PAL_NONE, 3, 1, 11, 14, 28, 0),
M( 0x58c, PAL_NONE, 0x5ba, PAL_NONE, 3, 1, 11, 14, 28, 0),
M( 0xf54, PAL_NONE, 0x5b8, PAL_NONE, 3, 1, 11, 14, 6, 0),
M( 0xf54, PAL_NONE, 0x5b9, PAL_NONE, 3, 1, 11, 14, 28, 0),
M( 0xf54, PAL_NONE, 0x5ba, PAL_NONE, 3, 1, 11, 14, 28, 0),
M( 0x58c, PAL_NONE, 0x5ba, PAL_NONE, 3, 1, 11, 14, 28, 0),
M( 0xf54, PAL_NONE, 0x5b8, PAL_NONE, 3, 1, 11, 14, 6, 0),
M( 0xf54, PAL_NONE, 0x5b9, PAL_NONE, 3, 1, 11, 14, 28, 0),
M( 0xf54, PAL_NONE, 0x5ba, PAL_NONE, 3, 1, 11, 14, 28, 0),
M( 0x58c, PAL_NONE, 0x5ba, PAL_NONE, 3, 1, 11, 14, 28, 0),
M( 0xf54, PAL_NONE, 0x5bb, PAL_NONE, 2, 0, 13, 16, 6, 0),
M( 0xf54, PAL_NONE, 0x5bc, PAL_NONE, 2, 0, 13, 16, 45, 0),
M( 0xf54, PAL_NONE, 0x5bd, PAL_NONE, 2, 0, 13, 16, 46, 0),
M( 0x58c, PAL_NONE, 0x5bd, PAL_NONE, 2, 0, 13, 16, 46, 0),
M( 0xf54, PAL_NONE, 0x5bb, PAL_NONE, 2, 0, 13, 16, 6, 0),
M( 0xf54, PAL_NONE, 0x5bc, PAL_NONE, 2, 0, 13, 16, 45, 0),
M( 0xf54, PAL_NONE, 0x5bd, PAL_NONE, 2, 0, 13, 16, 46, 0),
M( 0x58c, PAL_NONE, 0x5bd, PAL_NONE, 2, 0, 13, 16, 46, 0),
M( 0xf54, PAL_NONE, 0x5bb, PALETTE_TO_STRUCT_BLUE, 2, 0, 13, 16, 6, 0),
M( 0xf54, PAL_NONE, 0x5bc, PALETTE_TO_STRUCT_BLUE, 2, 0, 13, 16, 45, 0),
M( 0xf54, PAL_NONE, 0x5bd, PALETTE_TO_STRUCT_BLUE, 2, 0, 13, 16, 46, 0),
M( 0x58c, PAL_NONE, 0x5bd, PALETTE_TO_STRUCT_BLUE, 2, 0, 13, 16, 46, 0),
M( 0xf54, PAL_NONE, 0x5bb, PALETTE_TO_STRUCT_WHITE, 2, 0, 13, 16, 6, 0),
M( 0xf54, PAL_NONE, 0x5bc, PALETTE_TO_STRUCT_WHITE, 2, 0, 13, 16, 45, 0),
M( 0xf54, PAL_NONE, 0x5bd, PALETTE_TO_STRUCT_WHITE, 2, 0, 13, 16, 46, 0),
M( 0x58c, PAL_NONE, 0x5bd, PALETTE_TO_STRUCT_WHITE, 2, 0, 13, 16, 46, 0),
M( 0xf54, PAL_NONE, 0x5be, PALETTE_TO_RED, 2, 0, 13, 16, 13, 0),
M( 0xf54, PAL_NONE, 0x5bf, PALETTE_TO_RED, 2, 0, 13, 16, 110, 0),
M( 0xf54, PAL_NONE, 0x5c0, PALETTE_TO_RED, 2, 0, 13, 16, 110, 0),
M( 0x58c, PAL_NONE, 0x5c0, PALETTE_TO_RED, 2, 0, 13, 16, 110, 0),
M( 0xf54, PAL_NONE, 0x5be, PALETTE_TO_BLUE, 2, 0, 13, 16, 13, 0),
M( 0xf54, PAL_NONE, 0x5bf, PALETTE_TO_BLUE, 2, 0, 13, 16, 110, 0),
M( 0xf54, PAL_NONE, 0x5c0, PALETTE_TO_BLUE, 2, 0, 13, 16, 110, 0),
M( 0x58c, PAL_NONE, 0x5c0, PALETTE_TO_BLUE, 2, 0, 13, 16, 110, 0),
M( 0xf54, PAL_NONE, 0x5be, PALETTE_TO_ORANGE, 2, 0, 13, 16, 13, 0),
M( 0xf54, PAL_NONE, 0x5bf, PALETTE_TO_ORANGE, 2, 0, 13, 16, 110, 0),
M( 0xf54, PAL_NONE, 0x5c0, PALETTE_TO_ORANGE, 2, 0, 13, 16, 110, 0),
M( 0x58c, PAL_NONE, 0x5c0, PALETTE_TO_ORANGE, 2, 0, 13, 16, 110, 0),
M( 0xf54, PAL_NONE, 0x5be, PALETTE_TO_GREEN, 2, 0, 13, 16, 13, 0),
M( 0xf54, PAL_NONE, 0x5bf, PALETTE_TO_GREEN, 2, 0, 13, 16, 110, 0),
M( 0xf54, PAL_NONE, 0x5c0, PALETTE_TO_GREEN, 2, 0, 13, 16, 110, 0),
M( 0x58c, PAL_NONE, 0x5c0, PALETTE_TO_GREEN, 2, 0, 13, 16, 110, 0),
M( 0xf54, PAL_NONE, 0x5c1, PAL_NONE, 1, 2, 15, 12, 4, 0),
M( 0xf54, PAL_NONE, 0x5c2, PAL_NONE, 1, 2, 15, 12, 24, 0),
M( 0xf54, PAL_NONE, 0x5c3, PAL_NONE, 1, 2, 15, 12, 31, 0),
M( 0x58c, PAL_NONE, 0x5c3, PAL_NONE, 1, 2, 15, 12, 31, 0),
M( 0xf54, PAL_NONE, 0x5c1, PAL_NONE, 1, 2, 15, 12, 4, 0),
M( 0xf54, PAL_NONE, 0x5c2, PAL_NONE, 1, 2, 15, 12, 24, 0),
M( 0xf54, PAL_NONE, 0x5c3, PAL_NONE, 1, 2, 15, 12, 31, 0),
M( 0x58c, PAL_NONE, 0x5c3, PAL_NONE, 1, 2, 15, 12, 31, 0),
M( 0xf54, PAL_NONE, 0x5c1, PAL_NONE, 1, 2, 15, 12, 4, 0),
M( 0xf54, PAL_NONE, 0x5c2, PAL_NONE, 1, 2, 15, 12, 24, 0),
M( 0xf54, PAL_NONE, 0x5c3, PAL_NONE, 1, 2, 15, 12, 31, 0),
M( 0x58c, PAL_NONE, 0x5c3, PAL_NONE, 1, 2, 15, 12, 31, 0),
M( 0xf54, PAL_NONE, 0x5c1, PAL_NONE, 1, 2, 15, 12, 4, 0),
M( 0xf54, PAL_NONE, 0x5c2, PAL_NONE, 1, 2, 15, 12, 24, 0),
M( 0xf54, PAL_NONE, 0x5c3, PAL_NONE, 1, 2, 15, 12, 31, 0),
M( 0x58c, PAL_NONE, 0x5c3, PAL_NONE, 1, 2, 15, 12, 31, 0),
M( 0xf54, PAL_NONE, 0x5c4, PAL_NONE, 1, 0, 14, 15, 20, 0),
M( 0xf54, PAL_NONE, 0x5c5, PAL_NONE, 1, 0, 14, 15, 42, 0),
M( 0xf54, PAL_NONE, 0x5c6, PAL_NONE, 1, 0, 14, 15, 42, 0),
M( 0x58c, PAL_NONE, 0x5c6, PAL_NONE, 1, 0, 14, 15, 42, 0),
M( 0xf54, PAL_NONE, 0x5c4, PAL_NONE, 1, 0, 14, 15, 20, 0),
M( 0xf54, PAL_NONE, 0x5c5, PAL_NONE, 1, 0, 14, 15, 42, 0),
M( 0xf54, PAL_NONE, 0x5c6, PAL_NONE, 1, 0, 14, 15, 42, 0),
M( 0x58c, PAL_NONE, 0x5c6, PAL_NONE, 1, 0, 14, 15, 42, 0),
M( 0xf54, PAL_NONE, 0x5c4, PAL_NONE, 1, 0, 14, 15, 20, 0),
M( 0xf54, PAL_NONE, 0x5c5, PAL_NONE, 1, 0, 14, 15, 42, 0),
M( 0xf54, PAL_NONE, 0x5c6, PAL_NONE, 1, 0, 14, 15, 42, 0),
M( 0x58c, PAL_NONE, 0x5c6, PAL_NONE, 1, 0, 14, 15, 42, 0),
M( 0xf54, PAL_NONE, 0x5c4, PAL_NONE, 1, 0, 14, 15, 20, 0),
M( 0xf54, PAL_NONE, 0x5c5, PAL_NONE, 1, 0, 14, 15, 42, 0),
M( 0xf54, PAL_NONE, 0x5c6, PAL_NONE, 1, 0, 14, 15, 42, 0),
M( 0x58c, PAL_NONE, 0x5c6, PAL_NONE, 1, 0, 14, 15, 42, 0),
M( 0x5c7, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c7, PAL_NONE, 0x5cb, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c7, PAL_NONE, 0x5cb, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c7, PAL_NONE, 0x5cb, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c7, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c7, PAL_NONE, 0x5cb, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c7, PAL_NONE, 0x5cb, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c7, PAL_NONE, 0x5cb, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c7, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c7, PAL_NONE, 0x5cb, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c7, PAL_NONE, 0x5cb, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c7, PAL_NONE, 0x5cb, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c7, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c7, PAL_NONE, 0x5cb, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c7, PAL_NONE, 0x5cb, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c7, PAL_NONE, 0x5cb, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c8, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c8, PAL_NONE, 0x5cc, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c8, PAL_NONE, 0x5cc, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c8, PAL_NONE, 0x5cc, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c8, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c8, PAL_NONE, 0x5cc, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c8, PAL_NONE, 0x5cc, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c8, PAL_NONE, 0x5cc, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c8, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c8, PAL_NONE, 0x5cc, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c8, PAL_NONE, 0x5cc, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c8, PAL_NONE, 0x5cc, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c8, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c8, PAL_NONE, 0x5cc, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c8, PAL_NONE, 0x5cc, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c8, PAL_NONE, 0x5cc, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c9, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c9, PAL_NONE, 0x5cd, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c9, PAL_NONE, 0x5cd, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c9, PAL_NONE, 0x5cd, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c9, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c9, PAL_NONE, 0x5cd, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c9, PAL_NONE, 0x5cd, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c9, PAL_NONE, 0x5cd, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c9, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c9, PAL_NONE, 0x5cd, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c9, PAL_NONE, 0x5cd, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c9, PAL_NONE, 0x5cd, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c9, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c9, PAL_NONE, 0x5cd, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c9, PAL_NONE, 0x5cd, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5c9, PAL_NONE, 0x5cd, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5ca, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5ca, PAL_NONE, 0x5ce, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5ca, PAL_NONE, 0x5ce, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5ca, PAL_NONE, 0x5ce, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5ca, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5ca, PAL_NONE, 0x5ce, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5ca, PAL_NONE, 0x5ce, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5ca, PAL_NONE, 0x5ce, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5ca, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5ca, PAL_NONE, 0x5ce, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5ca, PAL_NONE, 0x5ce, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5ca, PAL_NONE, 0x5ce, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5ca, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5ca, PAL_NONE, 0x5ce, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5ca, PAL_NONE, 0x5ce, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x5ca, PAL_NONE, 0x5ce, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x5d4, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5d3, PAL_NONE, 0x5d4, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5d3, PAL_NONE, 0x5d4, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5d3, PAL_NONE, 0x5d4, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0xf54, PAL_NONE, 0x5d6, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5d5, PAL_NONE, 0x5d6, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5d5, PAL_NONE, 0x5d6, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5d5, PAL_NONE, 0x5d6, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0xf54, PAL_NONE, 0x5d0, PAL_NONE, 0, 0, 16, 16, 21, 0),
M( 0x5cf, PAL_NONE, 0x5d0, PAL_NONE, 0, 0, 16, 16, 21, 0),
M( 0x5cf, PAL_NONE, 0x5d0, PAL_NONE, 0, 0, 16, 16, 21, 0),
M( 0x5cf, PAL_NONE, 0x5d0, PAL_NONE, 0, 0, 16, 16, 21, 0),
M( 0xf54, PAL_NONE, 0x5d2, PAL_NONE, 0, 0, 16, 16, 11, 0),
M( 0x5d1, PAL_NONE, 0x5d2, PAL_NONE, 0, 0, 16, 16, 11, 0),
M( 0x5d1, PAL_NONE, 0x5d2, PAL_NONE, 0, 0, 16, 16, 11, 0),
M( 0x5d1, PAL_NONE, 0x5d2, PAL_NONE, 0, 0, 16, 16, 11, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5d7, PAL_NONE, 0x5d8, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5d7, PAL_NONE, 0x5d8, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5d7, PAL_NONE, 0x5d8, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5d7, PAL_NONE, 0x5d8, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5d7, PAL_NONE, 0x5d8, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5d7, PAL_NONE, 0x5d8, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5d7, PAL_NONE, 0x5d8, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5d7, PAL_NONE, 0x5d8, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5d7, PAL_NONE, 0x5d8, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5d7, PAL_NONE, 0x5d8, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5d7, PAL_NONE, 0x5d8, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5d7, PAL_NONE, 0x5d8, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5d9, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5da, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5db, PAL_NONE, 0x5dc, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5db, PAL_NONE, 0x5dc, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x622, PAL_NONE, 0x623, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x624, PAL_NONE, 0x625, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x626, PAL_NONE, 0x627, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x626, PAL_NONE, 0x627, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5e3, PAL_NONE, 0x5e4, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5e5, PAL_NONE, 0x5e6, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5e7, PAL_NONE, 0x5e8, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5e7, PAL_NONE, 0x5e8, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5e9, PAL_NONE, 0x5ea, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5eb, PAL_NONE, 0x5ec, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5ed, PAL_NONE, 0x5ee, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5ed, PAL_NONE, 0x5ee, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5ef, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5f0, PAL_NONE, 0x5f1, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5f2, PAL_NONE, 0x5f3, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5f2, PAL_NONE, 0x5f3, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5ef, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5f0, PAL_NONE, 0x5f1, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5f2, PAL_NONE, 0x5f3, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5f2, PAL_NONE, 0x5f3, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5f4, PAL_NONE, 0x5f5, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5f6, PAL_NONE, 0x5f7, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5f8, PAL_NONE, 0x5f9, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5f8, PAL_NONE, 0x5f9, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5f4, PAL_NONE, 0x5f5, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5f6, PAL_NONE, 0x5f7, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5f8, PAL_NONE, 0x5f9, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5f8, PAL_NONE, 0x5f9, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x5fa, PAL_NONE, 0x5fb, PAL_NONE, 0, 0, 16, 16, 85, 0),
M( 0x5fc, PAL_NONE, 0x5fd, PAL_NONE, 0, 0, 16, 16, 85, 0),
M( 0x5fe, PAL_NONE, 0x5ff, PAL_NONE, 0, 0, 16, 16, 85, 0),
M( 0x5fe, PAL_NONE, 0x5ff, PAL_NONE, 0, 0, 16, 16, 85, 0),
M( 0x5fa, PAL_NONE, 0x5fb, PAL_NONE, 0, 0, 16, 16, 85, 0),
M( 0x5fc, PAL_NONE, 0x5fd, PAL_NONE, 0, 0, 16, 16, 85, 0),
M( 0x5fe, PAL_NONE, 0x5ff, PAL_NONE, 0, 0, 16, 16, 85, 0),
M( 0x5fe, PAL_NONE, 0x5ff, PAL_NONE, 0, 0, 16, 16, 85, 0),
M( 0x60a, PAL_NONE, 0x60b, PAL_NONE, 0, 0, 16, 16, 95, 0),
M( 0x60c, PAL_NONE, 0x60d, PAL_NONE, 0, 0, 16, 16, 95, 0),
M( 0x60e, PAL_NONE, 0x60f, PAL_NONE, 0, 0, 16, 16, 95, 0),
M( 0x60e, PAL_NONE, 0x60f, PAL_NONE, 0, 0, 16, 16, 95, 0),
M( 0x60a, PAL_NONE, 0x60b, PAL_NONE, 0, 0, 16, 16, 95, 0),
M( 0x60c, PAL_NONE, 0x60d, PAL_NONE, 0, 0, 16, 16, 95, 0),
M( 0x60e, PAL_NONE, 0x60f, PAL_NONE, 0, 0, 16, 16, 95, 0),
M( 0x60e, PAL_NONE, 0x60f, PAL_NONE, 0, 0, 16, 16, 95, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x600, PAL_NONE, 0x601, PAL_NONE, 0, 0, 16, 16, 55, 0),
M( 0x600, PAL_NONE, 0x601, PAL_NONE, 0, 0, 16, 16, 55, 0),
M( 0x600, PAL_NONE, 0x601, PAL_NONE, 0, 0, 16, 16, 55, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x600, PALETTE_TO_STRUCT_WHITE, 0x601, PALETTE_TO_STRUCT_WHITE, 0, 0, 16, 16, 55, 0),
M( 0x600, PALETTE_TO_STRUCT_WHITE, 0x601, PALETTE_TO_STRUCT_WHITE, 0, 0, 16, 16, 55, 0),
M( 0x600, PALETTE_TO_STRUCT_WHITE, 0x601, PALETTE_TO_STRUCT_WHITE, 0, 0, 16, 16, 55, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x602, PAL_NONE, 0x603, PAL_NONE, 0, 0, 16, 16, 42, 0),
M( 0x602, PAL_NONE, 0x603, PAL_NONE, 0, 0, 16, 16, 42, 0),
M( 0x602, PAL_NONE, 0x603, PAL_NONE, 0, 0, 16, 16, 42, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x602, PALETTE_TO_STRUCT_CONCRETE, 0x603, PALETTE_TO_STRUCT_CONCRETE, 0, 0, 16, 16, 42, 0),
M( 0x602, PALETTE_TO_STRUCT_CONCRETE, 0x603, PALETTE_TO_STRUCT_CONCRETE, 0, 0, 16, 16, 42, 0),
M( 0x602, PALETTE_TO_STRUCT_CONCRETE, 0x603, PALETTE_TO_STRUCT_CONCRETE, 0, 0, 16, 16, 42, 0),
M( 0x604, PAL_NONE, 0x605, PAL_NONE, 0, 0, 16, 16, 88, 0),
M( 0x606, PAL_NONE, 0x607, PAL_NONE, 0, 0, 16, 16, 88, 0),
M( 0x608, PAL_NONE, 0x609, PAL_NONE, 0, 0, 16, 16, 88, 0),
M( 0x608, PAL_NONE, 0x609, PAL_NONE, 0, 0, 16, 16, 88, 0),
M( 0x604, PAL_NONE, 0x605, PAL_NONE, 0, 0, 16, 16, 88, 0),
M( 0x606, PAL_NONE, 0x607, PAL_NONE, 0, 0, 16, 16, 88, 0),
M( 0x608, PAL_NONE, 0x609, PAL_NONE, 0, 0, 16, 16, 88, 0),
M( 0x608, PAL_NONE, 0x609, PAL_NONE, 0, 0, 16, 16, 88, 0),
M( 0x604, PAL_NONE, 0x605, PAL_NONE, 0, 0, 16, 16, 88, 0),
M( 0x606, PAL_NONE, 0x607, PAL_NONE, 0, 0, 16, 16, 88, 0),
M( 0x608, PAL_NONE, 0x609, PAL_NONE, 0, 0, 16, 16, 88, 0),
M( 0x608, PAL_NONE, 0x609, PAL_NONE, 0, 0, 16, 16, 88, 0),
M( 0x604, PAL_NONE, 0x605, PAL_NONE, 0, 0, 16, 16, 88, 0),
M( 0x606, PAL_NONE, 0x607, PAL_NONE, 0, 0, 16, 16, 88, 0),
M( 0x608, PAL_NONE, 0x609, PAL_NONE, 0, 0, 16, 16, 88, 0),
M( 0x608, PAL_NONE, 0x609, PAL_NONE, 0, 0, 16, 16, 88, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x610, PAL_NONE, 0x611, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0x610, PAL_NONE, 0x611, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0x610, PAL_NONE, 0x611, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x610, PAL_NONE, 0x611, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0x610, PAL_NONE, 0x611, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0x610, PAL_NONE, 0x611, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x610, PAL_NONE, 0x611, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0x610, PAL_NONE, 0x611, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0x610, PAL_NONE, 0x611, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x610, PAL_NONE, 0x611, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0x610, PAL_NONE, 0x611, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0x610, PAL_NONE, 0x611, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0x612, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x612, PAL_NONE, 0x616, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x612, PAL_NONE, 0x616, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x612, PAL_NONE, 0x616, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x612, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x612, PAL_NONE, 0x616, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x612, PAL_NONE, 0x616, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x612, PAL_NONE, 0x616, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x612, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x612, PAL_NONE, 0x616, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x612, PAL_NONE, 0x616, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x612, PAL_NONE, 0x616, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x612, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x612, PAL_NONE, 0x616, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x612, PAL_NONE, 0x616, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x612, PAL_NONE, 0x616, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x613, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x613, PAL_NONE, 0x617, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x613, PAL_NONE, 0x617, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x613, PAL_NONE, 0x617, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x613, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x613, PAL_NONE, 0x617, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x613, PAL_NONE, 0x617, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x613, PAL_NONE, 0x617, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x613, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x613, PAL_NONE, 0x617, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x613, PAL_NONE, 0x617, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x613, PAL_NONE, 0x617, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x613, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x613, PAL_NONE, 0x617, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x613, PAL_NONE, 0x617, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x613, PAL_NONE, 0x617, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x614, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x614, PAL_NONE, 0x618, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x614, PAL_NONE, 0x618, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x614, PAL_NONE, 0x618, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x614, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x614, PAL_NONE, 0x618, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x614, PAL_NONE, 0x618, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x614, PAL_NONE, 0x618, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x614, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x614, PAL_NONE, 0x618, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x614, PAL_NONE, 0x618, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x614, PAL_NONE, 0x618, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x614, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x614, PAL_NONE, 0x618, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x614, PAL_NONE, 0x618, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x614, PAL_NONE, 0x618, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x615, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x615, PAL_NONE, 0x619, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x615, PAL_NONE, 0x619, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x615, PAL_NONE, 0x619, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x615, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x615, PAL_NONE, 0x619, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x615, PAL_NONE, 0x619, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x615, PAL_NONE, 0x619, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x615, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x615, PAL_NONE, 0x619, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x615, PAL_NONE, 0x619, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x615, PAL_NONE, 0x619, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x615, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x615, PAL_NONE, 0x619, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x615, PAL_NONE, 0x619, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0x615, PAL_NONE, 0x619, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x61a, PAL_NONE, 0x61b, PAL_NONE, 0, 0, 16, 16, 100, 0),
M( 0x61a, PAL_NONE, 0x61b, PAL_NONE, 0, 0, 16, 16, 100, 0),
M( 0x61c, PAL_NONE, 0x61d, PAL_NONE, 0, 0, 16, 16, 100, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x61a, PAL_NONE, 0x61b, PAL_NONE, 0, 0, 16, 16, 100, 0),
M( 0x61a, PAL_NONE, 0x61b, PAL_NONE, 0, 0, 16, 16, 100, 0),
M( 0x61c, PAL_NONE, 0x61d, PAL_NONE, 0, 0, 16, 16, 100, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x61a, PAL_NONE, 0x61b, PAL_NONE, 0, 0, 16, 16, 100, 0),
M( 0x61a, PAL_NONE, 0x61b, PAL_NONE, 0, 0, 16, 16, 100, 0),
M( 0x61c, PAL_NONE, 0x61d, PAL_NONE, 0, 0, 16, 16, 100, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x61a, PAL_NONE, 0x61b, PAL_NONE, 0, 0, 16, 16, 100, 0),
M( 0x61a, PAL_NONE, 0x61b, PAL_NONE, 0, 0, 16, 16, 100, 0),
M( 0x61c, PAL_NONE, 0x61d, PAL_NONE, 0, 0, 16, 16, 100, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x61e, PAL_NONE, 0x61f, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x61e, PAL_NONE, 0x61f, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x61e, PAL_NONE, 0x61f, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x61e, PALETTE_TO_STRUCT_WHITE, 0x61f, PALETTE_TO_STRUCT_WHITE, 0, 0, 16, 16, 25, 0),
M( 0x61e, PALETTE_TO_STRUCT_WHITE, 0x61f, PALETTE_TO_STRUCT_WHITE, 0, 0, 16, 16, 25, 0),
M( 0x61e, PALETTE_TO_STRUCT_WHITE, 0x61f, PALETTE_TO_STRUCT_WHITE, 0, 0, 16, 16, 25, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x620, PAL_NONE, 0x621, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x620, PAL_NONE, 0x621, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0x620, PAL_NONE, 0x621, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M( 0x620, PALETTE_TO_CREAM, 0x621, PALETTE_TO_CREAM, 0, 0, 16, 16, 25, 0),
M( 0x620, PALETTE_TO_CREAM, 0x621, PALETTE_TO_CREAM, 0, 0, 16, 16, 25, 0),
M( 0x620, PALETTE_TO_CREAM, 0x621, PALETTE_TO_CREAM, 0, 0, 16, 16, 25, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M(0x11da, PAL_NONE, 0x11db, PAL_NONE, 0, 0, 16, 16, 25, 0),
M(0x11da, PAL_NONE, 0x11db, PAL_NONE, 0, 0, 16, 16, 25, 0),
M(0x11da, PAL_NONE, 0x11db, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M(0x11da, PALETTE_TO_STRUCT_WHITE, 0x11db, PALETTE_TO_STRUCT_WHITE, 0, 0, 16, 16, 25, 0),
M(0x11da, PALETTE_TO_STRUCT_WHITE, 0x11db, PALETTE_TO_STRUCT_WHITE, 0, 0, 16, 16, 25, 0),
M(0x11da, PALETTE_TO_STRUCT_WHITE, 0x11db, PALETTE_TO_STRUCT_WHITE, 0, 0, 16, 16, 25, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M(0x11dc, PAL_NONE, 0x11dd, PAL_NONE, 0, 0, 16, 16, 25, 0),
M(0x11dc, PAL_NONE, 0x11dd, PAL_NONE, 0, 0, 16, 16, 25, 0),
M(0x11dc, PAL_NONE, 0x11dd, PAL_NONE, 0, 0, 16, 16, 25, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M(0x11dc, PALETTE_TO_CREAM, 0x11dd, PALETTE_TO_CREAM, 0, 0, 16, 16, 25, 0),
M(0x11dc, PALETTE_TO_CREAM, 0x11dd, PALETTE_TO_CREAM, 0, 0, 16, 16, 25, 0),
M(0x11dc, PALETTE_TO_CREAM, 0x11dd, PALETTE_TO_CREAM, 0, 0, 16, 16, 25, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M(0x1134, PAL_NONE, 0x1135, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1134, PAL_NONE, 0x1135, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1134, PAL_NONE, 0x1135, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M(0x1134, PAL_NONE, 0x1135, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1134, PAL_NONE, 0x1135, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1134, PAL_NONE, 0x1135, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M(0x1134, PAL_NONE, 0x1135, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1134, PAL_NONE, 0x1135, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1134, PAL_NONE, 0x1135, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 22, 0),
M(0x1134, PAL_NONE, 0x1135, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1134, PAL_NONE, 0x1135, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1134, PAL_NONE, 0x1135, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1136, PAL_NONE, 0x1137, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1136, PAL_NONE, 0x1137, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113b, PAL_NONE, 0x113c, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113b, PAL_NONE, 0x113c, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1136, PAL_NONE, 0x1137, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1136, PAL_NONE, 0x1137, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113b, PAL_NONE, 0x113c, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113b, PAL_NONE, 0x113c, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1136, PAL_NONE, 0x1137, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1136, PAL_NONE, 0x1137, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113b, PAL_NONE, 0x113c, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113b, PAL_NONE, 0x113c, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1136, PAL_NONE, 0x1137, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1136, PAL_NONE, 0x1137, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113b, PAL_NONE, 0x113c, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113b, PAL_NONE, 0x113c, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1138, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1138, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113d, PAL_NONE, 0x113e, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113d, PAL_NONE, 0x113e, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1138, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1138, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113d, PAL_NONE, 0x113e, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113d, PAL_NONE, 0x113e, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1138, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1138, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113d, PAL_NONE, 0x113e, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113d, PAL_NONE, 0x113e, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1138, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1138, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113d, PAL_NONE, 0x113e, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113d, PAL_NONE, 0x113e, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1139, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1139, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113f, PAL_NONE, 0x1140, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113f, PAL_NONE, 0x1140, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1139, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1139, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113f, PAL_NONE, 0x1140, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113f, PAL_NONE, 0x1140, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1139, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1139, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113f, PAL_NONE, 0x1140, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113f, PAL_NONE, 0x1140, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1139, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1139, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113f, PAL_NONE, 0x1140, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113f, PAL_NONE, 0x1140, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113a, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113a, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1141, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1141, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113a, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113a, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1141, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1141, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113a, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113a, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1141, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1141, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113a, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x113a, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1141, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1141, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x1144, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1145, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1146, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1142, PAL_NONE, 0x1146, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1144, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1145, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1146, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1142, PAL_NONE, 0x1146, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1144, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1145, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1146, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1142, PAL_NONE, 0x1146, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1144, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1145, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1146, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1142, PAL_NONE, 0x1146, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1144, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1145, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1146, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1143, PAL_NONE, 0x1147, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1144, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1145, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1146, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1143, PAL_NONE, 0x1147, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1144, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1145, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1146, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1143, PAL_NONE, 0x1147, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1144, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1145, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1146, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1143, PAL_NONE, 0x1147, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1148, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1149, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x114a, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1142, PAL_NONE, 0x114a, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1148, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1149, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x114a, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1142, PAL_NONE, 0x114a, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1148, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1149, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x114a, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1142, PAL_NONE, 0x114a, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1148, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1149, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x114a, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1142, PAL_NONE, 0x114a, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1148, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1149, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x114a, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1143, PAL_NONE, 0x114b, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1148, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1149, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x114a, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1143, PAL_NONE, 0x114b, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1148, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1149, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x114a, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1143, PAL_NONE, 0x114b, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1148, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1149, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x114a, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1143, PAL_NONE, 0x114b, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x114e, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x114f, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1150, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x114c, PAL_NONE, 0x1150, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x114e, PALETTE_TO_PINK, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x114f, PALETTE_TO_PINK, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1150, PALETTE_TO_PINK, 0, 0, 16, 16, 40, 0),
M(0x114c, PAL_NONE, 0x1150, PALETTE_TO_PINK, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x114e, PALETTE_TO_CREAM, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x114f, PALETTE_TO_CREAM, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1150, PALETTE_TO_CREAM, 0, 0, 16, 16, 40, 0),
M(0x114c, PAL_NONE, 0x1150, PALETTE_TO_CREAM, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x114e, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x114f, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1150, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 40, 0),
M(0x114c, PAL_NONE, 0x1150, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x114e, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x114f, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1150, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x114d, PAL_NONE, 0x1151, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x114e, PALETTE_TO_PINK, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x114f, PALETTE_TO_PINK, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1150, PALETTE_TO_PINK, 0, 0, 16, 16, 40, 0),
M(0x114d, PAL_NONE, 0x1151, PALETTE_TO_PINK, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x114e, PALETTE_TO_CREAM, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x114f, PALETTE_TO_CREAM, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1150, PALETTE_TO_CREAM, 0, 0, 16, 16, 40, 0),
M(0x114d, PAL_NONE, 0x1151, PALETTE_TO_CREAM, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x114e, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x114f, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1150, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 40, 0),
M(0x114d, PAL_NONE, 0x1151, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1153, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1154, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1155, PAL_NONE, 0, 0, 16, 16, 60, 0),
M(0x1152, PAL_NONE, 0x1155, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1153, PALETTE_TO_RED, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1154, PALETTE_TO_RED, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1155, PALETTE_TO_RED, 0, 0, 16, 16, 60, 0),
M(0x1152, PAL_NONE, 0x1155, PALETTE_TO_RED, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1153, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1154, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1155, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 60, 0),
M(0x1152, PAL_NONE, 0x1155, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1153, PALETTE_TO_GREY, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1154, PALETTE_TO_GREY, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1155, PALETTE_TO_GREY, 0, 0, 16, 16, 60, 0),
M(0x1152, PAL_NONE, 0x1155, PALETTE_TO_GREY, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1153, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1154, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11de, PAL_NONE, 0, 0, 16, 16, 60, 0),
M(0x1152, PAL_NONE, 0x11de, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1153, PALETTE_TO_RED, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1154, PALETTE_TO_RED, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11de, PALETTE_TO_RED, 0, 0, 16, 16, 60, 0),
M(0x1152, PAL_NONE, 0x11de, PALETTE_TO_RED, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1153, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1154, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11de, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 60, 0),
M(0x1152, PAL_NONE, 0x11de, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1153, PALETTE_TO_GREY, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1154, PALETTE_TO_GREY, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11de, PALETTE_TO_GREY, 0, 0, 16, 16, 60, 0),
M(0x1152, PAL_NONE, 0x11de, PALETTE_TO_GREY, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1157, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1158, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1159, PAL_NONE, 0, 0, 16, 16, 60, 0),
M(0x1156, PAL_NONE, 0x1159, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1157, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1158, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1159, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 60, 0),
M(0x1156, PAL_NONE, 0x1159, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1157, PALETTE_TO_CREAM, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1158, PALETTE_TO_CREAM, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1159, PALETTE_TO_CREAM, 0, 0, 16, 16, 60, 0),
M(0x1156, PAL_NONE, 0x1159, PALETTE_TO_CREAM, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1157, PALETTE_TO_YELLOW, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1158, PALETTE_TO_YELLOW, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1159, PALETTE_TO_YELLOW, 0, 0, 16, 16, 60, 0),
M(0x1156, PAL_NONE, 0x1159, PALETTE_TO_YELLOW, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1157, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1158, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11df, PAL_NONE, 0, 0, 16, 16, 60, 0),
M(0x1156, PAL_NONE, 0x11df, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1157, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1158, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11df, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 60, 0),
M(0x1156, PAL_NONE, 0x11df, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1157, PALETTE_TO_CREAM, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1158, PALETTE_TO_CREAM, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11df, PALETTE_TO_CREAM, 0, 0, 16, 16, 60, 0),
M(0x1156, PAL_NONE, 0x11df, PALETTE_TO_CREAM, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1157, PALETTE_TO_YELLOW, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1158, PALETTE_TO_YELLOW, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11df, PALETTE_TO_YELLOW, 0, 0, 16, 16, 60, 0),
M(0x1156, PAL_NONE, 0x11df, PALETTE_TO_YELLOW, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x115b, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x115c, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x115d, PAL_NONE, 0, 0, 16, 16, 60, 0),
M(0x115a, PAL_NONE, 0x115d, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x115b, PALETTE_TO_RED, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x115c, PALETTE_TO_RED, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x115d, PALETTE_TO_RED, 0, 0, 16, 16, 60, 0),
M(0x115a, PAL_NONE, 0x115d, PALETTE_TO_RED, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x115b, PALETTE_TO_ORANGE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x115c, PALETTE_TO_ORANGE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x115d, PALETTE_TO_ORANGE, 0, 0, 16, 16, 60, 0),
M(0x115a, PAL_NONE, 0x115d, PALETTE_TO_ORANGE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x115b, PALETTE_TO_BROWN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x115c, PALETTE_TO_BROWN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x115d, PALETTE_TO_BROWN, 0, 0, 16, 16, 60, 0),
M(0x115a, PAL_NONE, 0x115d, PALETTE_TO_BROWN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x115b, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x115c, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11e0, PAL_NONE, 0, 0, 16, 16, 60, 0),
M(0x115a, PAL_NONE, 0x11e0, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x115b, PALETTE_TO_RED, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x115c, PALETTE_TO_RED, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11e0, PALETTE_TO_RED, 0, 0, 16, 16, 60, 0),
M(0x115a, PAL_NONE, 0x11e0, PALETTE_TO_RED, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x115b, PALETTE_TO_ORANGE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x115c, PALETTE_TO_ORANGE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11e0, PALETTE_TO_ORANGE, 0, 0, 16, 16, 60, 0),
M(0x115a, PAL_NONE, 0x11e0, PALETTE_TO_ORANGE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x115b, PALETTE_TO_BROWN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x115c, PALETTE_TO_BROWN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11e0, PALETTE_TO_BROWN, 0, 0, 16, 16, 60, 0),
M(0x115a, PAL_NONE, 0x11e0, PALETTE_TO_BROWN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1160, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x1161, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x1162, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x115e, PAL_NONE, 0x1162, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x1160, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x1161, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x1162, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x115e, PAL_NONE, 0x1162, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x1166, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x1167, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x1168, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1164, PAL_NONE, 0x1168, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x1166, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x1167, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x1168, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1164, PAL_NONE, 0x1168, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x1160, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x1161, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x1162, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x115f, PAL_NONE, 0x1163, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x1160, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x1161, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x1162, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x115f, PAL_NONE, 0x1163, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x1166, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x1167, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x1168, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1165, PAL_NONE, 0x1169, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x1166, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x1167, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x1168, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x1165, PAL_NONE, 0x1169, PAL_NONE, 0, 0, 16, 16, 20, 0),
M(0x116b, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x116c, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x116d, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116a, PAL_NONE, 0x116d, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116b, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x116c, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x116d, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116a, PAL_NONE, 0x116d, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116b, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x116c, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x116d, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116a, PAL_NONE, 0x116d, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116b, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x116c, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x116d, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116a, PAL_NONE, 0x116d, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116b, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x116c, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e2, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116a, PAL_NONE, 0x11e2, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116b, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x116c, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e2, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116a, PAL_NONE, 0x11e2, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116b, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x116c, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e2, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116a, PAL_NONE, 0x11e2, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116b, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x116c, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e2, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116a, PAL_NONE, 0x11e2, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116f, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1170, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1171, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116e, PAL_NONE, 0x1171, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116f, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1170, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1171, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116e, PAL_NONE, 0x1171, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116f, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1170, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1171, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116e, PAL_NONE, 0x1171, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116f, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1170, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1171, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116e, PAL_NONE, 0x1171, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116f, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1170, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e3, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116e, PAL_NONE, 0x11e3, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116f, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1170, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e3, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116e, PAL_NONE, 0x11e3, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116f, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1170, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e3, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116e, PAL_NONE, 0x11e3, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116f, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1170, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e3, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x116e, PAL_NONE, 0x11e3, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1173, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1174, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1175, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1172, PAL_NONE, 0x1175, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1173, PALETTE_TO_BROWN, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1174, PALETTE_TO_BROWN, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1175, PALETTE_TO_BROWN, 0, 0, 16, 16, 40, 0),
M(0x1172, PAL_NONE, 0x1175, PALETTE_TO_BROWN, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1173, PALETTE_TO_CREAM, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1174, PALETTE_TO_CREAM, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1175, PALETTE_TO_CREAM, 0, 0, 16, 16, 40, 0),
M(0x1172, PAL_NONE, 0x1175, PALETTE_TO_CREAM, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1173, PALETTE_TO_GREY, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1174, PALETTE_TO_GREY, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1175, PALETTE_TO_GREY, 0, 0, 16, 16, 40, 0),
M(0x1172, PAL_NONE, 0x1175, PALETTE_TO_GREY, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1173, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1174, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1175, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x11e4, PAL_NONE, 0x11e5, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1173, PALETTE_TO_BROWN, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1174, PALETTE_TO_BROWN, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1175, PALETTE_TO_BROWN, 0, 0, 16, 16, 40, 0),
M(0x11e4, PAL_NONE, 0x11e5, PALETTE_TO_BROWN, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1173, PALETTE_TO_CREAM, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1174, PALETTE_TO_CREAM, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1175, PALETTE_TO_CREAM, 0, 0, 16, 16, 40, 0),
M(0x11e4, PAL_NONE, 0x11e5, PALETTE_TO_CREAM, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1173, PALETTE_TO_GREY, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1174, PALETTE_TO_GREY, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1175, PALETTE_TO_GREY, 0, 0, 16, 16, 40, 0),
M(0x11e4, PAL_NONE, 0x11e5, PALETTE_TO_GREY, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1176, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1176, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1176, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1176, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1176, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1176, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1176, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1176, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1176, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1176, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1176, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1176, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e6, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11e6, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11e6, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e6, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11e6, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11e6, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e6, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11e6, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11e6, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e6, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11e6, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11e6, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 60, 0),
M(0x1177, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1179, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x117b, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x117b, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1177, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1179, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x117b, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x117b, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1177, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1179, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x117b, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x117b, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1177, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1179, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x117b, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x117b, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1178, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x117a, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x117c, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x117c, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1178, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x117a, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x117c, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x117c, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1178, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x117a, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x117c, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x117c, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1178, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x117a, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x117c, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x117c, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1177, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1179, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e7, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e7, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1177, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1179, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e7, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e7, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1177, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1179, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e7, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e7, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1177, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1179, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e7, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e7, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1178, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x117a, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e8, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e8, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1178, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x117a, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e8, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e8, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1178, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x117a, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e8, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e8, PAL_NONE, 0, 0, 16, 16, 40, 0),
M(0x1178, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x117a, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e8, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11e8, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x117d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x117e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x117f, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x58c, PAL_NONE, 0x117f, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x117d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x117e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x117f, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x58c, PAL_NONE, 0x117f, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x117d, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x117e, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x117f, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 50, 0),
M( 0x58c, PAL_NONE, 0x117f, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x117d, PALETTE_TO_STRUCT_WHITE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x117e, PALETTE_TO_STRUCT_WHITE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x117f, PALETTE_TO_STRUCT_WHITE, 0, 0, 16, 16, 50, 0),
M( 0x58c, PAL_NONE, 0x117f, PALETTE_TO_STRUCT_WHITE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x117d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x117e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x11e1, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x58c, PAL_NONE, 0x11e1, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x117d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x117e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x11e1, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0x58c, PAL_NONE, 0x11e1, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x117d, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x117e, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x11e1, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 50, 0),
M( 0x58c, PAL_NONE, 0x11e3, PALETTE_TO_STRUCT_BROWN, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x117d, PALETTE_TO_STRUCT_WHITE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x117e, PALETTE_TO_STRUCT_WHITE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x11e1, PALETTE_TO_STRUCT_WHITE, 0, 0, 16, 16, 50, 0),
M( 0x58c, PAL_NONE, 0x11e1, PALETTE_TO_STRUCT_WHITE, 0, 0, 16, 16, 50, 0),
M(0x1180, PAL_NONE, 0x1181, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1183, PAL_NONE, 0x1182, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 60, 0),
M(0x1183, PAL_NONE, 0x1182, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 60, 0),
M(0x1183, PAL_NONE, 0x1184, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 60, 0),
M(0x1180, PAL_NONE, 0x1181, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1183, PAL_NONE, 0x1182, PALETTE_TO_ORANGE, 0, 0, 16, 16, 60, 0),
M(0x1183, PAL_NONE, 0x1182, PALETTE_TO_ORANGE, 0, 0, 16, 16, 60, 0),
M(0x1183, PAL_NONE, 0x1184, PALETTE_TO_ORANGE, 0, 0, 16, 16, 60, 0),
M(0x1180, PAL_NONE, 0x1181, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1183, PAL_NONE, 0x1182, PALETTE_TO_BROWN, 0, 0, 16, 16, 60, 0),
M(0x1183, PAL_NONE, 0x1182, PALETTE_TO_BROWN, 0, 0, 16, 16, 60, 0),
M(0x1183, PAL_NONE, 0x1184, PALETTE_TO_BROWN, 0, 0, 16, 16, 60, 0),
M(0x1180, PAL_NONE, 0x1181, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1183, PAL_NONE, 0x1182, PALETTE_TO_GREY, 0, 0, 16, 16, 60, 0),
M(0x1183, PAL_NONE, 0x1182, PALETTE_TO_GREY, 0, 0, 16, 16, 60, 0),
M(0x1183, PAL_NONE, 0x1184, PALETTE_TO_GREY, 0, 0, 16, 16, 60, 0),
M(0x1180, PAL_NONE, 0x1181, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1183, PAL_NONE, 0x1182, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 60, 0),
M(0x1183, PAL_NONE, 0x1182, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 60, 0),
M(0x1183, PAL_NONE, 0x11e9, PALETTE_TO_DARK_GREEN, 0, 0, 16, 16, 60, 0),
M(0x1180, PAL_NONE, 0x1181, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1183, PAL_NONE, 0x1182, PALETTE_TO_ORANGE, 0, 0, 16, 16, 60, 0),
M(0x1183, PAL_NONE, 0x1182, PALETTE_TO_ORANGE, 0, 0, 16, 16, 60, 0),
M(0x1183, PAL_NONE, 0x11e9, PALETTE_TO_ORANGE, 0, 0, 16, 16, 60, 0),
M(0x1180, PAL_NONE, 0x1181, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1183, PAL_NONE, 0x1182, PALETTE_TO_BROWN, 0, 0, 16, 16, 60, 0),
M(0x1183, PAL_NONE, 0x1182, PALETTE_TO_BROWN, 0, 0, 16, 16, 60, 0),
M(0x1183, PAL_NONE, 0x11e9, PALETTE_TO_BROWN, 0, 0, 16, 16, 60, 0),
M(0x1180, PAL_NONE, 0x1181, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1183, PAL_NONE, 0x1182, PALETTE_TO_GREY, 0, 0, 16, 16, 60, 0),
M(0x1183, PAL_NONE, 0x1182, PALETTE_TO_GREY, 0, 0, 16, 16, 60, 0),
M(0x1183, PAL_NONE, 0x11e9, PALETTE_TO_GREY, 0, 0, 16, 16, 60, 0),
M(0x1185, PAL_NONE, 0x1187, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x1189, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x1189, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x118b, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x1187, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x1189, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x1189, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x118b, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x1187, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x1189, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x1189, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x118b, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x1187, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x1189, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x1189, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x118b, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x1188, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x118a, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x118a, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x118c, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x1188, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x118a, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x118a, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x118c, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x1188, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x118a, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x118a, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x118c, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x1188, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x118a, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x118a, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x118c, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x1187, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x1189, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x1189, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x11ea, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x1187, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x1189, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x1189, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x11ea, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x1187, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x1189, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x1189, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x11ea, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x1187, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x1189, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x1189, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1185, PAL_NONE, 0x11ea, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x1188, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x118a, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x118a, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x11eb, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x1188, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x118a, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x118a, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x11eb, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x1188, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x118a, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x118a, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x11eb, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x1188, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x118a, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x118a, PAL_NONE, 0, 0, 16, 16, 10, 0),
M(0x1186, PAL_NONE, 0x11eb, PAL_NONE, 0, 0, 16, 16, 10, 0),
M( 0xf54, PAL_NONE, 0x11ec, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11ed, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11ed, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11ee, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11ec, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11ed, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11ed, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11ee, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11ec, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11ed, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11ed, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11ee, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11ec, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11ed, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11ed, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11ee, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11ef, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f1, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11ef, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f1, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11ef, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f1, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11ef, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f1, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f2, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f3, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f3, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f4, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f2, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f3, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f3, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f4, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f2, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f3, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f3, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f4, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f2, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f3, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f3, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11f4, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x11f5, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x11f5, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x11f5, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x11f6, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x11f6, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x11f6, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x11f7, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x11f7, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x11f7, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x11f8, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x11f8, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x11f8, PAL_NONE, 0, 0, 16, 16, 20, 0),
M( 0xf54, PAL_NONE, 0x11f9, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11fa, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11fa, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11fb, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11f9, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11fa, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11fa, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11fb, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11f9, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11fa, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11fa, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11fb, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11f9, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11fa, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11fa, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x11fb, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11fc, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11fc, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11fc, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11fc, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11fc, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11fc, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11fc, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11fc, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11fc, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11fc, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11fc, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11fc, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11fd, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11fe, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11fe, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11ff, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11fd, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11fe, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11fe, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11ff, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11fd, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11fe, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11fe, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11ff, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11fd, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11fe, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11fe, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x11ff, PAL_NONE, 0, 0, 16, 16, 40, 0),
M( 0xf54, PAL_NONE, 0x1200, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1201, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1201, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1202, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1200, PALETTE_TO_PINK, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1201, PALETTE_TO_PINK, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1201, PALETTE_TO_PINK, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1202, PALETTE_TO_PINK, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1200, PALETTE_TO_YELLOW, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1201, PALETTE_TO_YELLOW, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1201, PALETTE_TO_YELLOW, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1202, PALETTE_TO_YELLOW, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1200, PALETTE_TO_RED, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1201, PALETTE_TO_RED, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1201, PALETTE_TO_RED, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1202, PALETTE_TO_RED, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1203, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1204, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1204, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1205, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1203, PALETTE_TO_PINK, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1204, PALETTE_TO_PINK, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1204, PALETTE_TO_PINK, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1205, PALETTE_TO_PINK, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1203, PALETTE_TO_YELLOW, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1204, PALETTE_TO_YELLOW, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1204, PALETTE_TO_YELLOW, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1205, PALETTE_TO_YELLOW, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1203, PALETTE_TO_RED, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1204, PALETTE_TO_RED, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1204, PALETTE_TO_RED, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1205, PALETTE_TO_RED, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x1206, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x1208, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x1208, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x120a, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x1206, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x1208, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x1208, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x120a, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x1206, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x1208, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x1208, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x120a, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x1206, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x1208, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x1208, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x120a, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x1207, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x1209, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x1209, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x120b, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x1207, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x1209, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x1209, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x120b, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x1207, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x1209, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x1209, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x120b, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x1207, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x1209, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x1209, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x120b, PAL_NONE, 0, 0, 16, 16, 80, 0),
M( 0xf54, PAL_NONE, 0x120c, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x120d, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x120d, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x120e, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x120c, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x120d, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x120d, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x120e, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x120c, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x120d, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x120d, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x120e, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x120c, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x120d, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x120d, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x120e, PAL_NONE, 0, 0, 16, 16, 60, 0),
M( 0xf54, PAL_NONE, 0x120f, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x1210, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x1210, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x1211, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x120f, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x1210, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x1210, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x1211, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x120f, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x1210, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x1210, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x1211, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x120f, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x1210, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x1210, PAL_NONE, 0, 0, 16, 16, 50, 0),
M( 0xf54, PAL_NONE, 0x1211, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1213, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1214, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1214, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1215, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1213, PALETTE_TO_RED, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1214, PALETTE_TO_RED, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1214, PALETTE_TO_RED, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1215, PALETTE_TO_RED, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1213, PALETTE_TO_PINK, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1214, PALETTE_TO_PINK, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1214, PALETTE_TO_PINK, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1215, PALETTE_TO_PINK, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1213, PALETTE_TO_PALE_GREEN, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1214, PALETTE_TO_PALE_GREEN, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1214, PALETTE_TO_PALE_GREEN, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1215, PALETTE_TO_PALE_GREEN, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1216, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1217, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1217, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1218, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1216, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1217, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1217, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1218, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1216, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1217, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1217, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1218, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1216, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1217, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1217, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1218, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1219, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x121a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x121a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x121b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1219, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x121a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x121a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x121b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1219, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x121a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x121a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x121b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1219, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x121a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x121a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x121b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x121c, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x121d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x121d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x121e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x121c, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x121d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x121d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x121e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x121c, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x121d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x121d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x121e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x121c, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x121d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x121d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x121e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x121f, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1220, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1220, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1221, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x121f, PALETTE_TO_PINK, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1220, PALETTE_TO_PINK, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1220, PALETTE_TO_PINK, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1221, PALETTE_TO_PINK, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x121f, PALETTE_TO_MAUVE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1220, PALETTE_TO_MAUVE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1220, PALETTE_TO_MAUVE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1221, PALETTE_TO_MAUVE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x121f, PALETTE_TO_CREAM, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1220, PALETTE_TO_CREAM, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1220, PALETTE_TO_CREAM, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1221, PALETTE_TO_CREAM, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1222, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1223, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1223, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1224, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1222, PALETTE_TO_PINK, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1223, PALETTE_TO_PINK, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1223, PALETTE_TO_PINK, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1224, PALETTE_TO_PINK, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1222, PALETTE_TO_CREAM, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1223, PALETTE_TO_CREAM, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1223, PALETTE_TO_CREAM, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1224, PALETTE_TO_CREAM, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1222, PALETTE_TO_PALE_GREEN, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1223, PALETTE_TO_PALE_GREEN, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1223, PALETTE_TO_PALE_GREEN, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1224, PALETTE_TO_PALE_GREEN, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1225, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1226, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1226, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1227, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1225, PALETTE_TO_PINK, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1226, PALETTE_TO_PINK, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1226, PALETTE_TO_PINK, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1227, PALETTE_TO_PINK, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1225, PALETTE_TO_RED, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1226, PALETTE_TO_RED, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1226, PALETTE_TO_RED, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1227, PALETTE_TO_RED, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1225, PALETTE_TO_PALE_GREEN, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1226, PALETTE_TO_PALE_GREEN, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1226, PALETTE_TO_PALE_GREEN, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1227, PALETTE_TO_PALE_GREEN, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1228, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1229, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1229, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x122a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1228, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1229, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1229, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x122a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1228, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1229, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1229, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x122a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1228, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1229, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1229, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x122a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x122b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x122d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x122d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x122f, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x122b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x122d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x122d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x122f, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x122b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x122d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x122d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x122f, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x122b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x122d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x122d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x122f, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x122c, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x122e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x122e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1230, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x122c, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x122e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x122e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1230, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x122c, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x122e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x122e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1230, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x122c, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x122e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x122e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1230, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1231, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1232, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1232, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1233, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1231, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1232, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1232, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1233, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1231, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1232, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1232, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1233, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1231, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1232, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1232, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1233, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1234, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1235, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1235, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1236, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1234, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1235, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1235, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1236, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1234, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1235, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1235, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1236, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1234, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1235, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1235, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1236, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1237, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1238, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1238, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1239, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1237, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1238, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1238, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1239, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1237, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1238, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1238, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1239, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1237, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1238, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1238, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1239, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x123a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x123b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x123b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x123c, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x123a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x123b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x123b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x123c, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x123a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x123b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x123b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x123c, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x123a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x123b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x123b, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x123c, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x123d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x123e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x123e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x123f, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x123d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x123e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x123e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x123f, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x123d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x123e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x123e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x123f, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x123d, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x123e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x123e, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x123f, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1240, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1241, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1241, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1242, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1240, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1241, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1241, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1242, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1240, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1241, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1241, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1242, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1240, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1241, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1241, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1242, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1256, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1256, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1256, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1256, PALETTE_TO_PALE_GREEN, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1256, PALETTE_TO_PALE_GREEN, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1256, PALETTE_TO_PALE_GREEN, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1256, PALETTE_TO_RED, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1256, PALETTE_TO_RED, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1256, PALETTE_TO_RED, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1256, PALETTE_TO_CREAM, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1256, PALETTE_TO_CREAM, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x1256, PALETTE_TO_CREAM, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1257, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1258, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1258, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1259, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1257, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1258, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1258, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1259, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1257, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1258, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1258, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1259, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1257, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1258, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1258, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1243, PAL_NONE, 0x1259, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x125a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x125a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x125a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x125a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x125a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x125a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x125a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x125a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x125a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x0, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x125a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x125a, PAL_NONE, 0, 0, 16, 16, 50, 0),
M(0x1244, PAL_NONE, 0x125a, PAL_NONE, 0, 0, 16, 16, 50, 0),
};
#undef M
/** Make sure we have the right number of elements: 4 variants * 4 build stages for each house */
assert_compile(lengthof(_town_draw_tile_data) == (NEW_HOUSE_OFFSET) * 4 * 4);
/** Describes the data that defines each house in the game
* @param mnd introduction year of the house
* @param mxd last year it can be built
* @param p population
* @param rc cost multiplier for removing it
* @param bn building name
* @param rr rating decrease if removed
* @param mg mail generation multiplier
* @param ca1 acceptance for 1st CargoID
* @param ca2 acceptance for 2nd CargoID
* @param ca3 acceptance for 3rd CargoID
* @param bf building flags (size, stadium etc...)
* @param ba building availability (zone, climate...)
* @param cg1 1st CargoID available
* @param cg2 2nd CargoID available
* @param cg3 3rd CargoID available
* @see HouseSpec
*/
#define MS(mnd, mxd, p, rc, bn, rr, mg, ca1, ca2, ca3, bf, ba, cg1, cg2, cg3) \
{mnd, mxd, p, rc, bn, rr, mg, {ca1, ca2, ca3}, {cg1, cg2, cg3}, bf, ba, true, \
0, NULL, 0, 0, {0, 0, 0, 0}, 16, NO_EXTRA_FLAG, HOUSE_NO_CLASS, 0, 2, 0, 0, 0, NULL}
/** House specifications from original data */
static const HouseSpec _original_house_specs[] = {
/**
* remove_rating_decrease
* | mail_generation
* min_year | | 1st CargoID acceptance
* | max_year | | | 2nd CargoID acceptance
* | | population | | | | 3th CargoID acceptance
* | | | removal_cost | | | | |
* | | | | building_name | | | | |
* | | | | | | | | | |
* | | | | | | | | | |
* +-building_flags | | | | | | | |
* +-building_availability | | | | | | |
* +-cargoID accepted | | | | | | | |
* | | | | | | | | | | | */
MS(1963, MAX_YEAR, 187, 150, STR_200F_TALL_OFFICE_BLOCK, 140, 70, 8, 3, 4,
TILE_SIZE_1x1,
HZ_TEMP | HZ_ZON5,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 00
MS(1957, MAX_YEAR, 85, 140, STR_2010_OFFICE_BLOCK, 130, 55, 8, 3, 4,
TILE_SIZE_1x1,
HZ_TEMP | HZ_ZON5 | HZ_ZON4,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 01
MS(1968, MAX_YEAR, 40, 100, STR_2011_SMALL_BLOCK_OF_FLATS, 90, 20, 8, 3, 1,
TILE_SIZE_1x1,
HZ_TEMP | HZ_ZON4 | HZ_ZON3 | HZ_ZON2,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 02
MS( 0, MAX_YEAR, 5, 90, STR_2012_CHURCH, 230, 2, 2, 0, 0,
BUILDING_IS_CHURCH | TILE_SIZE_1x1,
HZ_TEMP | HZ_ZON4 | HZ_ZON3 | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 03
MS(1975, MAX_YEAR, 220, 160, STR_2013_LARGE_OFFICE_BLOCK, 160, 85, 10, 4, 6,
BUILDING_IS_ANIMATED | TILE_SIZE_1x1,
HZ_TEMP | HZ_SUBARTC_BELOW | HZ_SUBTROPIC | HZ_ZON5,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 04
MS(1975, MAX_YEAR, 220, 160, STR_2013_LARGE_OFFICE_BLOCK, 160, 85, 10, 4, 6,
BUILDING_IS_ANIMATED | TILE_SIZE_1x1,
HZ_SUBARTC_ABOVE | HZ_ZON5,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 05
MS( 0, MAX_YEAR, 30, 80, STR_2014_TOWN_HOUSES, 80, 12, 4, 1, 0,
TILE_SIZE_1x1,
HZ_TEMP | HZ_ZON4 | HZ_ZON3 | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 06
MS(1959, MAX_YEAR, 140, 180, STR_2015_HOTEL, 150, 22, 6, 1, 2,
TILE_SIZE_1x2,
HZ_TEMP | HZ_ZON5 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 07
MS(1959, MAX_YEAR, 0, 180, STR_2015_HOTEL, 150, 22, 6, 1, 2,
TILE_NO_FLAG,
HZ_NOZNS,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 08
MS(1945, MAX_YEAR, 0, 65, STR_2016_STATUE, 40, 0, 2, 0, 0,
TILE_SIZE_1x1,
HZ_TEMP | HZ_SUBARTC_BELOW | HZ_SUBTROPIC | HZ_ZON5 | HZ_ZON4,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 09
MS(1945, MAX_YEAR, 0, 65, STR_2017_FOUNTAIN, 40, 0, 2, 0, 0,
TILE_SIZE_1x1,
HZ_TEMP | HZ_SUBARTC_BELOW | HZ_SUBTROPIC | HZ_ZON5,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 0A
MS( 0, MAX_YEAR, 0, 60, STR_2018_PARK, 75, 0, 2, 0, 0,
TILE_SIZE_1x1,
HZ_TEMP | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 0B
MS(1935, MAX_YEAR, 0, 60, STR_2018_PARK, 75, 0, 2, 0, 0,
TILE_SIZE_1x1,
HZ_TEMP | HZ_ZON4,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 0C
MS(1951, MAX_YEAR, 150, 130, STR_2019_OFFICE_BLOCK, 110, 65, 8, 2, 4,
TILE_SIZE_1x1,
HZ_TEMP | HZ_ZON5 | HZ_ZON4,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 0D
MS(1930, 1960, 95, 110, STR_201A_SHOPS_AND_OFFICES, 100, 48, 6, 2, 3,
TILE_SIZE_1x1,
HZ_TEMP | HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 0E
MS(1930, 1960, 95, 105, STR_201A_SHOPS_AND_OFFICES, 100, 48, 6, 2, 3,
TILE_SIZE_1x1,
HZ_TEMP | HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 0F
MS(1930, 1960, 95, 107, STR_201A_SHOPS_AND_OFFICES, 100, 48, 6, 2, 3,
TILE_SIZE_1x1,
HZ_TEMP | HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 10
MS(1977, MAX_YEAR, 130, 200, STR_201B_MODERN_OFFICE_BUILDING, 150, 50, 10, 3, 6,
TILE_SIZE_1x1,
HZ_TEMP | HZ_SUBARTC_BELOW | HZ_SUBTROPIC | HZ_ZON5,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 11
MS(1983, MAX_YEAR, 6, 145, STR_201C_WAREHOUSE, 110, 10, 6, 3, 8,
TILE_SIZE_1x1,
HZ_TEMP | HZ_ZON5,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 12
MS(1985, MAX_YEAR, 110, 155, STR_201D_OFFICE_BLOCK, 110, 55, 6, 2, 6,
TILE_SIZE_1x1,
HZ_TEMP | HZ_ZON5,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 13
MS( 0, MAX_YEAR, 65, 250, STR_201E_STADIUM, 300, 5, 4, 0, 0,
BUILDING_IS_STADIUM | TILE_SIZE_2x2,
HZ_TEMP | HZ_ZON4 | HZ_ZON3 | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 14
MS( 0, MAX_YEAR, 0, 250, STR_201E_STADIUM, 300, 5, 4, 0, 0,
TILE_NO_FLAG,
HZ_NOZNS,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 15
MS( 0, MAX_YEAR, 0, 250, STR_201E_STADIUM, 300, 5, 4, 0, 0,
TILE_NO_FLAG,
HZ_NOZNS,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 16
MS( 0, MAX_YEAR, 0, 250, STR_201E_STADIUM, 300, 5, 4, 0, 0,
TILE_NO_FLAG,
HZ_NOZNS,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 17
MS( 0, 1951, 15, 70, STR_201F_OLD_HOUSES, 75, 6, 3, 1, 0,
TILE_SIZE_1x1,
HZ_TEMP | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 18
MS( 0, 1952, 12, 75, STR_2036_COTTAGES, 75, 7, 3, 1, 0,
TILE_SIZE_1x1,
HZ_TEMP | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 19
MS(1931, MAX_YEAR, 13, 71, STR_2037_HOUSES, 75, 8, 3, 1, 0,
TILE_SIZE_1x1,
HZ_TEMP | HZ_ZON4 | HZ_ZON3 | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 1A
MS(1935, MAX_YEAR, 100, 135, STR_2038_FLATS, 100, 35, 7, 2, 2,
TILE_SIZE_1x1,
HZ_TEMP | HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 1B
MS(1963, MAX_YEAR, 170, 145, STR_2039_TALL_OFFICE_BLOCK, 170, 50, 8, 3, 3,
TILE_SIZE_1x1,
HZ_TEMP | HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 1C
MS( 0, 1955, 100, 132, STR_203A_SHOPS_AND_OFFICES, 135, 40, 6, 2, 3,
TILE_SIZE_1x1,
HZ_TEMP | HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 1D
MS(1973, MAX_YEAR, 180, 155, STR_203B_SHOPS_AND_OFFICES, 180, 64, 8, 3, 3,
TILE_SIZE_1x1,
HZ_TEMP | HZ_SUBTROPIC | HZ_ZON5 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 1E
MS( 0, MAX_YEAR, 35, 220, STR_203C_THEATER, 230, 23, 8, 2, 2,
TILE_SIZE_1x1,
HZ_TEMP | HZ_ZON5 | HZ_ZON4,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 1F
MS(1958, MAX_YEAR, 65, 250, STR_203D_STADIUM, 300, 5, 4, 0, 0,
BUILDING_IS_STADIUM | TILE_SIZE_2x2,
HZ_TEMP | HZ_SUBARTC_BELOW | HZ_SUBTROPIC | HZ_ZON4 | HZ_ZON3 | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 20
MS(1958, MAX_YEAR, 0, 250, STR_203D_STADIUM, 300, 5, 4, 0, 0,
TILE_NO_FLAG,
HZ_NOZNS,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 21
MS(1958, MAX_YEAR, 0, 250, STR_203D_STADIUM, 300, 5, 4, 0, 0,
TILE_NO_FLAG,
HZ_NOZNS,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 22
MS(1958, MAX_YEAR, 0, 250, STR_203D_STADIUM, 300, 5, 4, 0, 0,
TILE_NO_FLAG,
HZ_NOZNS,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 23
MS(2000, MAX_YEAR, 140, 170, STR_203E_OFFICES, 250, 65, 8, 3, 2,
TILE_SIZE_1x1,
HZ_TEMP | HZ_SUBARTC_BELOW | HZ_SUBTROPIC | HZ_ZON5 | HZ_ZON4,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 24
MS( 0, 1960, 15, 70, STR_203F_HOUSES, 75, 6, 3, 1, 1,
TILE_SIZE_1x1,
HZ_SUBARTC_BELOW | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_FOOD), // 25
MS( 0, 1960, 15, 70, STR_203F_HOUSES, 75, 6, 3, 1, 1,
TILE_SIZE_1x1,
HZ_SUBARTC_ABOVE | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_FOOD), // 26
MS(1945, MAX_YEAR, 35, 210, STR_2040_CINEMA, 230, 23, 8, 2, 2,
TILE_SIZE_1x1,
HZ_TEMP | HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 27
MS(1983, MAX_YEAR, 180, 250, STR_2041_SHOPPING_MALL, 300, 5, 8, 2, 3,
TILE_SIZE_2x2,
HZ_TEMP | HZ_ZON5 | HZ_ZON4 | HZ_ZON3 |HZ_ZON2,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 28
MS(1983, MAX_YEAR, 0, 250, STR_2041_SHOPPING_MALL, 300, 5, 8, 2, 3,
TILE_NO_FLAG,
HZ_NOZNS,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 29
MS(1983, MAX_YEAR, 0, 250, STR_2041_SHOPPING_MALL, 300, 5, 8, 2, 3,
TILE_NO_FLAG,
HZ_NOZNS,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 2A
MS(1983, MAX_YEAR, 0, 250, STR_2041_SHOPPING_MALL, 300, 5, 8, 2, 3,
TILE_NO_FLAG,
HZ_NOZNS,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 2B
MS( 0, MAX_YEAR, 80, 100, STR_2038_FLATS, 90, 20, 5, 2, 2,
TILE_SIZE_1x1,
HZ_SUBARTC_BELOW | HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_FOOD), // 2C
MS( 0, MAX_YEAR, 80, 100, STR_2038_FLATS, 90, 20, 5, 2, 2,
TILE_SIZE_1x1,
HZ_SUBARTC_ABOVE | HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_FOOD), // 2D
MS( 0, MAX_YEAR, 16, 70, STR_203F_HOUSES, 70, 6, 3, 1, 2,
TILE_SIZE_1x1,
HZ_SUBARTC_BELOW | HZ_ZON4 | HZ_ZON3 | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_FOOD), // 2E
MS( 0, MAX_YEAR, 16, 70, STR_203F_HOUSES, 70, 6, 3, 1, 2,
TILE_SIZE_1x1,
HZ_SUBARTC_ABOVE | HZ_ZON4 | HZ_ZON3 | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_FOOD), // 2F
MS( 0, 1963, 14, 80, STR_203F_HOUSES, 70, 6, 3, 1, 2,
TILE_SIZE_1x1,
HZ_SUBARTC_BELOW | HZ_ZON3 | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_FOOD), // 30
MS( 0, 1963, 14, 80, STR_203F_HOUSES, 70, 6, 3, 1, 2,
TILE_SIZE_1x1,
HZ_SUBARTC_ABOVE | HZ_ZON3 | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_FOOD), // 31
MS(1966, MAX_YEAR, 135, 150, STR_200F_TALL_OFFICE_BLOCK, 120, 60, 8, 3, 4,
TILE_SIZE_1x1,
HZ_SUBARTC_BELOW | HZ_SUBTROPIC | HZ_ZON5 | HZ_ZON4,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 32
MS(1966, MAX_YEAR, 135, 150, STR_200F_TALL_OFFICE_BLOCK, 120, 60, 8, 3, 4,
TILE_SIZE_1x1,
HZ_SUBARTC_ABOVE | HZ_ZON5 | HZ_ZON4,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 33
MS(1970, MAX_YEAR, 170, 170, STR_200F_TALL_OFFICE_BLOCK, 130, 70, 9, 3, 4,
TILE_SIZE_1x1,
HZ_SUBARTC_BELOW | HZ_ZON5 | HZ_ZON4,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 34
MS(1970, MAX_YEAR, 170, 170, STR_200F_TALL_OFFICE_BLOCK, 130, 70, 9, 3, 4,
TILE_SIZE_1x1,
HZ_SUBARTC_ABOVE | HZ_ZON5 | HZ_ZON4,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 35
MS(1974, MAX_YEAR, 210, 200, STR_200F_TALL_OFFICE_BLOCK, 140, 80, 10, 3, 5,
TILE_SIZE_1x1,
HZ_SUBARTC_BELOW | HZ_SUBTROPIC | HZ_ZON5 | HZ_ZON4,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 36
MS(1974, MAX_YEAR, 210, 200, STR_200F_TALL_OFFICE_BLOCK, 140, 80, 10, 3, 5,
TILE_SIZE_1x1,
HZ_SUBARTC_ABOVE | HZ_ZON5 | HZ_ZON4,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 37
MS( 0, MAX_YEAR, 10, 60, STR_203F_HOUSES, 60, 5, 2, 1, 1,
TILE_SIZE_1x1,
HZ_SUBARTC_BELOW | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_FOOD), // 38
MS( 0, MAX_YEAR, 10, 60, STR_203F_HOUSES, 60, 5, 2, 1, 1,
TILE_SIZE_1x1,
HZ_SUBARTC_ABOVE | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_FOOD), // 39
MS( 0, MAX_YEAR, 25, 100, STR_201A_SHOPS_AND_OFFICES, 80, 20, 3, 1, 1,
TILE_SIZE_1x1,
HZ_SUBARTC_BELOW | HZ_ZON5 | HZ_ZON4 | HZ_ZON3 | HZ_ZON2,
CT_PASSENGERS, CT_MAIL, CT_FOOD), // 3A
MS( 0, MAX_YEAR, 25, 100, STR_201A_SHOPS_AND_OFFICES, 80, 20, 3, 1, 1,
TILE_SIZE_1x1,
HZ_SUBARTC_ABOVE | HZ_ZON5 | HZ_ZON4 | HZ_ZON3 | HZ_ZON2,
CT_PASSENGERS, CT_MAIL, CT_FOOD), // 3B
MS( 0, MAX_YEAR, 6, 85, STR_2012_CHURCH, 230, 2, 2, 0, 0,
BUILDING_IS_CHURCH | TILE_SIZE_1x1,
HZ_SUBARTC_BELOW | HZ_ZON4 | HZ_ZON3 | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 3C
MS( 0, MAX_YEAR, 6, 85, STR_2012_CHURCH, 230, 2, 2, 0, 0,
BUILDING_IS_CHURCH | TILE_SIZE_1x1,
HZ_SUBARTC_ABOVE | HZ_ZON4 | HZ_ZON3 | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 3D
MS( 0, MAX_YEAR, 17, 80, STR_203F_HOUSES, 80, 7, 3, 1, 1,
TILE_SIZE_1x1,
HZ_SUBARTC_BELOW | HZ_ZON3 | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_FOOD), // 3E
MS( 0, MAX_YEAR, 17, 80, STR_203F_HOUSES, 80, 7, 3, 1, 1,
TILE_SIZE_1x1,
HZ_SUBARTC_ABOVE | HZ_ZON3 | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_FOOD), // 3F
MS( 0, 1960, 90, 140, STR_201A_SHOPS_AND_OFFICES, 110, 45, 6, 2, 3,
TILE_SIZE_1x1,
HZ_SUBARTC_BELOW| HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 40
MS( 0, 1960, 90, 140, STR_201A_SHOPS_AND_OFFICES, 110, 45, 6, 2, 3,
TILE_SIZE_1x1,
HZ_SUBARTC_ABOVE| HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 41
MS(1972, MAX_YEAR, 140, 160, STR_2015_HOTEL, 160, 25, 6, 1, 3,
TILE_SIZE_1x2,
HZ_SUBARTC_BELOW| HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_FOOD), // 42
MS(1972, MAX_YEAR, 0, 160, STR_2015_HOTEL, 160, 25, 6, 1, 2,
TILE_NO_FLAG,
HZ_NOZNS,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 43
MS(1972, MAX_YEAR, 140, 160, STR_2015_HOTEL, 160, 25, 6, 1, 3,
TILE_SIZE_1x2,
HZ_SUBARTC_ABOVE| HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_FOOD), // 44
MS(1972, MAX_YEAR, 0, 160, STR_2015_HOTEL, 160, 25, 6, 1, 2,
TILE_NO_FLAG,
HZ_NOZNS,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 45
MS(1963, MAX_YEAR, 105, 130, STR_201A_SHOPS_AND_OFFICES, 105, 50, 7, 2, 3,
TILE_SIZE_1x1,
HZ_SUBARTC_BELOW | HZ_SUBTROPIC | HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 46
MS(1963, MAX_YEAR, 105, 130, STR_201A_SHOPS_AND_OFFICES, 105, 50, 7, 2, 3,
TILE_SIZE_1x1,
HZ_SUBARTC_ABOVE| HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 47
MS(1978, MAX_YEAR, 190, 190, STR_200F_TALL_OFFICE_BLOCK, 135, 75, 9, 3, 4,
TILE_SIZE_1x1,
HZ_SUBARTC_BELOW | HZ_ZON5 | HZ_ZON4,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 48
MS(1978, MAX_YEAR, 190, 190, STR_200F_TALL_OFFICE_BLOCK, 135, 75, 9, 3, 4,
TILE_SIZE_1x1,
HZ_SUBARTC_ABOVE | HZ_ZON5 | HZ_ZON4,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 49
MS(1967, MAX_YEAR, 250, 140, STR_200F_TALL_OFFICE_BLOCK, 200, 60, 7, 2, 2,
TILE_SIZE_2x1,
HZ_SUBARTC_BELOW| HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 4A
MS(1967, MAX_YEAR, 0, 140, STR_200F_TALL_OFFICE_BLOCK, 200, 60, 7, 2, 2,
TILE_NO_FLAG,
HZ_NOZNS,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 4B
MS(1967, MAX_YEAR, 250, 140, STR_200F_TALL_OFFICE_BLOCK, 200, 60, 7, 2, 2,
TILE_SIZE_2x1,
HZ_SUBARTC_ABOVE | HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 4C
MS(1967, MAX_YEAR, 0, 140, STR_200F_TALL_OFFICE_BLOCK, 200, 60, 7, 2, 2,
TILE_NO_FLAG,
HZ_NOZNS,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 4D
MS( 0, MAX_YEAR, 16, 80, STR_203F_HOUSES, 80, 6, 3, 1, 2,
TILE_SIZE_1x1,
HZ_SUBTROPIC | HZ_ZON5 | HZ_ZON4 | HZ_ZON3 | HZ_ZON2,
CT_PASSENGERS, CT_MAIL, CT_FOOD), // 4E
MS( 0, MAX_YEAR, 16, 80, STR_203F_HOUSES, 80, 6, 3, 1, 2,
TILE_SIZE_1x1,
HZ_SUBTROPIC | HZ_ZON5 | HZ_ZON4 | HZ_ZON3 | HZ_ZON2,
CT_PASSENGERS, CT_MAIL, CT_FOOD), // 4F
MS( 0, MAX_YEAR, 16, 80, STR_203F_HOUSES, 80, 5, 3, 1, 2,
TILE_SIZE_1x1,
HZ_SUBTROPIC | HZ_ZON5 | HZ_ZON4 | HZ_ZON3 | HZ_ZON2,
CT_PASSENGERS, CT_MAIL, CT_FOOD), // 50
MS( 0, MAX_YEAR, 7, 30, STR_203F_HOUSES, 30, 4, 3, 1, 1,
TILE_SIZE_1x1,
HZ_SUBTROPIC | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_FOOD), // 51
MS( 0, MAX_YEAR, 45, 130, STR_2038_FLATS, 95, 15, 6, 2, 1,
TILE_SIZE_1x1,
HZ_SUBTROPIC | HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 52
MS( 0, MAX_YEAR, 8, 90, STR_2012_CHURCH, 200, 3, 2, 0, 0,
BUILDING_IS_CHURCH | TILE_SIZE_1x1,
HZ_SUBTROPIC | HZ_ZON4 | HZ_ZON3 | HZ_ZON2,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 53
MS( 0, MAX_YEAR, 18, 80, STR_203F_HOUSES, 80, 7, 3, 1, 2,
TILE_SIZE_1x1,
HZ_SUBTROPIC | HZ_ZON5 | HZ_ZON4 | HZ_ZON3 | HZ_ZON2,
CT_PASSENGERS, CT_MAIL, CT_FOOD), // 54
MS(1973, MAX_YEAR, 90, 110, STR_2038_FLATS, 95, 24, 6, 2, 1,
TILE_SIZE_1x1,
HZ_SUBTROPIC | HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 55
MS(1962, MAX_YEAR, 120, 120, STR_2038_FLATS, 95, 25, 6, 2, 1,
TILE_SIZE_1x1,
HZ_SUBTROPIC | HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 56
MS(1984, MAX_YEAR, 250, 190, STR_200F_TALL_OFFICE_BLOCK, 140, 80, 8, 3, 4,
TILE_SIZE_2x1,
HZ_SUBTROPIC | HZ_ZON5 | HZ_ZON4,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 57
MS(1984, MAX_YEAR, 0, 190, STR_200F_TALL_OFFICE_BLOCK, 140, 80, 8, 3, 4,
TILE_NO_FLAG,
HZ_SUBTROPIC,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 58
MS( 0, MAX_YEAR, 80, 110, STR_2038_FLATS, 95, 23, 6, 2, 1,
TILE_SIZE_1x1,
HZ_SUBTROPIC | HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 59
MS(1993, MAX_YEAR, 180, 180, STR_200F_TALL_OFFICE_BLOCK, 150, 90, 8, 3, 4,
TILE_SIZE_1x1,
HZ_SUBTROPIC | HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_GOODS), // 5A
MS( 0, MAX_YEAR, 8, 90, STR_2012_CHURCH, 200, 3, 2, 0, 0,
BUILDING_IS_CHURCH | TILE_SIZE_1x1,
HZ_TOYLND | HZ_ZON5 | HZ_ZON4 | HZ_ZON3 | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_CANDY), // 5B
MS( 0, MAX_YEAR, 18, 90, STR_203F_HOUSES, 90, 5, 6, 2, 2,
TILE_SIZE_1x1,
HZ_TOYLND | HZ_ZON5 | HZ_ZON4 | HZ_ZON3 | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_CANDY), // 5C
MS( 0, MAX_YEAR, 7, 70, STR_203F_HOUSES, 50, 3, 3, 1, 1,
TILE_SIZE_1x1,
HZ_TOYLND | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_CANDY), // 5D
MS( 0, MAX_YEAR, 15, 80, STR_203F_HOUSES, 75, 6, 3, 1, 2,
TILE_SIZE_1x1,
HZ_TOYLND | HZ_ZON4 | HZ_ZON3 | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_CANDY), // 5E
MS( 0, MAX_YEAR, 17, 80, STR_203F_HOUSES, 75, 6, 3, 1, 2,
TILE_SIZE_1x1,
HZ_TOYLND | HZ_ZON4 | HZ_ZON3 | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_CANDY), // 5F
MS( 0, MAX_YEAR, 19, 80, STR_203F_HOUSES, 75, 6, 3, 1, 2,
TILE_SIZE_1x1,
HZ_TOYLND | HZ_ZON4 | HZ_ZON3 | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_CANDY), // 60
MS( 0, MAX_YEAR, 21, 80, STR_203F_HOUSES, 75, 6, 3, 1, 2,
TILE_SIZE_1x1,
HZ_TOYLND | HZ_ZON4 | HZ_ZON3 | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_CANDY), // 61
MS( 0, MAX_YEAR, 75, 160, STR_200F_TALL_OFFICE_BLOCK, 130, 20, 8, 4, 2,
TILE_SIZE_1x1,
HZ_TOYLND | HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_CANDY), // 62
MS( 0, MAX_YEAR, 35, 90, STR_203F_HOUSES, 80, 9, 4, 1, 2,
TILE_SIZE_1x2,
HZ_TOYLND | HZ_ZON5 | HZ_ZON4 | HZ_ZON3 | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_CANDY), // 63
MS( 0, MAX_YEAR, 0, 90, STR_203F_HOUSES, 80, 0, 4, 1, 2,
TILE_NO_FLAG,
HZ_NOZNS,
CT_PASSENGERS, CT_MAIL, CT_CANDY), // 64
MS( 0, MAX_YEAR, 85, 150, STR_200F_TALL_OFFICE_BLOCK, 130, 18, 8, 4, 2,
TILE_SIZE_1x1,
HZ_TOYLND | HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_CANDY), // 65
MS( 0, MAX_YEAR, 11, 60, STR_2059_IGLOO, 45, 3, 3, 1, 1,
TILE_SIZE_1x1,
HZ_TOYLND | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_CANDY), // 66
MS( 0, MAX_YEAR, 10, 60, STR_205A_TEPEES, 45, 3, 3, 1, 1,
TILE_SIZE_1x1,
HZ_TOYLND | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_CANDY), // 67
MS( 0, MAX_YEAR, 67, 140, STR_201A_SHOPS_AND_OFFICES, 130, 22, 8, 4, 4,
TILE_SIZE_1x1,
HZ_TOYLND | HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_FIZZY_DRINKS), // 68
MS( 0, MAX_YEAR, 86, 145, STR_201A_SHOPS_AND_OFFICES, 130, 23, 8, 4, 4,
TILE_SIZE_1x1,
HZ_TOYLND | HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_FIZZY_DRINKS), // 69
MS( 0, MAX_YEAR, 95, 165, STR_200F_TALL_OFFICE_BLOCK, 130, 28, 8, 4, 2,
TILE_SIZE_1x1,
HZ_TOYLND | HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_CANDY), // 6A
MS( 0, MAX_YEAR, 30, 90, STR_2016_STATUE, 70, 10, 4, 1, 2,
TILE_SIZE_1x1,
HZ_TOYLND | HZ_ZON5 | HZ_ZON4 | HZ_ZON3,
CT_PASSENGERS, CT_MAIL, CT_CANDY), // 6B
MS( 0, MAX_YEAR, 25, 75, STR_205B_TEAPOT_HOUSE, 65, 8, 3, 1, 2,
TILE_SIZE_1x1,
HZ_TOYLND | HZ_ZON5 | HZ_ZON4 | HZ_ZON3 | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_CANDY), // 6C
MS( 0, MAX_YEAR, 18, 85, STR_205C_PIGGY_BANK, 95, 7, 3, 2, 4,
TILE_SIZE_1x1,
HZ_TOYLND | HZ_ZON5 | HZ_ZON4 | HZ_ZON3 | HZ_ZON2 | HZ_ZON1,
CT_PASSENGERS, CT_MAIL, CT_FIZZY_DRINKS), // 6D
};
#undef MS
/** Make sure we have the right number of elements: one entry for each house */
assert_compile(lengthof(_original_house_specs) == NEW_HOUSE_OFFSET);
| 141,348
|
C++
|
.h
| 2,262
| 60.049956
| 108
| 0.556474
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,636
|
namegen.h
|
EnergeticBark_OpenTTD-3DS/src/table/namegen.h
|
/* $Id$ */
/** @file table/namegen.h Namepart tables for the town name generator */
#include "../core/enum_type.hpp"
static const char * const _name_original_english_1[] = {
"Great ",
"Little ",
"New ",
"Fort ",
};
static const char * const _name_original_english_2[] = {
"Wr",
"B",
"C",
"Ch",
"Br",
"D",
"Dr",
"F",
"Fr",
"Fl",
"G",
"Gr",
"H",
"L",
"M",
"N",
"P",
"Pr",
"Pl",
"R",
"S",
"S",
"Sl",
"T",
"Tr",
"W",
};
static const char * const _name_original_english_3[] = {
"ar",
"a",
"e",
"in",
"on",
"u",
"un",
"en",
};
static const char * const _name_original_english_4[] = {
"n",
"ning",
"ding",
"d",
"",
"t",
"fing",
};
static const char * const _name_original_english_5[] = {
"ville",
"ham",
"field",
"ton",
"town",
"bridge",
"bury",
"wood",
"ford",
"hall",
"ston",
"way",
"stone",
"borough",
"ley",
"head",
"bourne",
"pool",
"worth",
"hill",
"well",
"hattan",
"burg",
};
static const char * const _name_original_english_6[] = {
"-on-sea",
" Bay",
" Market",
" Cross",
" Bridge",
" Falls",
" City",
" Ridge",
" Springs",
};
static const char * const _name_additional_english_prefix[] = {
"Great ",
"Little ",
"New ",
"Fort ",
"St. ",
"Old ",
};
static const char * const _name_additional_english_1a[] = {
"Pen",
"Lough",
"Stam",
"Aber",
"Acc",
"Ex",
"Ax",
"Bre",
"Cum",
"Dun",
"Fin",
"Inver",
"Kin",
"Mon",
"Nan",
"Nant",
"Pit",
"Pol",
"Pont",
"Strath",
"Tre",
"Tilly",
"Beck",
"Canter",
"Bath",
"Liver",
"Mal",
"Ox",
"Bletch",
"Maccles",
"Grim",
"Wind",
"Sher",
"Gates",
"Orp",
"Brom",
"Lewis",
"Whit",
"White",
"Worm",
"Tyne",
"Avon",
"Stan",
};
static const char * const _name_additional_english_1b1[] = {
"Wr",
"B",
"C",
"Ch",
"Br",
"D",
"Dr",
"F",
"Fr",
"Fl",
"G",
"Gr",
"H",
"L",
"M",
"N",
"P",
"Pr",
"Pl",
"R",
"S",
"S",
"Sl",
"T",
"Tr",
"W",
};
static const char * const _name_additional_english_1b2[] = {
"ar",
"a",
"e",
"in",
"on",
"u",
"o",
"ee",
"es",
"ea",
"un",
"en",
};
static const char * const _name_additional_english_1b3a[] = {
"n",
"d",
"",
"t",
"",
"",
};
static const char * const _name_additional_english_1b3b[] = {
"ning",
"ding",
"fing",
};
static const char * const _name_additional_english_2[] = {
"ville",
"ham",
"field",
"ton",
"town",
"borough",
"bridge",
"bury",
"wood",
"ditch",
"ford",
"hall",
"dean",
"leigh",
"dore",
"ston",
"stow",
"church",
"wich",
"low",
"way",
"stone",
"minster",
"ley",
"head",
"bourne",
"pool",
"worth",
"hill",
"well",
"hattan",
"burg",
"berg",
"burgh",
"port",
"stoke",
"haven",
"stable",
"stock",
"side",
"brook",
"don",
"den",
"down",
"nor",
"grove",
"combe",
"by",
"say",
"ney",
"chester",
"dale",
"ness",
"shaw",
"thwaite",
};
static const char * const _name_additional_english_3[] = {
"-on-sea",
" Bay",
" Market",
" Beeches",
" Common",
" Park",
" Heath",
" Marsh",
" Green",
" Castle",
" End",
" Rivers",
" Cross",
" Bridge",
" Falls",
" City",
" Ridge",
" Springs",
};
static const char * const _name_austrian_a1[] = {
"Bad ",
"Deutsch ",
"Gross ",
"Klein ",
"Markt ",
"Maria ",
};
static const char * const _name_austrian_a2[] = {
"Aus",
"Alten",
"Braun",
"V\xC3\xB6sl",
"Mittern",
"Nuss",
"Neu",
"Walters",
"Breiten",
"Eisen",
"Feld",
"Mittern",
"Gall",
"Obern",
"Grat",
"Heiligen",
"Hof",
"Holla",
"Stein",
"Eber",
"Eggen",
"Enzers",
"Frauen",
"Herren",
"Hof",
"H\xC3\xBCtt",
"Kaisers",
"K\xC3\xB6nigs",
"Knittel",
"Lang",
"Ober",
"Ollers",
"Pfaffen",
"Potten",
"Salz",
"Schwarz",
"Stocker",
"Unter",
"Utten",
"V\xC3\xB6sen",
"Vill",
"Weissen",
};
static const char * const _name_austrian_a3[] = {
"see",
"bach",
"dorf",
"ach",
"stein",
"hofen",
"au",
"ach",
"kirch",
"kirchen",
"kreuz",
"brunn",
"siedl",
"markt",
"wang",
"haag",
};
static const char * const _name_austrian_a4[] = {
"Bruck",
"Brunn",
"Gams",
"Grein",
"Ried",
"Faak",
"Zell",
"Spital",
"Kirchberg",
"Saal",
"Taferl",
"Wald",
};
static const char * const _name_austrian_a5[] = {
"St. ",
"Sankt ",
};
static const char * const _name_austrian_a6[] = {
"Aegyd",
"Andr\xC3\xA4",
"Georgen",
"Jakob",
"Johann",
"Leonhard",
"Marein",
"Lorenzen",
"Margarethen",
"Martin",
"Michael",
"Nikolai",
"Oswald",
"Peter",
"P\xC3\xB6lten",
"Stefan",
"Stephan",
"Thomas",
"Veit",
"Wolfgang",
};
static const char * const _name_austrian_f1[] = {
" an der ",
" ob der ",
};
static const char * const _name_austrian_f2[] = {
"Donau",
"Steyr",
"Lafnitz",
"Leitha",
"Thaya",
"Gail",
"Drau",
"Salzach",
"Ybbs",
"Traisen",
"Enns",
"Mur",
"Ill",
};
static const char * const _name_austrian_b1[] = {
" am ",
};
static const char * const _name_austrian_b2[] = {
"Brenner",
"Dachstein",
"Gebirge",
"Grossglockner",
"Hausruck",
"Semmering",
"Wagram",
"Wechsel",
"Wilden Kaiser",
"Ziller",
};
static const char * const _name_german_real[] = {
"Berlin",
"Bonn",
"Bremen",
"Cottbus",
"Chemnitz",
"Dortmund",
"Dresden",
"Erfurt",
"Erlangen",
"Essen",
"Fulda",
"Gera",
"Kassel",
"Kiel",
"K\xC3\xB6ln",
"L\xC3\xBC""beck",
"Magdeburg",
"M\xC3\xBCnchen",
"Potsdam",
"Stuttgart",
"Wiesbaden",
};
static const char * const _name_german_pre[] = {
"Bad ",
"Klein ",
"Neu ",
};
static const char * const _name_german_1[] = {
"Alb",
"Als",
"Ander",
"Arns",
"Bruns",
"Bam",
"Biele",
"Cloppen",
"Co",
"Duis",
"D\xC3\xBCssel",
"Dannen",
"Elb",
"Els",
"Elster",
"Eichen",
"Ems",
"Fahr",
"Falken",
"Flens",
"Frank",
"Frei",
"Freuden",
"Fried",
"F\xC3\xBCrsten",
"Hahn",
"Ham",
"Harz",
"Heidel",
"Hers",
"Herz",
"Holz",
"Hildes",
"Inns",
"Ilsen",
"Ingols",
"Kel",
"Kies",
"Korn",
"Kor",
"Kreuz",
"Kulm",
"Langen",
"Lim",
"Lohr",
"L\xC3\xBCne",
"Mel",
"Michels",
"M\xC3\xBChl",
"Naum",
"Nest",
"Nord",
"Nort",
"Nien",
"Nidda",
"Nieder",
"N\xC3\xBCrn",
"Ober",
"Offen",
"Osna",
"Olden",
"Ols",
"Oranien",
"Pader",
"Quedlin",
"Quer",
"Ravens",
"Regens",
"Rott",
"Ros",
"R\xC3\xBCssels",
"Saal",
"Saar",
"Salz",
"Sch\xC3\xB6ne",
"Schwein",
"Sonder",
"Sonnen",
"Stein",
"Strals",
"Straus",
"S\xC3\xBC""d",
"Ton",
"Unter",
"Ur",
"Vor",
"Wald",
"War",
"Wert",
"Wester",
"Witten",
"Wolfs",
"W\xC3\xBCrz",
};
static const char * const _name_german_2[] = {
"bach",
"berg",
"br\xC3\xBC""ck",
"br\xC3\xBC""cken",
"burg",
"dorf",
"feld",
"furt",
"hausen",
"haven",
"heim",
"horst",
"mund",
"m\xC3\xBCnster",
"stadt",
"wald",
};
static const char * const _name_german_3_an_der[] = {
" an der ",
};
static const char * const _name_german_3_am[] = {
" am ",
};
static const char * const _name_german_4_an_der[] = {
"Oder",
"Spree",
"Donau",
"Saale",
"Elbe",
};
static const char * const _name_german_4_am[] = {
"Main",
};
static const char * const _name_spanish_real[] = {
"Caracas",
"Maracay",
"Maracaibo",
"Valencia",
"El Dorado",
"Morrocoy",
"Cata",
"Cataito",
"Ciudad Bolivar",
"Barquisimeto",
"Merida",
"Puerto Ordaz",
"Santa Elena",
"San Juan",
"San Luis",
"San Rafael",
"Santiago",
"Barcelona",
"Barinas",
"San Cristobal",
"San Fransisco",
"San Martin",
"Guayana",
"San Carlos",
"El Limon",
"Coro",
"Corocoro",
"Puerto Ayacucho",
"Elorza",
"Arismendi",
"Trujillo",
"Carupano",
"Anaco",
"Lima",
"Cuzco",
"Iquitos",
"Callao",
"Huacho",
"Camana",
"Puerto Chala",
"Santa Cruz",
"Quito",
"Cuenca",
"Huacho",
"Tulcan",
"Esmeraldas",
"Ibarra",
"San Lorenzo",
"Macas",
"Morana",
"Machala",
"Zamora",
"Latacunga",
"Tena",
"Cochabamba",
"Ascension",
"Magdalena",
"Santa Ana",
"Manoa",
"Sucre",
"Oruro",
"Uyuni",
"Potosi",
"Tupiza",
"La Quiaca",
"Yacuiba",
"San Borja",
"Fuerte Olimpio",
"Fortin Esteros",
"Campo Grande",
"Bogota",
"El Banco",
"Zaragoza",
"Neiva",
"Mariano",
"Cali",
"La Palma",
"Andoas",
"Barranca",
"Montevideo",
"Valdivia",
"Arica",
"Temuco",
"Tocopilla",
"Mendoza",
"Santa Rosa",
};
static const char * const _name_french_real[] = {
"Agincourt",
"Lille",
"Dinan",
"Aubusson",
"Rodez",
"Bergerac",
"Bordeaux",
"Bayonne",
"Montpellier",
"Mont\xC3\xA9limar",
"Valence",
"Digne",
"Nice",
"Cannes",
"St. Tropez",
"Marseille",
"Narbonne",
"S\xC3\xA8te",
"Aurillac",
"Gu\xC3\xA9ret",
"Le Creusot",
"Nevers",
"Auxerre",
"Versailles",
"Meaux",
"Ch\xC3\xA2lons",
"Compi\xC3\xA8gne",
"Metz",
"Chaumont",
"Langres",
"Bourg",
"Lyon",
"Vienne",
"Grenoble",
"Toulon",
"Rennes",
"Le Mans",
"Angers",
"Nantes",
"Ch\xC3\xA2teauroux",
"Orl\xC3\xA9""ans",
"Lisieux",
"Cherbourg",
"Morlaix",
"Cognac",
"Agen",
"Tulle",
"Blois",
"Troyes",
"Charolles",
"Grenoble",
"Chamb\xC3\xA9ry",
"Tours",
"St. Brieuc",
"St. Malo",
"La Rochelle",
"St. Flour",
"Le Puy",
"Vichy",
"St. Valery",
"Beaujolais",
"Narbonne",
"Albi",
"Paris",
"Biarritz",
"B\xC3\xA9ziers",
"N\xC3\xAEmes",
"Chamonix",
"Angoul\xC3\xA8me",
"Alen\xC3\xA7on",
};
static const char * const _name_silly_1[] = {
"Binky",
"Blubber",
"Bumble",
"Crinkle",
"Crusty",
"Dangle",
"Dribble",
"Flippety",
"Google",
"Muffin",
"Nosey",
"Pinker",
"Quack",
"Rumble",
"Sleepy",
"Sliggles",
"Snooze",
"Teddy",
"Tinkle",
"Twister",
"Pinker",
"Hippo",
"Itchy",
"Jelly",
"Jingle",
"Jolly",
"Kipper",
"Lazy",
"Frogs",
"Mouse",
"Quack",
"Cheeky",
"Lumpy",
"Grumpy",
"Mangle",
"Fiddle",
"Slugs",
"Noodles",
"Poodles",
"Shiver",
"Rumble",
"Pixie",
"Puddle",
"Riddle",
"Rattle",
"Rickety",
"Waffle",
"Sagging",
"Sausage",
"Egg",
"Sleepy",
"Scatter",
"Scramble",
"Silly",
"Simple",
"Trickle",
"Slippery",
"Slimey",
"Slumber",
"Soggy",
"Sliggles",
"Splutter",
"Sulky",
"Swindle",
"Swivel",
"Tasty",
"Tangle",
"Toggle",
"Trotting",
"Tumble",
"Snooze",
"Water",
"Windy",
"Amble",
"Bubble",
"Cheery",
"Cheese",
"Cockle",
"Cracker",
"Crumple",
"Teddy",
"Evil",
"Fairy",
"Falling",
"Fishy",
"Fizzle",
"Frosty",
"Griddle",
};
static const char * const _name_silly_2[] = {
"ton",
"bury",
"bottom",
"ville",
"well",
"weed",
"worth",
"wig",
"wick",
"wood",
"pool",
"head",
"burg",
"gate",
"bridge",
};
static const char * const _name_swedish_1[] = {
"Gamla ",
"Lilla ",
"Nya ",
"Stora ",
};
static const char * const _name_swedish_2[] = {
"Boll",
"Bor",
"Ed",
"En",
"Erik",
"Es",
"Fin",
"Fisk",
"Gr\xC3\xB6n",
"Hag",
"Halm",
"Karl",
"Kram",
"Kung",
"Land",
"Lid",
"Lin",
"Mal",
"Malm",
"Marie",
"Ner",
"Norr",
"Oskar",
"Sand",
"Skog",
"Stock",
"Stor",
"Str\xC3\xB6m",
"Sund",
"S\xC3\xB6""der",
"Tall",
"Tratt",
"Troll",
"Upp",
"Var",
"V\xC3\xA4ster",
"\xC3\x84ngel",
"\xC3\x96ster",
};
static const char * const _name_swedish_2a[] = {
"B",
"Br",
"D",
"Dr",
"Dv",
"F",
"Fj",
"Fl",
"Fr",
"G",
"Gl",
"Gn",
"Gr",
"H",
"J",
"K",
"Kl",
"Kn",
"Kr",
"Kv",
"L",
"M",
"N",
"P",
"Pl",
"Pr",
"R",
"S",
"Sk",
"Skr",
"Sl",
"Sn",
"Sp",
"Spr",
"St",
"Str",
"Sv",
"T",
"Tr",
"Tv",
"V",
"Vr",
};
static const char * const _name_swedish_2b[] = {
"a",
"e",
"i",
"o",
"u",
"y",
"\xC3\xA5",
"\xC3\xA4",
"\xC3\xB6",
};
static const char * const _name_swedish_2c[] = {
"ck",
"d",
"dd",
"g",
"gg",
"l",
"ld",
"m",
"n",
"nd",
"ng",
"nn",
"p",
"pp",
"r",
"rd",
"rk",
"rp",
"rr",
"rt",
"s",
"sk",
"st",
"t",
"tt",
"v",
};
static const char * const _name_swedish_3[] = {
"arp",
"berg",
"boda",
"borg",
"bro",
"bukten",
"by",
"byn",
"fors",
"hammar",
"hamn",
"holm",
"hus",
"h\xC3\xA4ttan",
"kulle",
"k\xC3\xB6ping",
"lund",
"l\xC3\xB6v",
"sala",
"skrona",
"sl\xC3\xA4tt",
"sp\xC3\xA5ng",
"stad",
"sund",
"svall",
"svik",
"s\xC3\xA5ker",
"udde",
"valla",
"viken",
"\xC3\xA4lv",
"\xC3\xA5s",
};
static const char * const _name_dutch_1[] = {
"Nieuw ",
"Oud ",
"Groot ",
"Zuid ",
"Noord ",
"Oost ",
"West ",
"Klein ",
};
static const char * const _name_dutch_2[] = {
"Hoog",
"Laag",
"Zuider",
"Zuid",
"Ooster",
"Oost",
"Wester",
"West",
"Hoofd",
"Midden",
"Eind",
"Amster",
"Amstel",
"Dord",
"Rotter",
"Haar",
"Til",
"Enk",
"Dok",
"Veen",
"Leidsch",
"Lely",
"En",
"Kaats",
"U",
"Maas",
"Mar",
"Bla",
"Al",
"Alk",
"Eer",
"Drie",
"Ter",
"Groes",
"Goes",
"Soest",
"Coe",
"Uit",
"Zwaag",
"Hellen",
"Slie",
"IJ",
"Grubben",
"Groen",
"Lek",
"Ridder",
"Schie",
"Olde",
"Roose",
"Haar",
"Til",
"Loos",
"Hil",
};
static const char * const _name_dutch_3[] = {
"Drog",
"Nat",
"Valk",
"Bob",
"Dedem",
"Kollum",
"Best",
"Hoend",
"Leeuw",
"Graaf",
"Uithuis",
"Purm",
"Hard",
"Hell",
"Werk",
"Spijk",
"Vink",
"Wams",
"Heerhug",
"Koning",
};
static const char * const _name_dutch_4[] = {
"e",
"er",
"el",
"en",
"o",
"s",
};
static const char * const _name_dutch_5[] = {
"stad",
"vorst",
"dorp",
"dam",
"beek",
"doorn",
"zijl",
"zijlen",
"lo",
"muiden",
"meden",
"vliet",
"nisse",
"daal",
"vorden",
"vaart",
"mond",
"zaal",
"water",
"duinen",
"heuvel",
"geest",
"kerk",
"meer",
"maar",
"hoorn",
"rade",
"wijk",
"berg",
"heim",
"sum",
"richt",
"burg",
"recht",
"drecht",
"trecht",
"tricht",
"dricht",
"lum",
"rum",
"halen",
"oever",
"wolde",
"veen",
"hoven",
"gast",
"kum",
"hage",
"dijk",
"zwaag",
"pomp",
"huizen",
"bergen",
"schede",
"mere",
"end",
};
static const char * const _name_finnish_real[] = {
"Aijala",
"Kisko",
"Espoo",
"Helsinki",
"Tapiola",
"J\xC3\xA4rvel\xC3\xA4",
"Lahti",
"Kotka",
"Hamina",
"Loviisa",
"Kouvola",
"Tampere",
"Oulu",
"Salo",
"Malmi",
"Pelto",
"Koski",
"Iisalmi",
"Raisio",
"Taavetti",
"Joensuu",
"Imatra",
"Tapanila",
"Pasila",
"Turku",
"Kupittaa",
"Vaasa",
"Pori",
"Rauma",
"Kolari",
"Lieksa",
};
static const char * const _name_finnish_1[] = {
"Hiekka",
"Haapa",
"Mylly",
"Sauna",
"Uusi",
"Vanha",
"Kes\xC3\xA4",
"Kuusi",
"Pelto",
"Tuomi",
"Terva",
"Olki",
"Hein\xC3\xA4",
"Sein\xC3\xA4",
"Rova",
"Koivu",
"Kokko",
"M\xC3\xA4nty",
"Pihlaja",
"Pet\xC3\xA4j\xC3\xA4",
"Kielo",
"Kauha",
"Viita",
"Kivi",
"Riihi",
"\xC3\x84\xC3\xA4ne",
"Niini",
};
static const char * const _name_finnish_2[] = {
"Lappeen",
"Lohjan",
"Savon",
"Lapin",
"Pit\xC3\xA4j\xC3\xA4n",
"Martin",
"Kuusan",
"Kemi",
"Keri",
"H\xC3\xA4meen",
"Kangas",
};
static const char * const _name_finnish_3[] = {
"harju",
"linna",
"j\xC3\xA4rvi",
"kallio",
"m\xC3\xA4ki",
"nummi",
"joki",
"kyl\xC3\xA4",
"lampi",
"lahti",
"mets\xC3\xA4",
"suo",
"laakso",
"niitty",
"luoto",
"hovi",
"ranta",
"koski",
"salo",
};
static const char * const _name_polish_1_m[] = {
"Wielki ",
"Ma\xC5\x82y ",
"Z\xC5\x82y ",
"Dobry ",
"Nowy ",
"Stary ",
"Z\xC5\x82oty ",
"Zielony ",
"Bia\xC5\x82y ",
"Modry ",
"D\xC4\x99""bowy ",
};
static const char * const _name_polish_1_f[] = {
"Wielka ",
"Ma\xC5\x82""a ",
"Z\xC5\x82""a ",
"Dobra ",
"Nowa ",
"Stara ",
"Z\xC5\x82ota ",
"Zielona ",
"Bia\xC5\x82""a ",
"Modra ",
"D\xC4\x99""bowa ",
};
static const char * const _name_polish_1_n[] = {
"Wielkie ",
"Ma\xC5\x82""e ",
"Z\xC5\x82""e ",
"Dobre ",
"Nowe ",
"Stare ",
"Z\xC5\x82ote ",
"Zielone ",
"Bia\xC5\x82""e ",
"Modre ",
"D\xC4\x99""bowe ",
};
static const char * const _name_polish_2_o[] = {
"Frombork",
"Gniezno",
"Olsztyn",
"Toru\xC5\x84",
"Bydgoszcz",
"Terespol",
"Krak\xC3\xB3w",
"Pozna\xC5\x84",
"Wroc\xC5\x82""aw",
"Katowice",
"Cieszyn",
"Bytom",
"Frombork",
"Hel",
"Konin",
"Lublin",
"Malbork",
"Sopot",
"Sosnowiec",
"Gda\xC5\x84sk",
"Gdynia",
"Sieradz",
"Sandomierz",
"Szczyrk",
"Szczytno",
"Szczecin",
"Zakopane",
"Szklarska Por\xC4\x99""ba",
"Bochnia",
"Golub-Dobrzyn",
"Chojnice",
"Ostrowiec",
"Otwock",
"Wolsztyn",
};
static const char * const _name_polish_2_m[] = {
"Jarocin",
"Gogolin",
"Tomasz\xC3\xB3w",
"Piotrk\xC3\xB3w",
"Lidzbark",
"Rypin",
"Radzymin",
"Wo\xC5\x82omin",
"Pruszk\xC3\xB3w",
"Olsztynek",
"Rypin",
"Cisek",
"Krotoszyn",
"Stoczek",
"Lubin",
"Lubicz",
"Milicz",
"Targ",
"Ostr\xC3\xB3w",
"Ozimek",
"Puck",
"Rzepin",
"Siewierz",
"Stargard",
"Starogard",
"Turek",
"Tymbark",
"Wolsztyn",
"Strzepcz",
"Strzebielin",
"Sochaczew",
"Gr\xC4\x99""bocin",
"Gniew",
"Lubliniec",
"Lubasz",
"Lutomiersk",
"Niemodlin",
"Przeworsk",
"Ursus",
"Tyczyn",
"Sztum",
"Szczebrzeszyn",
"Wolin",
"Wrzeszcz",
"Zgierz",
"Zieleniec",
"Drobin",
"Garwolin",
};
static const char * const _name_polish_2_f[] = {
"Szprotawa",
"Pogorzelica",
"Mot\xC5\x82""awa",
"Lubawa",
"Nidzica",
"Kruszwica",
"Bierawa",
"Brodnica",
"Chojna",
"Krzepica",
"Ruda",
"Rumia",
"Tuchola",
"Trzebinia",
"Ustka",
"Warszawa",
"Bobowa",
"Dukla",
"Krynica",
"Murowana",
"Niemcza",
"Zaspa",
"Zawoja",
"Wola",
"Limanowa",
"Rabka",
"Skawina",
"Pilawa",
};
static const char * const _name_polish_2_n[] = {
"Lipsko",
"Pilzno",
"Przodkowo",
"Strzelno",
"Susz",
"Jaworzno",
"Choszczno",
"Mogilno",
"Luzino",
"Miasto",
"Dziadowo",
"Kowalewo",
"Legionowo",
"Miastko",
"Zabrze",
"Zawiercie",
"Kochanowo",
"Miechucino",
"Mirachowo",
"Robakowo",
"Kosakowo",
"Borne",
"Braniewo",
"Sulinowo",
"Chmielno",
"Jastrz\xC4\x99""bie",
"Gryfino",
"Koronowo",
"Lubichowo",
"Opoczno",
};
static const char * const _name_polish_3_m[] = {
" Wybudowanie",
" \xC5\x9Awi\xC4\x99tokrzyski",
" G\xC3\xB3rski",
" Morski",
" Zdr\xC3\xB3j",
" Wody",
" Bajoro",
" Kraje\xC5\x84ski",
" \xC5\x9Al\xC4\x85ski",
" Mazowiecki",
" Pomorski",
" Wielki",
" Maly",
" Warmi\xC5\x84ski",
" Mazurski",
" Mniejszy",
" Wi\xC4\x99kszy",
" G\xC3\xB3rny",
" Dolny",
" Wielki",
" Stary",
" Nowy",
" Wielkopolski",
" Wzg\xC3\xB3rze",
" Mosty",
" Kujawski",
" Ma\xC5\x82opolski",
" Podlaski",
" Lesny",
};
static const char * const _name_polish_3_f[] = {
" Wybudowanie",
" \xC5\x9Awi\xC4\x99tokrzyska",
" G\xC3\xB3rska",
" Morska",
" Zdr\xC3\xB3j",
" Woda",
" Bajoro",
" Kraje\xC5\x84ska",
" \xC5\x9Al\xC4\x85ska",
" Mazowiecka",
" Pomorska",
" Wielka",
" Ma\xC5\x82""a",
" Warmi\xC5\x84ska",
" Mazurska",
" Mniejsza",
" Wi\xC4\x99ksza",
" G\xC3\xB3rna",
" Dolna",
" Wielka",
" Stara",
" Nowa",
" Wielkopolska",
" Wzg\xC3\xB3rza",
" Mosty",
" Kujawska",
" Malopolska",
" Podlaska",
" Le\xC5\x9Bna",
};
static const char * const _name_polish_3_n[] = {
" Wybudowanie",
" \xC5\x9Awietokrzyskie",
" G\xC3\xB3rskie",
" Morskie",
" Zdr\xC3\xB3j",
" Wody",
" Bajoro",
" Kraje\xC5\x84skie",
" \xC5\x9Al\xC4\x85skie",
" Mazowieckie",
" Pomorskie",
" Wielkie",
" Ma\xC5\x82""e",
" Warmi\xC5\x84skie ",
" Mazurskie ",
" Mniejsze",
" Wi\xC4\x99ksze",
" G\xC3\xB3rne",
" Dolne",
" Wielkie",
" Stare",
" Nowe",
" Wielkopolskie",
" Wzg\xC3\xB3rze",
" Mosty",
" Kujawskie",
" Ma\xC5\x82opolskie",
" Podlaskie",
" Le\xC5\x9Bne",
};
static const char * const _name_czech_real[] = {
"A\xC5\xA1",
"Bene\xC5\xA1ov",
"Beroun",
"Bezdru\xC5\xBEice",
"Blansko",
"B\xC5\x99""eclav",
"Brno",
"Brunt\xC3\xA1l",
"\xC4\x8C""esk\xC3\xA1 L\xC3\xADpa",
"\xC4\x8C""esk\xC3\xA9 Bud\xC4\x9Bjovice",
"\xC4\x8C""esk\xC3\xBD Krumlov",
"D\xC4\x9B\xC4\x8D\xC3\xADn",
"Doma\xC5\xBElice",
"Dub\xC3\xAD",
"Fr\xC3\xBD""dek-M\xC3\xADstek",
"Havl\xC3\xAD\xC4\x8Dk\xC5\xAFv Brod",
"Hodon\xC3\xADn",
"Hradec Kr\xC3\xA1lov\xC3\xA9",
"Humpolec",
"Cheb",
"Chomutov",
"Chrudim",
"Jablonec nad Nisou",
"Jesen\xC3\xADk",
"Ji\xC4\x8D\xC3\xADn",
"Jihlava",
"Jind\xC5\x99ich\xC5\xAFv Hradec",
"Karlovy Vary",
"Karvin\xC3\xA1",
"Kladno",
"Klatovy",
"Kol\xC3\xADn",
"Kosmonosy",
"Krom\xC4\x9B\xC5\x99\xC3\xAD\xC5\xBE",
"Kutn\xC3\xA1 Hora",
"Liberec",
"Litom\xC4\x9B\xC5\x99ice",
"Louny",
"Man\xC4\x9Bt\xC3\xADn",
"M\xC4\x9Bln\xC3\xADk",
"Mlad\xC3\xA1 Boleslav",
"Most",
"N\xC3\xA1""chod",
"Nov\xC3\xBD Ji\xC4\x8D\xC3\xADn",
"Nymburk",
"Olomouc",
"Opava",
"Or\xC3\xA1\xC4\x8Dov",
"Ostrava",
"Pardubice",
"Pelh\xC5\x99imov",
"Pol\xC5\xBEice",
"P\xC3\xADsek",
"Plze\xC5\x88",
"Praha",
"Prachatice",
"P\xC5\x99""erov",
"P\xC5\x99\xC3\xAD""bram",
"Prost\xC4\x9Bjov",
"Rakovn\xC3\xADk",
"Rokycany",
"Rudn\xC3\xA1",
"Rychnov nad Kn\xC4\x9B\xC5\xBEnou",
"Semily",
"Sokolov",
"Strakonice",
"St\xC5\x99""edokluky",
"\xC5\xA0umperk",
"Svitavy",
"T\xC3\xA1""bor",
"Tachov",
"Teplice",
"T\xC5\x99""eb\xC3\xAD\xC4\x8D",
"Trutnov",
"Uhersk\xC3\xA9 Hradi\xC5\xA1t\xC4\x9B",
"\xC3\x9Ast\xC3\xAD nad Labem",
"\xC3\x9Ast\xC3\xAD nad Orlic\xC3\xAD",
"Vset\xC3\xADn",
"Vy\xC5\xA1kov",
"\xC5\xBD\xC4\x8F\xC3\xA1r nad S\xC3\xA1zavou",
"Zl\xC3\xADn",
"Znojmo",
};
/* The advanced hyperintelligent Czech town names generator!
* The tables and MakeCzechTownName() is (c) Petr Baudis 2005 (GPL'd)
* Feel free to ask me about anything unclear or if you need help
* with cloning this for your own language. */
/* Sing., pl. */
enum CzechGender {
CZG_SMASC,
CZG_SFEM,
CZG_SNEUT,
CZG_PMASC,
CZG_PFEM,
CZG_PNEUT,
/* Special for substantive stems - the ending chooses the gender. */
CZG_FREE,
/* Like CZG_FREE, but disallow CZG_SNEUT. */
CZG_NFREE
};
enum CzechPattern {
CZP_JARNI,
CZP_MLADY,
CZP_PRIVL
};
/* [CzechGender][CzechPattern] - replaces the last character of the adjective
* by this.
* XXX: [CZG_SMASC][CZP_PRIVL] needs special handling: -ovX -> -uv. */
static const char * const _name_czech_patmod[][3] = {
/* CZG_SMASC */ { "\xC3\xAD", "\xC3\xBD", "X" },
/* CZG_SFEM */ { "\xC3\xAD", "\xC3\xA1", "a" },
/* CZG_SNEUT */ { "\xC3\xAD", "\xC3\xA9", "o" },
/* CZG_PMASC */ { "\xC3\xAD", "\xC3\xA9", "y" },
/* CZG_PFEM */ { "\xC3\xAD", "\xC3\xA9", "y" },
/* CZG_PNEUT */ { "\xC3\xAD", "\xC3\xA1", "a" }
};
/* This way the substantives can choose only some adjectives/endings:
* At least one of these flags must be satisfied: */
enum CzechAllow {
CZA_SHORT = 1,
CZA_MIDDLE = 2,
CZA_LONG = 4,
CZA_ALL = ~0
};
DECLARE_ENUM_AS_BIT_SET(CzechAllow);
/* All these flags must be satisfied (in the stem->others direction): */
enum CzechChoose {
CZC_NONE = 0, // No requirements.
CZC_COLOR = 1,
CZC_POSTFIX = 2, // Matched if postfix was inserted.
CZC_NOPOSTFIX = 4, // Matched if no postfix was inserted.
CZC_ANY = ~0
};
DECLARE_ENUM_AS_BIT_SET(CzechChoose);
struct CzechNameSubst {
CzechGender gender;
CzechAllow allow;
CzechChoose choose;
const char *name;
};
struct CzechNameAdj {
CzechPattern pattern;
CzechChoose choose;
const char *name;
};
/* Some of items which should be common are doubled. */
static const CzechNameAdj _name_czech_adj[] = {
{ CZP_JARNI, CZC_ANY, "Horn\xC3\xAD" },
{ CZP_JARNI, CZC_ANY, "Horn\xC3\xAD" },
{ CZP_JARNI, CZC_ANY, "Doln\xC3\xAD" },
{ CZP_JARNI, CZC_ANY, "Doln\xC3\xAD" },
{ CZP_JARNI, CZC_ANY, "P\xC5\x99""edn\xC3\xAD" },
{ CZP_JARNI, CZC_ANY, "Zadn\xC3\xAD" },
{ CZP_JARNI, CZC_ANY, "Kosteln\xC3\xAD" },
{ CZP_JARNI, CZC_ANY, "Havran\xC3\xAD" },
{ CZP_JARNI, CZC_ANY, "\xC5\x98\xC3\xAD\xC4\x8Dn\xC3\xAD" },
{ CZP_JARNI, CZC_ANY, "Jezern\xC3\xAD" },
{ CZP_MLADY, CZC_ANY, "Velk\xC3\xBD" },
{ CZP_MLADY, CZC_ANY, "Velk\xC3\xBD" },
{ CZP_MLADY, CZC_ANY, "Mal\xC3\xBD" },
{ CZP_MLADY, CZC_ANY, "Mal\xC3\xBD" },
{ CZP_MLADY, CZC_ANY, "Vysok\xC3\xBD" },
{ CZP_MLADY, CZC_ANY, "\xC4\x8C""esk\xC3\xBD" },
{ CZP_MLADY, CZC_ANY, "Moravsk\xC3\xBD" },
{ CZP_MLADY, CZC_ANY, "Slov\xC3\xA1""ck\xC3\xBD" },
{ CZP_MLADY, CZC_ANY, "Slezsk\xC3\xBD" },
{ CZP_MLADY, CZC_ANY, "Uhersk\xC3\xBD" },
{ CZP_MLADY, CZC_ANY, "Star\xC3\xBD" },
{ CZP_MLADY, CZC_ANY, "Star\xC3\xBD" },
{ CZP_MLADY, CZC_ANY, "Nov\xC3\xBD" },
{ CZP_MLADY, CZC_ANY, "Nov\xC3\xBD" },
{ CZP_MLADY, CZC_ANY, "Mlad\xC3\xBD" },
{ CZP_MLADY, CZC_ANY, "Kr\xC3\xA1lovsk\xC3\xBD" },
{ CZP_MLADY, CZC_ANY, "Kamenn\xC3\xBD" },
{ CZP_MLADY, CZC_ANY, "Cihlov\xC3\xBD" },
{ CZP_MLADY, CZC_ANY, "Divn\xC3\xBD" },
{ CZP_MLADY, CZC_COLOR, "\xC4\x8C""erven\xC3\xA1" },
{ CZP_MLADY, CZC_COLOR, "\xC4\x8C""erven\xC3\xA1" },
{ CZP_MLADY, CZC_COLOR, "\xC4\x8C""erven\xC3\xA1" },
{ CZP_MLADY, CZC_COLOR, "Zelen\xC3\xA1" },
{ CZP_MLADY, CZC_COLOR, "\xC5\xBDlut\xC3\xA1" },
{ CZP_MLADY, CZC_COLOR, "Siv\xC3\xA1" },
{ CZP_MLADY, CZC_COLOR, "\xC5\xA0""ed\xC3\xA1" },
{ CZP_MLADY, CZC_COLOR, "B\xC3\xADl\xC3\xA1" },
{ CZP_MLADY, CZC_COLOR, "B\xC3\xADl\xC3\xA1" },
{ CZP_MLADY, CZC_COLOR, "Modr\xC3\xA1" },
{ CZP_MLADY, CZC_COLOR, "R\xC5\xAF\xC5\xBEov\xC3\xA1" },
{ CZP_MLADY, CZC_COLOR, "\xC4\x8C""ern\xC3\xA1" },
{ CZP_PRIVL, CZC_ANY, "Kr\xC3\xA1lova" },
{ CZP_PRIVL, CZC_ANY, "Janova" },
{ CZP_PRIVL, CZC_ANY, "Karlova" },
{ CZP_PRIVL, CZC_ANY, "Kry\xC5\xA1tofova" },
{ CZP_PRIVL, CZC_ANY, "Ji\xC5\x99\xC3\xADkova" },
{ CZP_PRIVL, CZC_ANY, "Petrova" },
{ CZP_PRIVL, CZC_ANY, "Sudovo" },
};
/* Considered a stem for choose/allow matching purposes. */
static const CzechNameSubst _name_czech_subst_full[] = {
{ CZG_SMASC, CZA_ALL, CZC_COLOR, "Sedlec" },
{ CZG_SMASC, CZA_ALL, CZC_COLOR, "Brod" },
{ CZG_SMASC, CZA_ALL, CZC_COLOR, "Brod" },
{ CZG_SMASC, CZA_ALL, CZC_NONE, "\xC3\x9Aval" },
{ CZG_SMASC, CZA_ALL, CZC_COLOR, "\xC5\xBD\xC4\x8F\xC3\xA1r" },
{ CZG_SMASC, CZA_ALL, CZC_COLOR, "Smrk" },
{ CZG_SFEM, CZA_ALL, CZC_COLOR, "Hora" },
{ CZG_SFEM, CZA_ALL, CZC_COLOR, "Lhota" },
{ CZG_SFEM, CZA_ALL, CZC_COLOR, "Lhota" },
{ CZG_SFEM, CZA_ALL, CZC_COLOR, "Hlava" },
{ CZG_SFEM, CZA_ALL, CZC_COLOR, "L\xC3\xADpa" },
{ CZG_SNEUT, CZA_ALL, CZC_COLOR, "Pole" },
{ CZG_SNEUT, CZA_ALL, CZC_COLOR, "\xC3\x9A""dol\xC3\xAD" },
{ CZG_PMASC, CZA_ALL, CZC_NONE, "\xC3\x9Avaly" },
{ CZG_PFEM, CZA_ALL, CZC_COLOR, "Luka" },
{ CZG_PNEUT, CZA_ALL, CZC_COLOR, "Pole" },
};
/* TODO: More stems needed. --pasky */
static const CzechNameSubst _name_czech_subst_stem[] = {
{ CZG_SMASC, CZA_MIDDLE, CZC_COLOR, "Kostel" },
{ CZG_SMASC, CZA_MIDDLE, CZC_COLOR, "Kl\xC3\xA1\xC5\xA1ter" },
{ CZG_SMASC, CZA_SHORT, CZC_COLOR, "Lhot" },
{ CZG_SFEM, CZA_SHORT, CZC_COLOR, "Lhot" },
{ CZG_SFEM, CZA_SHORT, CZC_COLOR, "Hur" },
{ CZG_FREE, CZA_MIDDLE | CZA_LONG, CZC_NONE, "Sedl" },
{ CZG_FREE, CZA_SHORT | CZA_MIDDLE | CZA_LONG, CZC_COLOR, "Hrad" },
{ CZG_NFREE, CZA_MIDDLE, CZC_NONE, "Pras" },
{ CZG_NFREE, CZA_MIDDLE, CZC_NONE, "Ba\xC5\xBE" },
{ CZG_NFREE, CZA_MIDDLE, CZC_NONE, "Tes" },
{ CZG_NFREE, CZA_MIDDLE, CZC_NONE, "U\xC5\xBE" },
{ CZG_NFREE, CZA_MIDDLE | CZA_LONG, CZC_POSTFIX, "B\xC5\x99" },
{ CZG_NFREE, CZA_MIDDLE | CZA_LONG, CZC_NONE, "Vod" },
{ CZG_NFREE, CZA_MIDDLE | CZA_LONG, CZC_NONE, "Jan" },
{ CZG_NFREE, CZA_LONG, CZC_NONE, "Prach" },
{ CZG_NFREE, CZA_LONG, CZC_NONE, "Kunr" },
{ CZG_NFREE, CZA_LONG, CZC_NONE, "Strak" },
{ CZG_NFREE, CZA_LONG, CZC_NONE, "V\xC3\xADt" },
{ CZG_NFREE, CZA_LONG, CZC_NONE, "Vy\xC5\xA1" },
{ CZG_NFREE, CZA_LONG, CZC_NONE, "\xC5\xBD""at" },
{ CZG_NFREE, CZA_LONG, CZC_NONE, "\xC5\xBD""er" },
{ CZG_NFREE, CZA_LONG, CZC_NONE, "St\xC5\x99""ed" },
{ CZG_NFREE, CZA_LONG, CZC_NONE, "Harv" },
{ CZG_NFREE, CZA_LONG, CZC_NONE, "Pruh" },
{ CZG_NFREE, CZA_LONG, CZC_NONE, "Tach" },
{ CZG_NFREE, CZA_LONG, CZC_NONE, "P\xC3\xADsn" },
{ CZG_NFREE, CZA_LONG, CZC_NONE, "Jin" },
{ CZG_NFREE, CZA_LONG, CZC_NONE, "Jes" },
{ CZG_NFREE, CZA_LONG, CZC_NONE, "Jar" },
{ CZG_NFREE, CZA_LONG, CZC_NONE, "Sok" },
{ CZG_NFREE, CZA_LONG, CZC_NONE, "Hod" },
{ CZG_NFREE, CZA_LONG, CZC_NONE, "Net" },
{ CZG_FREE, CZA_LONG, CZC_NONE, "Pra\xC5\xBE" },
{ CZG_FREE, CZA_LONG, CZC_NONE, "Nerat" },
{ CZG_FREE, CZA_LONG, CZC_NONE, "Kral" },
{ CZG_FREE, CZA_LONG, CZC_NONE, "Hut" },
{ CZG_FREE, CZA_LONG, CZC_NOPOSTFIX, "Pan" },
{ CZG_FREE, CZA_SHORT | CZA_MIDDLE | CZA_LONG, CZC_NOPOSTFIX, "Odst\xC5\x99""ed" },
{ CZG_FREE, CZA_SHORT | CZA_MIDDLE | CZA_LONG, CZC_COLOR, "Mrat" },
{ CZG_FREE, CZA_LONG, CZC_COLOR, "Hlav" },
{ CZG_FREE, CZA_SHORT | CZA_MIDDLE, CZC_NONE, "M\xC4\x9B\xC5\x99" },
{ CZG_FREE, CZA_MIDDLE | CZA_LONG, CZC_NONE, "Lip" },
};
/* Optional postfix inserted between stem and ending. */
static const char * const _name_czech_subst_postfix[] = {
"av", "an", "at",
"ov", "on", "ot",
"ev", "en", "et",
};
/* This array must have the both neutral genders at the end! */
static const CzechNameSubst _name_czech_subst_ending[] = {
{ CZG_SMASC, CZA_SHORT | CZA_MIDDLE, CZC_ANY, "ec" },
{ CZG_SMASC, CZA_SHORT | CZA_MIDDLE, CZC_ANY, "\xC3\xADn" },
{ CZG_SMASC, CZA_SHORT | CZA_MIDDLE | CZA_LONG, CZC_ANY, "ov" },
{ CZG_SMASC, CZA_SHORT | CZA_LONG, CZC_ANY, "kov" },
{ CZG_SMASC, CZA_LONG, CZC_POSTFIX, "\xC3\xADn" },
{ CZG_SMASC, CZA_LONG, CZC_POSTFIX, "n\xC3\xADk" },
{ CZG_SMASC, CZA_LONG, CZC_ANY, "burk" },
{ CZG_SFEM, CZA_SHORT, CZC_ANY, "ka" },
{ CZG_SFEM, CZA_MIDDLE, CZC_ANY, "inka" },
{ CZG_SFEM, CZA_MIDDLE, CZC_ANY, "n\xC3\xA1" },
{ CZG_SFEM, CZA_LONG, CZC_ANY, "ava" },
{ CZG_PMASC, CZA_LONG, CZC_POSTFIX, "\xC3\xADky" },
{ CZG_PMASC, CZA_LONG, CZC_ANY, "upy" },
{ CZG_PMASC, CZA_LONG, CZC_ANY, "olupy" },
{ CZG_PFEM, CZA_LONG, CZC_ANY, "avy" },
{ CZG_PFEM, CZA_SHORT | CZA_MIDDLE | CZA_LONG, CZC_ANY, "ice" },
{ CZG_PFEM, CZA_SHORT | CZA_MIDDLE | CZA_LONG, CZC_ANY, "i\xC4\x8Dky" },
{ CZG_PNEUT, CZA_SHORT | CZA_MIDDLE, CZC_ANY, "na" },
{ CZG_SNEUT, CZA_SHORT | CZA_MIDDLE, CZC_ANY, "no" },
{ CZG_SNEUT, CZA_LONG, CZC_ANY, "i\xC5\xA1t\xC4\x9B" },
};
static const char * const _name_czech_suffix[] = {
"nad Cidlinou",
"nad Dyj\xC3\xAD",
"nad Jihlavou",
"nad Labem",
"nad Lesy",
"nad Moravou",
"nad Nisou",
"nad Odrou",
"nad Ostravic\xC3\xAD",
"nad S\xC3\xA1zavou",
"nad Vltavou",
"pod Prad\xC4\x9B""dem",
"pod Radho\xC5\xA1t\xC4\x9Bm",
"pod \xC5\x98\xC3\xADpem",
"pod Sn\xC4\x9B\xC5\xBEkou",
"pod \xC5\xA0pi\xC4\x8D\xC3\xA1kem",
"pod Sedlem",
"v \xC4\x8C""ech\xC3\xA1""ch",
"na Morav\xC4\x9B",
};
static const char * const _name_romanian_real[] = {
"Adjud",
"Alba Iulia",
"Alexandria",
"Babadag",
"Bac\xC3\xA3u",
"Baia Mare",
"B\xC3\xA3ile Herculane",
"B\xC3\xA3ilesti",
"B\xC3\xA2rlad",
"Bicaz",
"Bistrita",
"Blaj",
"Borsec",
"Botosani",
"Br\xC3\xA3ila",
"Brasov",
"Bucuresti",
"Buftea",
"Buz\xC3\xA3u",
"C\xC3\xA3l\xC3\xA3rasi",
"Caransebes",
"Cernavod\xC3\xA3",
"Cluj-Napoca",
"Constanta",
"Covasna",
"Craiova",
"Dej",
"Deva",
"Dorohoi",
"Dr.-Tr. Severin",
"Dr\xC3\xA3g\xC3\xA3sani",
"F\xC3\xA3g\xC3\xA3ras",
"F\xC3\xA3lticeni",
"Fetesti",
"Focsani",
"Galati",
"Gheorgheni",
"Giurgiu",
"H\xC3\xA2rsova",
"Hunedoara",
"Husi",
"Iasi",
"Isaccea",
"Lugoj",
"M\xC3\xA3""cin",
"Mangalia",
"Medgidia",
"Medias",
"Miercurea Ciuc",
"Mizil",
"Motru",
"N\xC3\xA3s\xC3\xA3ud",
"N\xC3\xA3vodari",
"Odobesti",
"Oltenita",
"Onesti",
"Oradea",
"Orsova",
"Petrosani",
"Piatra Neamt",
"Pitesti",
"Ploiesti",
"Predeal",
"R\xC3\xA2mnicu V\xC3\xA2lcea",
"Reghin",
"Resita",
"Roman",
"Rosiorii de Vede",
"Satu Mare",
"Sebes",
"Sf\xC3\xA2ntu Gheorghe",
"Sibiu",
"Sighisoara",
"Sinaia",
"Slatina",
"Slobozia",
"Sovata",
"Suceava",
"Sulina",
"T\xC3\xA3nd\xC3\xA3rei",
"T\xC3\xA2rgoviste",
"T\xC3\xA2rgu Jiu",
"T\xC3\xA2rgu Mures",
"Tecuci",
"Timisoara",
"Tulcea",
"Turda",
"Turnu M\xC3\xA3gurele",
"Urziceni",
"Vaslui",
"Vatra Dornei",
"Victoria",
"Videle",
"Zal\xC3\xA3u",
};
static const char * const _name_slovak_real[] = {
"Bratislava",
"Banovce nad Bebravou",
"Banska Bystrica",
"Banska Stiavnica",
"Bardejov",
"Brezno",
"Brezova pod Bradlom",
"Bytca",
"Cadca",
"Cierna nad Tisou",
"Detva",
"Detva",
"Dolny Kubin",
"Dolny Kubin",
"Dunajska Streda",
"Gabcikovo",
"Galanta",
"Gbely",
"Gelnica",
"Handlova",
"Hlohovec",
"Holic",
"Humenne",
"Hurbanovo",
"Kezmarok",
"Komarno",
"Kosice",
"Kremnica",
"Krompachy",
"Kuty",
"Leopoldov",
"Levoca",
"Liptovsky Mikulas",
"Lucenec",
"Malacky",
"Martin",
"Medzilaborce",
"Michalovce",
"Modra",
"Myjava",
"Namestovo",
"Nitra",
"Nova Bana",
"Nove Mesto nad Vahom",
"Nove Zamky",
"Partizanske",
"Pezinok",
"Piestany",
"Poltar",
"Poprad",
"Povazska Bystrica",
"Prievidza",
"Puchov",
"Revuca",
"Rimavska Sobota",
"Roznava",
"Ruzomberok",
"Sabinov",
"Sala",
"Senec",
"Senica",
"Sered",
"Skalica",
"Sladkovicovo",
"Smolenice",
"Snina",
"Stara Lubovna",
"Stara Tura",
"Strazske",
"Stropkov",
"Stupava",
"Sturovo",
"Sulekovo",
"Topolcany",
"Trebisov",
"Trencin",
"Trnava",
"Turcianske Teplice",
"Tvrdosin",
"Vrable",
"Vranov nad Toplov",
"Zahorska Bystrica",
"Zdiar",
"Ziar nad Hronom",
"Zilina",
"Zlate Moravce",
"Zvolen",
};
static const char * const _name_norwegian_1[] = {
"Arna",
"Aust",
"Bj\xC3\xB8rk",
"Bj\xC3\xB8rn",
"Brand",
"B\xC3\xB8ver",
"Drag",
"Dr\xC3\xB8",
"Eids",
"Egge",
"Fager",
"Finns",
"Flat",
"Foll",
"Foss",
"Fugle",
"Furu",
"Gaus",
"Galte",
"Geir",
"Gl\xC3\xB8s",
"Gran",
"Grind",
"Grims",
"Gr\xC3\xB8n",
"Gr\xC3\xB8t",
"Gulle",
"Haka",
"Hammer",
"Haug",
"Hol",
"Hon",
"Hop",
"Hov",
"Jess",
"Kabel",
"Kjerns",
"Kjerring",
"Knatte",
"Krok",
"K\xC3\xB8y",
"Lang",
"Lauv",
"Leir",
"Lund",
"Logn",
"Lo",
"Lyng",
"L\xC3\xB8n",
"Mesna",
"Mel",
"Mo",
"Nar",
"Nitte",
"Nord",
"Odd",
"Ola",
"Otte",
"Ran",
"Rev",
"Rog",
"Roms",
"Rosen",
"Sand",
"Sau",
"Sel",
"Sol",
"Sjur",
"Sk\xC3\xA5r",
"Sl\xC3\xA5tt",
"Stj\xC3\xB8r",
"Stor",
"Svart",
"Svens",
"Svin",
"Sylte",
"Syn",
"Tran",
"Vass",
"Ved",
"Vest",
"Vesle",
"Vik",
"V\xC3\xA5g",
};
static const char * const _name_norwegian_2[] = {
"aker",
"anger",
"bakken",
"bekk",
"berg",
"botn",
"breen",
"bu",
"bugen",
"by",
"bygd",
"b\xC3\xB8",
"dal",
"egga",
"eid",
"elv",
"enga",
"foss",
"fjell",
"fjord",
"foten",
"gard",
"grend",
"hammer",
"haug",
"havn",
"heim",
"hella",
"hovda",
"h\xC3\xB8""a",
"h\xC3\xB8gda",
"kampen",
"kj\xC3\xB8len",
"kollen",
"kroken",
"land",
"lia",
"mark",
"moen",
"myr",
"nes",
"nuten",
"osen",
"rike",
"rud",
"sand",
"set",
"sj\xC3\xB8""en",
"skogen",
"slette",
"snipa",
"stad",
"stua",
"stulen",
"sund",
"svingen",
"s\xC3\xA6tra",
"tinden",
"tun",
"vang",
"vatn",
"veid",
"vik",
"voll",
"v\xC3\xA5g",
"um",
"\xC3\xA5sen",
};
static const char * const _name_norwegian_real[] = {
"Alta",
"Arendal",
"Askim",
"Bergen",
"Bod\xC3\xB8",
"Brevik",
"Bryne",
"Br\xC3\xB8nn\xC3\xB8ysund",
"Drammen",
"Dr\xC3\xB8""bak",
"Egersund",
"Elverum",
"Farsund",
"Fauske",
"Finnsnes",
"Flekkefjord",
"Flora",
"Fosnav\xC3\xA5g",
"Fredrikstad",
"F\xC3\xB8rde",
"Gj\xC3\xB8vik",
"Grimstad",
"Halden",
"Hamar",
"Hammerfest",
"Harstad",
"Haugesund",
"Holmestrand",
"Horten",
"J\xC3\xB8rpeland",
"Kirkenes",
"Kolvereid",
"Kongsberg",
"Kongsvinger",
"Kopervik",
"Krager\xC3\xB8",
"Kristiansand",
"Kristiansund",
"Langesund",
"Larvik",
"Leirvik",
"Leknes",
"Levanger",
"Lillehammer",
"Lillesand",
"Lillestr\xC3\xB8m",
"Lyngdal",
"L\xC3\xB8renskog",
"Mandal",
"Mo i Rana",
"Molde",
"Mosj\xC3\xB8""en",
"Moss",
"Mysen",
"M\xC3\xA5l\xC3\xB8y",
"Namsos",
"Narvik",
"Notodden",
"Odda",
"Oslo",
"Otta",
"Porsgrunn",
"Ringerike",
"Ris\xC3\xB8r",
"Rjukan",
"Sandefjord",
"Sandnes",
"Sandnessj\xC3\xB8""en",
"Sandvika",
"Sarpsborg",
"Sauda",
"Ski",
"Skien",
"Skudeneshavn",
"Sortland",
"Stathelle",
"Stavanger",
"Steinkjer",
"Stj\xC3\xB8rdal",
"Stokmarknes",
"Stord",
"Svelvik",
"Svolv\xC3\xA6r",
"Troms\xC3\xB8",
"Trondheim",
"Tvedestrand",
"T\xC3\xB8nsberg",
"Ulsteinvik",
"Vads\xC3\xB8",
"Vard\xC3\xB8",
"Verdals\xC3\xB8ra",
"\xC3\x85krehamn",
"\xC3\x85lesund",
"\xC3\x85ndalsnes",
};
static const char * const _name_hungarian_1[] = {
"Nagy-",
"Kis-",
"Fels\xC5\x91-",
"Als\xC3\xB3-",
"\xC3\x9Aj-",
};
static const char * const _name_hungarian_2[] = {
"Bodrog",
"Dr\xC3\xA1va",
"Duna",
"Hej\xC5\x91",
"Hern\xC3\xA1""d",
"R\xC3\xA1""ba",
"Saj\xC3\xB3",
"Szamos",
"Tisza",
"Zala",
"Balaton",
"Fert\xC5\x91",
"Bakony",
"Cserh\xC3\xA1t",
"Bihar",
"Hajd\xC3\xBA",
"J\xC3\xA1sz",
"Kun",
"Magyar",
"N\xC3\xB3gr\xC3\xA1""d",
"Ny\xC3\xADr",
"Somogy",
"Sz\xC3\xA9kely",
"Buda",
"Gy\xC5\x91r",
"Pest",
"Feh\xC3\xA9r",
"Cser\xC3\xA9p",
"Erd\xC5\x91",
"Hegy",
"Homok",
"Mez\xC5\x91",
"Puszta",
"S\xC3\xA1r",
"Cs\xC3\xA1sz\xC3\xA1r",
"Herceg",
"Kir\xC3\xA1ly",
"Nemes",
"P\xC3\xBCsp\xC3\xB6k",
"Szent",
"Alm\xC3\xA1s",
"Szilv\xC3\xA1s",
"Agg",
"Aranyos",
"B\xC3\xA9k\xC3\xA9s",
"Egyh\xC3\xA1zas",
"Gagy",
"Heves",
"Kapos",
"T\xC3\xA1pi\xC3\xB3",
"Torna",
"Vas",
"V\xC3\xA1mos",
"V\xC3\xA1s\xC3\xA1ros",
};
static const char * const _name_hungarian_3[] = {
"ap\xC3\xA1ti",
"b\xC3\xA1""ba",
"bikk",
"dob",
"fa",
"f\xC3\xB6ld",
"hegyes",
"kak",
"kereszt",
"k\xC3\xBCrt",
"lad\xC3\xA1ny",
"m\xC3\xA9rges",
"szalonta",
"telek",
"vas",
"v\xC3\xB6lgy",
};
static const char * const _name_hungarian_4[] = {
"alja",
"egyh\xC3\xA1za",
"h\xC3\xA1za",
"\xC3\xBAr",
"v\xC3\xA1r",
};
static const char * const _name_hungarian_real[] = {
"Ajka",
"Asz\xC3\xB3""d",
"Badacsony",
"Baja",
"Budapest",
"Debrecen",
"Eger",
"Fony\xC3\xB3""d",
"G\xC3\xB6""d\xC3\xB6ll\xC5\x91",
"Gy\xC5\x91r",
"Gyula",
"Karcag",
"Kecskem\xC3\xA9t",
"Keszthely",
"Kisk\xC3\xB6re",
"Kocsord",
"Kom\xC3\xA1rom",
"K\xC5\x91szeg",
"Mak\xC3\xB3",
"Moh\xC3\xA1""cs",
"Miskolc",
"\xC3\x93zd",
"Paks",
"P\xC3\xA1pa",
"P\xC3\xA9""cs",
"Polg\xC3\xA1r",
"Sarkad",
"Si\xC3\xB3""fok",
"Szeged",
"Szentes",
"Szolnok",
"Tihany",
"Tokaj",
"V\xC3\xA1""c",
"Z\xC3\xA1hony",
"Zirc",
};
static const char * const _name_swiss_real[] = {
"Aarau",
"Aesch",
"Altdorf",
"Arosa",
"Appenzell",
"Arbon",
"Altst\xC3\xA4tten",
"Baar",
"Baden",
"Bellinzona",
"Brig-Glis",
"Bienne",
"Bulle",
"Binningen",
"Burgdorf",
"Bern",
"Basel",
"B\xC3\xBClach",
"Carouge",
"Cham",
"Chiasso",
"Chur",
"Davos",
"Del\xC3\xA9mont",
"Dietikon",
"D\xC3\xBC""bendorf",
"Emmen",
"Freienbach-Pf\xC3\xA4""ffikon",
"Fribourg",
"Frauenfeld",
"Gen\xC3\xA8ve",
"Glarus",
"Gossau",
"Grenchen",
"Herisau",
"Horgen",
"Horw",
"Illnau-Effretikon",
"Ittigen",
"Jona",
"Kriens",
"Kloten",
"K\xC3\xB6niz",
"Kreuzlingen",
"K\xC3\xBCsnacht",
"Agen",
"Lancy",
"La Chaux-de-Fonds",
"Lenzburg",
"Lugano",
"Langenthal",
"Littau",
"Le Locle",
"La Neuveville",
"Locarno",
"Liestal",
"La Tour-de-Peilz",
"Lausanne",
"Lyss",
"Luzern",
"Martigny",
"M\xC3\xBCnchenstein",
"Meyrin",
"Montreux",
"Monthey",
"Morges",
"Murten",
"Moutier",
"Muttenz",
"Neuch\xC3\xA2tel",
"Neuhausen am Rheinfall",
"Nyon",
"Olten",
"Onex",
"Opfikon",
"Ostermundigen",
"Payerne",
"Peseux",
"Prilly",
"Pully",
"Rapperswil",
"Richterswil",
"Regensdorf",
"Rheinfelden",
"Riehen",
"Renens",
"Romanshorn",
"Rorschach",
"Stans",
"Schaffhausen",
"Steffisburg",
"St. Gallen",
"Schlieren",
"Sierre",
"Solothurn",
"St. Moritz",
"Sion",
"Spiez",
"St\xC3\xA4""fa",
"Sursee",
"Schwyz",
"Thalwil",
"Thônex",
"Thun",
"Uster",
"Uzwil",
"Vernier",
"Volketswil",
"Versoix",
"Vevey",
"W\xC3\xA4""denswil",
"Wettingen",
"Wil",
"Wallisellen",
"Winterthur",
"Wohlen",
"Worb",
"Wetzikon",
"Yverdon-les-Bains",
"Zollikon",
"Zofingen",
"Z\xC3\xBCrich",
"Zug",
};
static const char * const _name_danish_1[] = {
"Gamle ",
"Lille ",
"Nye ",
"Store ",
"Kirke ",
"N\xC3\xB8rre ",
"Vester ",
"S\xC3\xB8nder ",
"\xC3\x98ster ",
"Hvide ",
"H\xC3\xB8je ",
"Kongens ",
};
static const char * const _name_danish_2[] = {
"Ager",
"Alle",
"Aske",
"Balle",
"Bede",
"Birke",
"Bjerring",
"Bj\xC3\xA6ver",
"Blommens",
"Blok",
"Bolder",
"Bred",
"Charlotten",
"Christians",
"Danne",
"Diana",
"Es",
"Fredens",
"Frederiks",
"Fugle",
"F\xC3\xA5re",
"Gille",
"Gis",
"Givs",
"Glams",
"Glo",
"Guld",
"Had",
"Haralds",
"Hassel",
"Hede",
"Helle",
"Hessel",
"Hjorts",
"Hol",
"Horn",
"Humle",
"H\xC3\xB8j",
"H\xC3\xB8r",
"Is",
"Jyde",
"J\xC3\xA6gers",
"Karls",
"Klov",
"Kokke",
"Kvist",
"Lang",
"Lange",
"Mari",
"Nord",
"Ny",
"Oks",
"Ring",
"R\xC3\xB8""de",
"Rung",
"R\xC3\xB8r",
"Rud",
"Saks",
"Salt",
"Skam",
"Silke",
"Skod",
"Sk\xC3\xA6l",
"Sk\xC3\xA6r",
"Sol",
"Svend",
"Svine",
"Strand",
"Stubbe",
"Ting",
"Tj\xC3\xA6re",
"Tore",
"Uger",
"Ulf",
"Val",
"Vand",
"Vej",
"Vor",
"V\xC3\xA6r",
"\xC3\x98r",
"\xC3\x85l",
};
static const char * const _name_danish_3[] = {
"basse",
"borg",
"berg",
"bro",
"by",
"havn",
"strup",
"holm",
"hus",
"k\xC3\xB8""bing",
"lund",
"lunde",
"sund",
"ovre",
"h\xC3\xB8j",
"dal",
"sted",
"sten",
"l\xC3\xB8se",
"r\xC3\xB8""d",
"magle",
"s\xC3\xB8",
"bjerg",
"b\xC3\xA6k",
"drup",
"lev",
"bo",
"lyst",
"feld",
"skov",
};
static const char * const _name_turkish_prefix[] = {
"Ak\xC3\xA7""a",
"Alt\xC4\xB1n",
"Bah\xC3\xA7""e",
"Boz",
"B\xC3\xBCy\xC3\xBCk",
"\xC3\x87""ay",
"Do\xC4\x9Fu",
"Eski",
"G\xC3\xBCzel",
"K\xC4\xB1z\xC4\xB1l",
"K\xC3\xBC\xC3\xA7\xC3\xBCk",
"Orta",
"Sar\xC4\xB1",
"Sultan",
"Ulu",
"Yeni",
};
static const char * const _name_turkish_middle[] = {
"aga\xC3\xA7",
"ayva",
"\xC3\xA7""am",
"elma",
"kurt",
"pazar",
"yal\xC4\xB1",
};
static const char * const _name_turkish_suffix[] = {
"dere",
"hisar",
"kale",
"kaya",
"kent",
"k\xC3\xB6y",
"ova",
"\xC3\xB6z\xC3\xBC",
"\xC3\xB6ren",
"pazar",
"saray",
"tepe",
"yer",
"yurt",
};
static const char * const _name_turkish_real[] = {
"Adana",
"Ad\xC4\xB1yaman",
"Afyon",
"A\xC4\x9Fr\xC4\xB1",
"Amasya",
"Antalya",
"Artvin",
"Bal\xC4\xB1kesir",
"Bilecik",
"Bitlis",
"Bolu",
"Burdur",
"Bursa",
"\xC3\x87""anakkale",
"\xC3\x87""ank\xC4\xB1r\xC4\xB1",
"Denizli",
"Diyarbak\xC4\xB1r",
"Edirne",
"Elaz\xC4\xB1\xC4\x9F",
"Erzurum",
"Eskisehir",
"Giresun",
"G\xC3\xBCm\xC3\xBC\xC5\x9Fhane",
"Hatay",
"Isparta",
"\xC4\xB0\xC3\xA7""el",
"\xC4\xB0stanbul",
"\xC4\xB0zmir",
"Kars",
"Kastamonu",
"Kayseri",
"Kirklareli",
"Kocaeli",
"Konya",
"K\xC3\xBCtahya",
"Malatya",
"Manisa",
"Kahramanmara\xC5\x9F",
"Mardin",
"Mu\xC4\x9Fla",
"Mu\xC5\x9F",
"Nev\xC5\x9F""ehir",
"Ni\xC4\x9F""de",
"Rize",
"Sakarya",
"Samsun",
"Siirt",
"Sinop",
"Sivas",
"Trabzon",
"\xC5\x9E""anl\xC4\xB1urfa",
"Van",
"Yozgat",
"Zonguldak",
"Aksaray",
"Bayburt",
"Karaman",
"\xC5\x9E\xC4\xB1rnak",
"Bart\xC4\xB1n",
"Ardahan",
"I\xC4\x9F""d\xC4\xB1r",
"Yalova",
"Karab\xC3\xBCk",
"Osmaniye",
"D\xC3\xBCzce",
};
static const char * const _name_italian_real[] = {
"Roma",
"Milano",
"Napoli",
"Torino",
"Venezia",
"Firenze",
"Palermo",
"Genova",
"Parma",
"Bologna",
"Bari",
"Cagliari",
"Sassari",
"Pisa",
"Aosta",
"Brescia",
"Verona",
"Bolzano",
"Padova",
"Udine",
"Trieste",
"Livorno",
"Ancona",
"Perugia",
"Pescara",
"L'Aquila",
"Campobasso",
"Potenza",
"Cosenza",
"Reggio Calabria",
"Catania",
"Caltanisetta",
"Agrigento",
"La Spezia",
"Modena",
"Vicenza",
"Mantova",
"Cremona",
"Piacenza",
"Reggio Emilia",
"Foggia",
"Benevento",
"Salerno",
"Catanzaro",
"Lecce",
"Como",
"Lecco",
"Sondrio",
"Trento",
"Desenzano",
"Cuneo",
"Asti",
"Lodi",
"Novara",
"Biella",
"Vercelli",
"Rieti",
"Nuoro",
"Oristano",
"Matera",
"Taranto",
"Varese",
"Bergamo",
"Pavia",
"Caserta",
"Frosinone",
"Latina",
"Enna",
"Ragusa",
"Siracusa",
"Pordenone",
"Imperia",
"Verbania",
"Alessandria",
"Messina",
"Siena",
"Arezzo",
"Grosseto",
};
static const char * const _name_italian_pref[] = {
"Alpe ",
"Borgo ",
"Cascina ",
"Castel ",
"Fonte ",
"Forte ",
"Malga ",
"Pieve ",
"Poggio ",
"Rocca ",
"Villa ",
"Villar ",
};
static const char * const _name_italian_1m[] = {
"Bel",
"Borgo",
"Bosco",
"Campo",
"Capo",
"Casal",
"Castel",
"Colle",
"Fiume",
"Fonte",
"Lago",
"Mezzo",
"Monte",
"Mon",
"Orto",
"Passo",
"Prato",
"Poggio",
"Ponte",
"Pozzo",
"Sasso",
"Tra",
"Tre",
"Ver",
"Vico",
};
static const char * const _name_italian_1f[] = {
"Acqua",
"Bra",
"Cala",
"Casa",
"Chiesa",
"Citta",
"Civita",
"Corte",
"Costa",
"Croce",
"Fontana",
"Grotta",
"Guardia",
"Mezza",
"Palma",
"Pietra",
"Ripa",
"Rocca",
"Serra",
"Torre",
"Val",
"Valle",
"Villa",
};
static const char * const _name_italian_2[] = {
"bell",
"bianc",
"cald",
"chiar",
"cort",
"ferrat",
"fier",
"fredd",
"gioios",
"grec",
"guzz",
"lung",
"long",
"migli",
"negr",
"ner",
"nov",
"nuov",
"ross",
"rotond",
"scur",
"secc",
"sett",
"vecchi",
"ventos",
"vers",
"viv",
};
static const char * const _name_italian_2i[] = {
"",
"breve",
"brevi",
"chiari",
"ferro",
"fieschi",
"fiore",
"fonte",
"forte",
"gate",
"leone",
"maggiore",
"minore",
"mole",
"monte",
"poli",
"scuri",
"terra",
"te",
"torrione",
"vento",
"verde",
"versiere",
};
static const char * const _name_italian_3[] = {
" Marittimo",
" Marittima",
" del Capo",
" del Monte",
" di Sopra",
" di Sotto",
" sui Monti",
" dei Marmi",
" dei Sassi",
" delle Fonti",
" sui Prati",
" a Mare",
" Superiore",
" Inferiore",
" Terme",
" Alta",
" Bassa",
" Brianza",
" Vesuviano",
" Scrivia",
" Ticino",
};
static const char * const _name_italian_river1[] = {
" del",
" sul",
" al",
" nel",
};
static const char * const _name_italian_river2[] = {
"l'Adda",
"l'Adige",
"le Alpi",
"l'Arno",
" Bormida",
" Brenta",
"la Dora Baltea",
" Lambro",
" Mincio",
" Naviglio",
"l'Oglio",
"l'Olona",
"l'Ombrone",
" Panaro",
" Piave",
" Po",
" Reno",
" Scrivia",
" Secchia",
" Serio",
" Tagliamento",
" Tanaro",
" Taro",
" Ticino",
" Tevere",
};
static const char * const _name_catalan_real[] = {
"Barcelona",
"Hospitalet",
"Cerdanyola",
"Martorell",
"Badalona",
"Tarragona",
"Lleida",
"Girona",
"Sabadell",
"Terrassa",
"Reus",
"Valls",
"Vic",
"Vielha",
"Amposta",
"Tortosa",
"Berga",
"Olot",
"Mollerussa",
"Banyoles",
"Figueres",
"Balaguer",
"Vilafranca del Pened\xC3\xA8s",
"La seu d'Urgell",
"Pont de Suert",
"Igualada",
"Manresa",
"Solsona",
"Les borges blanques",
"Tremp",
"Sort",
"Colera",
"Portbou",
"El Vendrell",
"Falset",
"Ripoll",
"Cervera",
"Gandesa",
"Matar\xC3\xB3",
"Montblanc",
"Vilanova i la Geltr\xC3\xBA",
"T\xC3\xA0rrega",
"Camprodon",
"Campdev\xC3\xA0nol",
"Cambrils",
"Begur",
"Set Cases",
"Palafrugell",
"Begues",
"El Bruc",
"Cadaqu\xC3\xA9s",
"Collbat\xC3\xB3",
"Cervell\xC3\xB3",
"Esparraguera",
"Abrera",
"Alp",
"Das",
"Cercs",
"Manlleu",
"Masnou",
"Molins de rei",
"Monistrol",
"Rocallaura",
"Rub\xC3\xAD",
"Ripollet",
"Sitges",
"Roses",
};
static const char * const _name_catalan_pref[] = {
"Pont de ",
"Parets de ",
"Canet de ",
"Castellar de ",
"Corbera de ",
"Arenys de ",
"Calella de ",
"La seu de ",
"La bisbal de ",
"Torroella de ",
"Port de ",
"Vilafranca de ",
"Vilanova de ",
"Caldes de ",
"La Conca de ",
"Olesa de ",
"La Roca de ",
"Sant Esteve de ",
"Sant Andreu de ",
"Sant Jordi de ",
"Sant Joan de ",
"Sant Feliu de ",
"Sant Quirze de ",
"Sant Sadurn\xC3\xAD de ",
"Santa Coloma de ",
"Santa Margarida de ",
"Santa Maria de ",
"Sant Mart\xC3\xAD de ",
"Sant Pere de ",
"Sant Juli\xC3\xA0 de ",
"Sant Vicen\xC3\xA7 de ",
};
static const char * const _name_catalan_1m[] = {
"Torrent",
"Cami",
"Mont",
"Bell",
"Puig",
"Riu",
};
static const char * const _name_catalan_1f[] = {
"Aigua",
"Selva ",
"Vall",
"Serra",
"Torre",
"Riba",
"Vall",
"Terra",
};
static const char * const _name_catalan_2m[] = {
"alt",
"baix",
"fosc",
"pelat",
"vent\xC3\xB3s",
"negre",
"roig",
"gris",
};
static const char * const _name_catalan_2f[] = {
"baixa",
"alta",
"fosca",
"clara",
"negra",
"roja",
"grisa",
"freda",
};
static const char * const _name_catalan_3[] = {
" desp\xC3\xAD",
" desvern",
" del cam\xC3\xAD",
" de Mar",
" de Dalt",
" de Baix",
" del Vall\xC3\xA8s",
" de Bergued\xC3\xA0",
" de Conflent",
" de la plana",
};
static const char * const _name_catalan_river1[] = {
" d'Anoia",
" de Ter",
" de Llobregat",
" d'Ebre",
" de Segre",
" de Francol\xC3\xAD",
};
| 49,299
|
C++
|
.h
| 3,190
| 13.490282
| 86
| 0.589663
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,637
|
sprites.h
|
EnergeticBark_OpenTTD-3DS/src/table/sprites.h
|
/* $Id$ */
/** @file sprites.h
* This file contails all sprite-related enums and defines. These consist mainly of
* the sprite numbers and a bunch of masks and macros to handle sprites and to get
* rid of all the magic numbers in the code.
*
* @NOTE:
* ALL SPRITE NUMBERS BELOW 5126 are in the main files
*
* All elements which consist of two elements should
* have the same name and then suffixes
* _GROUND and _BUILD for building-type sprites
* _REAR and _FRONT for transport-type sprites (tiles where vehicles are on)
* These sprites are split because of the Z order of the elements
* (like some parts of a bridge are behind the vehicle, while others are before)
*
*
* All sprites which are described here are referenced only one to a handful of times
* throughout the code. When introducing new sprite enums, use meaningful names.
* Don't be lazy and typing, and only use abbrevations when their meaning is clear or
* the length of the enum would get out of hand. In that case EXPLAIN THE ABBREVATION
* IN THIS FILE, and perhaps add some comments in the code where it is used.
* Now, don't whine about this being too much typing work if the enums are like
* 30 characters in length. If your editor doen't help you simplifying your work,
* get a proper editor. If your Operating Systems don't have any decent editors,
* get a proper Operating System.
*
* @todo Split the "Sprites" enum into smaller chunks and document them
*/
#ifndef SPRITES_H
#define SPRITES_H
#include "../gfx_type.h"
enum Sprites {
SPR_SELECT_TILE = 752,
SPR_DOT = 774, // corner marker for lower/raise land
SPR_DOT_SMALL = 4078,
SPR_WHITE_POINT = 4079,
/* ASCII */
SPR_ASCII_SPACE = 2,
SPR_ASCII_SPACE_SMALL = 226,
SPR_ASCII_SPACE_BIG = 450,
SPR_LARGE_SMALL_WINDOW = 682,
/* Extra graphic spritenumbers */
SPR_OPENTTD_BASE = 4896,
OPENTTD_SPRITE_COUNT = 149,
/* Halftile-selection sprites */
SPR_HALFTILE_SELECTION_FLAT = SPR_OPENTTD_BASE,
SPR_HALFTILE_SELECTION_DOWN = SPR_OPENTTD_BASE + 4,
SPR_HALFTILE_SELECTION_UP = SPR_OPENTTD_BASE + 8,
SPR_SQUARE = SPR_OPENTTD_BASE + 38, // coloured square (used for newgrf compatibility)
SPR_BLOT = SPR_OPENTTD_BASE + 39, // coloured circle (mainly used as vehicle profit marker and for server compatibility)
SPR_LOCK = SPR_OPENTTD_BASE + 40, // lock icon (for password protected servers)
SPR_BOX_EMPTY = SPR_OPENTTD_BASE + 41,
SPR_BOX_CHECKED = SPR_OPENTTD_BASE + 42,
SPR_WARNING_SIGN = SPR_OPENTTD_BASE + 43, // warning sign (shown if there are any newgrf errors)
SPR_WINDOW_RESIZE = SPR_OPENTTD_BASE + 44, // resize icon
/* Arrow icons pointing in all 4 directions */
SPR_ARROW_DOWN = SPR_OPENTTD_BASE + 45,
SPR_ARROW_UP = SPR_OPENTTD_BASE + 46,
SPR_ARROW_LEFT = SPR_OPENTTD_BASE + 47,
SPR_ARROW_RIGHT = SPR_OPENTTD_BASE + 48,
SPR_HOUSE_ICON = SPR_OPENTTD_BASE + 49,
SPR_SHARED_ORDERS_ICON = SPR_OPENTTD_BASE + 50,
SPR_PIN_UP = SPR_OPENTTD_BASE + 51, // pin icon
SPR_PIN_DOWN = SPR_OPENTTD_BASE + 52,
SPR_CIRCLE_FOLDED = SPR_OPENTTD_BASE + 147, // (+) icon
SPR_CIRCLE_UNFOLDED = SPR_OPENTTD_BASE + 148, // (-) icon
/* on screen keyboard icons */
SPR_OSK_LEFT = SPR_OPENTTD_BASE + 138,
SPR_OSK_RIGHT = SPR_OPENTTD_BASE + 139,
SPR_OSK_CAPS = SPR_OPENTTD_BASE + 140,
SPR_OSK_SHIFT = SPR_OPENTTD_BASE + 141,
SPR_OSK_BACKSPACE = SPR_OPENTTD_BASE + 142,
SPR_OSK_SPECIAL = SPR_OPENTTD_BASE + 143,
/* Clone vehicles stuff */
SPR_CLONE_TRAIN = SPR_OPENTTD_BASE + 106,
SPR_CLONE_ROADVEH = SPR_OPENTTD_BASE + 107,
SPR_CLONE_SHIP = SPR_OPENTTD_BASE + 108,
SPR_CLONE_AIRCRAFT = SPR_OPENTTD_BASE + 109,
SPR_SELL_TRAIN = SPR_OPENTTD_BASE + 93,
SPR_SELL_ROADVEH = SPR_OPENTTD_BASE + 94,
SPR_SELL_SHIP = SPR_OPENTTD_BASE + 95,
SPR_SELL_AIRCRAFT = SPR_OPENTTD_BASE + 96,
SPR_SELL_ALL_TRAIN = SPR_OPENTTD_BASE + 97,
SPR_SELL_ALL_ROADVEH = SPR_OPENTTD_BASE + 98,
SPR_SELL_ALL_SHIP = SPR_OPENTTD_BASE + 99,
SPR_SELL_ALL_AIRCRAFT = SPR_OPENTTD_BASE + 100,
SPR_REPLACE_TRAIN = SPR_OPENTTD_BASE + 101,
SPR_REPLACE_ROADVEH = SPR_OPENTTD_BASE + 102,
SPR_REPLACE_SHIP = SPR_OPENTTD_BASE + 103,
SPR_REPLACE_AIRCRAFT = SPR_OPENTTD_BASE + 104,
SPR_SELL_CHAIN_TRAIN = SPR_OPENTTD_BASE + 105,
SPR_GROUP_CREATE_TRAIN = SPR_OPENTTD_BASE + 114,
SPR_GROUP_CREATE_ROADVEH = SPR_OPENTTD_BASE + 115,
SPR_GROUP_CREATE_SHIP = SPR_OPENTTD_BASE + 116,
SPR_GROUP_CREATE_AIRCRAFT = SPR_OPENTTD_BASE + 117,
SPR_GROUP_DELETE_TRAIN = SPR_OPENTTD_BASE + 118,
SPR_GROUP_DELETE_ROADVEH = SPR_OPENTTD_BASE + 119,
SPR_GROUP_DELETE_SHIP = SPR_OPENTTD_BASE + 120,
SPR_GROUP_DELETE_AIRCRAFT = SPR_OPENTTD_BASE + 121,
SPR_GROUP_RENAME_TRAIN = SPR_OPENTTD_BASE + 122,
SPR_GROUP_RENAME_ROADVEH = SPR_OPENTTD_BASE + 123,
SPR_GROUP_RENAME_SHIP = SPR_OPENTTD_BASE + 124,
SPR_GROUP_RENAME_AIRCRAFT = SPR_OPENTTD_BASE + 125,
SPR_GROUP_REPLACE_ON_TRAIN = SPR_OPENTTD_BASE + 126,
SPR_GROUP_REPLACE_ON_ROADVEH = SPR_OPENTTD_BASE + 127,
SPR_GROUP_REPLACE_ON_SHIP = SPR_OPENTTD_BASE + 128,
SPR_GROUP_REPLACE_ON_AIRCRAFT = SPR_OPENTTD_BASE + 129,
SPR_GROUP_REPLACE_OFF_TRAIN = SPR_OPENTTD_BASE + 130,
SPR_GROUP_REPLACE_OFF_ROADVEH = SPR_OPENTTD_BASE + 131,
SPR_GROUP_REPLACE_OFF_SHIP = SPR_OPENTTD_BASE + 132,
SPR_GROUP_REPLACE_OFF_AIRCRAFT = SPR_OPENTTD_BASE + 133,
SPR_SWITCH_TOOLBAR = SPR_OPENTTD_BASE + 144,
SPR_SIGNALS_BASE = SPR_OPENTTD_BASE + OPENTTD_SPRITE_COUNT,
PRESIGNAL_SPRITE_COUNT = 48,
PRESIGNAL_AND_SEMAPHORE_SPRITE_COUNT = 112,
PRESIGNAL_SEMAPHORE_AND_PBS_SPRITE_COUNT = 240,
SPR_CANALS_BASE = SPR_SIGNALS_BASE + PRESIGNAL_SEMAPHORE_AND_PBS_SPRITE_COUNT,
CANALS_SPRITE_COUNT = 65,
/* Sprites for the Aqueduct. */
SPR_AQUEDUCT_BASE = SPR_CANALS_BASE + CANALS_SPRITE_COUNT,
SPR_AQUEDUCT_RAMP_SW = SPR_AQUEDUCT_BASE + 0,
SPR_AQUEDUCT_RAMP_SE = SPR_AQUEDUCT_BASE + 1,
SPR_AQUEDUCT_RAMP_NE = SPR_AQUEDUCT_BASE + 2,
SPR_AQUEDUCT_RAMP_NW = SPR_AQUEDUCT_BASE + 3,
SPR_AQUEDUCT_MIDDLE_X = SPR_AQUEDUCT_BASE + 4,
SPR_AQUEDUCT_MIDDLE_Y = SPR_AQUEDUCT_BASE + 5,
SPR_AQUEDUCT_PILLAR_X = SPR_AQUEDUCT_BASE + 6,
SPR_AQUEDUCT_PILLAR_Y = SPR_AQUEDUCT_BASE + 7,
AQUEDUCT_SPRITE_COUNT = 8,
/* Sprites for 'highlighting' tracks on sloped land. */
SPR_TRACKS_FOR_SLOPES_BASE = SPR_AQUEDUCT_BASE + AQUEDUCT_SPRITE_COUNT,
SPR_TRACKS_FOR_SLOPES_RAIL_BASE = SPR_TRACKS_FOR_SLOPES_BASE + 0,
SPR_TRACKS_FOR_SLOPES_MONO_BASE = SPR_TRACKS_FOR_SLOPES_BASE + 4,
SPR_TRACKS_FOR_SLOPES_MAGLEV_BASE = SPR_TRACKS_FOR_SLOPES_BASE + 8,
TRACKS_FOR_SLOPES_SPRITE_COUNT = 12,
SPR_SLOPES_BASE = SPR_TRACKS_FOR_SLOPES_BASE + TRACKS_FOR_SLOPES_SPRITE_COUNT,
SPR_SLOPES_INCLINED_OFFSET = 15,
SPR_SLOPES_VIRTUAL_BASE = SPR_SLOPES_BASE - SPR_SLOPES_INCLINED_OFFSET, // The original foundations (see SPR_FOUNDATION_BASE below) are mapped before the additional foundations.
SPR_TRKFOUND_BLOCK_SIZE = 22, // The normal track foundation sprites are organized in blocks of 22.
NORMAL_FOUNDATION_SPRITE_COUNT = 74,
/* Halftile foundations */
SPR_HALFTILE_FOUNDATION_BASE = SPR_SLOPES_BASE + NORMAL_FOUNDATION_SPRITE_COUNT,
SPR_HALFTILE_BLOCK_SIZE = 4, // The half tile foundation sprites are organized in blocks of 4.
NORMAL_AND_HALFTILE_FOUNDATION_SPRITE_COUNT = 90,
SPR_AUTORAIL_BASE = SPR_HALFTILE_FOUNDATION_BASE + NORMAL_AND_HALFTILE_FOUNDATION_SPRITE_COUNT,
AUTORAIL_SPRITE_COUNT = 55,
SPR_ELRAIL_BASE = SPR_AUTORAIL_BASE + AUTORAIL_SPRITE_COUNT,
ELRAIL_SPRITE_COUNT = 48,
SPR_2CCMAP_BASE = SPR_ELRAIL_BASE + ELRAIL_SPRITE_COUNT,
TWOCCMAP_SPRITE_COUNT = 256,
/* shore tiles - action 05-0D */
SPR_SHORE_BASE = SPR_2CCMAP_BASE + TWOCCMAP_SPRITE_COUNT,
SPR_SHORE_SPRITE_COUNT = 18,
SPR_ORIGINALSHORE_START = 4062,
SPR_ORIGINALSHORE_END = 4069,
SPR_AIRPORTX_BASE = SPR_SHORE_BASE + SPR_SHORE_SPRITE_COUNT, // The sprites used for other airport angles
SPR_NEWAIRPORT_TARMAC = SPR_AIRPORTX_BASE,
SPR_NSRUNWAY1 = SPR_AIRPORTX_BASE + 1,
SPR_NSRUNWAY2 = SPR_AIRPORTX_BASE + 2,
SPR_NSRUNWAY3 = SPR_AIRPORTX_BASE + 3,
SPR_NSRUNWAY4 = SPR_AIRPORTX_BASE + 4,
SPR_NSRUNWAY_END = SPR_AIRPORTX_BASE + 5,
SPR_NEWHANGAR_S = SPR_AIRPORTX_BASE + 6,
SPR_NEWHANGAR_S_WALL = SPR_AIRPORTX_BASE + 7,
SPR_NEWHANGAR_W = SPR_AIRPORTX_BASE + 8,
SPR_NEWHANGAR_W_WALL = SPR_AIRPORTX_BASE + 9,
SPR_NEWHANGAR_N = SPR_AIRPORTX_BASE + 10,
SPR_NEWHANGAR_E = SPR_AIRPORTX_BASE + 11,
SPR_NEWHELIPAD = SPR_AIRPORTX_BASE + 12,
SPR_GRASS_RIGHT = SPR_AIRPORTX_BASE + 13,
SPR_GRASS_LEFT = SPR_AIRPORTX_BASE + 14,
AIRPORTX_SPRITE_COUNT = 15,
SPR_ROADSTOP_BASE = SPR_AIRPORTX_BASE + AIRPORTX_SPRITE_COUNT, // The sprites used for drive-through road stops
SPR_BUS_STOP_DT_Y_W = SPR_ROADSTOP_BASE,
SPR_BUS_STOP_DT_Y_E = SPR_ROADSTOP_BASE + 1,
SPR_BUS_STOP_DT_X_W = SPR_ROADSTOP_BASE + 2,
SPR_BUS_STOP_DT_X_E = SPR_ROADSTOP_BASE + 3,
SPR_TRUCK_STOP_DT_Y_W = SPR_ROADSTOP_BASE + 4,
SPR_TRUCK_STOP_DT_Y_E = SPR_ROADSTOP_BASE + 5,
SPR_TRUCK_STOP_DT_X_W = SPR_ROADSTOP_BASE + 6,
SPR_TRUCK_STOP_DT_X_E = SPR_ROADSTOP_BASE + 7,
ROADSTOP_SPRITE_COUNT = 8,
/* Tramway sprites */
SPR_TRAMWAY_BASE = SPR_ROADSTOP_BASE + ROADSTOP_SPRITE_COUNT,
SPR_TRAMWAY_OVERLAY = SPR_TRAMWAY_BASE + 4,
SPR_TRAMWAY_TRAM = SPR_TRAMWAY_BASE + 27,
SPR_TRAMWAY_SLOPED_OFFSET = 11,
SPR_TRAMWAY_BUS_STOP_DT_Y_W = SPR_TRAMWAY_BASE + 25,
SPR_TRAMWAY_BUS_STOP_DT_Y_E = SPR_TRAMWAY_BASE + 23,
SPR_TRAMWAY_BUS_STOP_DT_X_W = SPR_TRAMWAY_BASE + 24,
SPR_TRAMWAY_BUS_STOP_DT_X_E = SPR_TRAMWAY_BASE + 26,
SPR_TRAMWAY_PAVED_STRAIGHT_Y = SPR_TRAMWAY_BASE + 46,
SPR_TRAMWAY_PAVED_STRAIGHT_X = SPR_TRAMWAY_BASE + 47,
SPR_TRAMWAY_BACK_WIRES_STRAIGHT = SPR_TRAMWAY_BASE + 55,
SPR_TRAMWAY_FRONT_WIRES_STRAIGHT = SPR_TRAMWAY_BASE + 56,
SPR_TRAMWAY_BACK_WIRES_SLOPED = SPR_TRAMWAY_BASE + 72,
SPR_TRAMWAY_FRONT_WIRES_SLOPED = SPR_TRAMWAY_BASE + 68,
SPR_TRAMWAY_TUNNEL_WIRES = SPR_TRAMWAY_BASE + 80,
SPR_TRAMWAY_BRIDGE = SPR_TRAMWAY_BASE + 107,
TRAMWAY_SPRITE_COUNT = 113,
/* One way road sprites */
SPR_ONEWAY_BASE = SPR_TRAMWAY_BASE + TRAMWAY_SPRITE_COUNT,
ONEWAY_SPRITE_COUNT = 6,
/* Flags sprites (in same order as enum NetworkLanguage) */
SPR_FLAGS_BASE = SPR_ONEWAY_BASE + ONEWAY_SPRITE_COUNT,
FLAGS_SPRITE_COUNT = 36,
/* Not really a sprite, but an empty bounding box. Used to construct bounding boxes, that help sorting the sprites, but do not have a sprite associated. */
SPR_EMPTY_BOUNDING_BOX = SPR_FLAGS_BASE + FLAGS_SPRITE_COUNT,
EMPTY_BOUNDING_BOX_SPRITE_COUNT = 1,
/* From where can we start putting NewGRFs? */
SPR_NEWGRFS_BASE = SPR_EMPTY_BOUNDING_BOX + EMPTY_BOUNDING_BOX_SPRITE_COUNT,
/* Manager face sprites */
SPR_GRADIENT = 874, // background gradient behind manager face
/* Icon showing company colour. */
SPR_PLAYER_ICON = 747,
/* is itself no foundation sprite, because tileh 0 has no foundation */
SPR_FOUNDATION_BASE = 989,
/* Shadow cell */
SPR_SHADOW_CELL = 1004,
/* Unmovables spritenumbers */
SPR_UNMOVABLE_TRANSMITTER = 2601,
SPR_UNMOVABLE_LIGHTHOUSE = 2602,
SPR_TINYHQ_NORTH = 2603,
SPR_TINYHQ_EAST = 2604,
SPR_TINYHQ_WEST = 2605,
SPR_TINYHQ_SOUTH = 2606,
SPR_SMALLHQ_NORTH = 2607,
SPR_SMALLHQ_EAST = 2608,
SPR_SMALLHQ_WEST = 2609,
SPR_SMALLHQ_SOUTH = 2610,
SPR_MEDIUMHQ_NORTH = 2611,
SPR_MEDIUMHQ_NORTH_WALL = 2612,
SPR_MEDIUMHQ_EAST = 2613,
SPR_MEDIUMHQ_EAST_WALL = 2614,
SPR_MEDIUMHQ_WEST = 2615,
SPR_MEDIUMHQ_WEST_WALL = 2616, // very tiny piece of wall
SPR_MEDIUMHQ_SOUTH = 2617,
SPR_LARGEHQ_NORTH_GROUND = 2618,
SPR_LARGEHQ_NORTH_BUILD = 2619,
SPR_LARGEHQ_EAST_GROUND = 2620,
SPR_LARGEHQ_EAST_BUILD = 2621,
SPR_LARGEHQ_WEST_GROUND = 2622,
SPR_LARGEHQ_WEST_BUILD = 2623,
SPR_LARGEHQ_SOUTH = 2624,
SPR_HUGEHQ_NORTH_GROUND = 2625,
SPR_HUGEHQ_NORTH_BUILD = 2626,
SPR_HUGEHQ_EAST_GROUND = 2627,
SPR_HUGEHQ_EAST_BUILD = 2628,
SPR_HUGEHQ_WEST_GROUND = 2629,
SPR_HUGEHQ_WEST_BUILD = 2630,
SPR_HUGEHQ_SOUTH = 2631,
SPR_CONCRETE_GROUND = 1420,
SPR_STATUE_COMPANY = 2632,
SPR_BOUGHT_LAND = 4790,
/* sprites for rail and rail stations*/
SPR_RAIL_SNOW_OFFSET = 26,
SPR_MONO_SNOW_OFFSET = 26,
SPR_MGLV_SNOW_OFFSET = 26,
SPR_ORIGINAL_SIGNALS_BASE = 1275,
SPR_RAIL_SINGLE_Y = 1005,
SPR_RAIL_SINGLE_X = 1006,
SPR_RAIL_SINGLE_NORTH = 1007,
SPR_RAIL_SINGLE_SOUTH = 1008,
SPR_RAIL_SINGLE_EAST = 1009,
SPR_RAIL_SINGLE_WEST = 1010,
SPR_RAIL_TRACK_Y = 1011,
SPR_RAIL_TRACK_X = 1012,
SPR_RAIL_TRACK_BASE = 1018,
SPR_RAIL_TRACK_N_S = 1035,
SPR_RAIL_TRACK_Y_SNOW = 1037,
SPR_RAIL_TRACK_X_SNOW = 1038,
SPR_RAIL_DEPOT_SE_1 = 1063,
SPR_RAIL_DEPOT_SE_2 = 1064,
SPR_RAIL_DEPOT_SW_1 = 1065,
SPR_RAIL_DEPOT_SW_2 = 1066,
SPR_RAIL_DEPOT_NE = 1067,
SPR_RAIL_DEPOT_NW = 1068,
SPR_RAIL_PLATFORM_Y_FRONT = 1069,
SPR_RAIL_PLATFORM_X_REAR = 1070,
SPR_RAIL_PLATFORM_Y_REAR = 1071,
SPR_RAIL_PLATFORM_X_FRONT = 1072,
SPR_RAIL_PLATFORM_BUILDING_X = 1073,
SPR_RAIL_PLATFORM_BUILDING_Y = 1074,
SPR_RAIL_PLATFORM_PILLARS_Y_FRONT = 1075,
SPR_RAIL_PLATFORM_PILLARS_X_REAR = 1076,
SPR_RAIL_PLATFORM_PILLARS_Y_REAR = 1077,
SPR_RAIL_PLATFORM_PILLARS_X_FRONT = 1078,
SPR_RAIL_ROOF_STRUCTURE_X_TILE_A = 1079, // First half of the roof structure
SPR_RAIL_ROOF_STRUCTURE_Y_TILE_A = 1080,
SPR_RAIL_ROOF_STRUCTURE_X_TILE_B = 1081, // Second half of the roof structure
SPR_RAIL_ROOF_STRUCTURE_Y_TILE_B = 1082,
SPR_RAIL_ROOF_GLASS_X_TILE_A = 1083, // First half of the roof glass
SPR_RAIL_ROOF_GLASS_Y_TILE_A = 1084,
SPR_RAIL_ROOF_GLASS_X_TILE_B = 1085, // second half of the roof glass
SPR_RAIL_ROOF_GLASS_Y_TILE_B = 1086,
SPR_MONO_SINGLE_Y = 1087,
SPR_MONO_SINGLE_X = 1088,
SPR_MONO_SINGLE_NORTH = 1089,
SPR_MONO_SINGLE_SOUTH = 1090,
SPR_MONO_SINGLE_EAST = 1091,
SPR_MONO_SINGLE_WEST = 1092,
SPR_MONO_TRACK_Y = 1093,
SPR_MONO_TRACK_BASE = 1100,
SPR_MONO_TRACK_N_S = 1117,
SPR_MGLV_SINGLE_Y = 1169,
SPR_MGLV_SINGLE_X = 1170,
SPR_MGLV_SINGLE_NORTH = 1171,
SPR_MGLV_SINGLE_SOUTH = 1172,
SPR_MGLV_SINGLE_EAST = 1173,
SPR_MGLV_SINGLE_WEST = 1174,
SPR_MGLV_TRACK_Y = 1175,
SPR_MGLV_TRACK_BASE = 1182,
SPR_MGLV_TRACK_N_S = 1199,
SPR_WAYPOINT_X_1 = SPR_OPENTTD_BASE + 78,
SPR_WAYPOINT_X_2 = SPR_OPENTTD_BASE + 79,
SPR_WAYPOINT_Y_1 = SPR_OPENTTD_BASE + 80,
SPR_WAYPOINT_Y_2 = SPR_OPENTTD_BASE + 81,
OFFSET_TILEH_IMPOSSIBLE = 0,
OFFSET_TILEH_1 = 14,
OFFSET_TILEH_2 = 15,
OFFSET_TILEH_3 = 22,
OFFSET_TILEH_4 = 13,
OFFSET_TILEH_6 = 21,
OFFSET_TILEH_7 = 17,
OFFSET_TILEH_8 = 12,
OFFSET_TILEH_9 = 23,
OFFSET_TILEH_11 = 18,
OFFSET_TILEH_12 = 20,
OFFSET_TILEH_13 = 19,
OFFSET_TILEH_14 = 16,
/* Track fences */
SPR_TRACK_FENCE_FLAT_X = 1301,
SPR_TRACK_FENCE_FLAT_Y = 1302,
SPR_TRACK_FENCE_FLAT_VERT = 1303,
SPR_TRACK_FENCE_FLAT_HORZ = 1304,
SPR_TRACK_FENCE_SLOPE_SW = 1305,
SPR_TRACK_FENCE_SLOPE_SE = 1306,
SPR_TRACK_FENCE_SLOPE_NE = 1307,
SPR_TRACK_FENCE_SLOPE_NW = 1308,
/* Base sprites for elrail.
* Offsets via an enum are used so a complete list of absolute
* sprite numbers is unnecessary.
*/
SPR_WIRE_BASE = SPR_ELRAIL_BASE + 0,
SPR_PYLON_BASE = SPR_ELRAIL_BASE + 28,
/* sprites for roads */
SPR_ROAD_PAVED_STRAIGHT_Y = 1313,
SPR_ROAD_PAVED_STRAIGHT_X = 1314,
/* sprites for airports and airfields*/
/* Small airports are AIRFIELD, everything else is AIRPORT */
SPR_HELIPORT = 2633,
SPR_AIRPORT_APRON = 2634,
SPR_AIRPORT_AIRCRAFT_STAND = 2635,
SPR_AIRPORT_TAXIWAY_NS_WEST = 2636,
SPR_AIRPORT_TAXIWAY_EW_SOUTH = 2637,
SPR_AIRPORT_TAXIWAY_XING_SOUTH = 2638,
SPR_AIRPORT_TAXIWAY_XING_WEST = 2639,
SPR_AIRPORT_TAXIWAY_NS_CTR = 2640,
SPR_AIRPORT_TAXIWAY_XING_EAST = 2641,
SPR_AIRPORT_TAXIWAY_NS_EAST = 2642,
SPR_AIRPORT_TAXIWAY_EW_NORTH = 2643,
SPR_AIRPORT_TAXIWAY_EW_CTR = 2644,
SPR_AIRPORT_RUNWAY_EXIT_A = 2645,
SPR_AIRPORT_RUNWAY_EXIT_B = 2646,
SPR_AIRPORT_RUNWAY_EXIT_C = 2647,
SPR_AIRPORT_RUNWAY_EXIT_D = 2648,
SPR_AIRPORT_RUNWAY_END = 2649, // We should have different ends
SPR_AIRPORT_TERMINAL_A = 2650,
SPR_AIRPORT_TOWER = 2651,
SPR_AIRPORT_CONCOURSE = 2652,
SPR_AIRPORT_TERMINAL_B = 2653,
SPR_AIRPORT_TERMINAL_C = 2654,
SPR_AIRPORT_HANGAR_FRONT = 2655,
SPR_AIRPORT_HANGAR_REAR = 2656,
SPR_AIRFIELD_HANGAR_FRONT = 2657,
SPR_AIRFIELD_HANGAR_REAR = 2658,
SPR_AIRPORT_JETWAY_1 = 2659,
SPR_AIRPORT_JETWAY_2 = 2660,
SPR_AIRPORT_JETWAY_3 = 2661,
SPR_AIRPORT_PASSENGER_TUNNEL = 2662,
SPR_AIRPORT_FENCE_Y = 2663,
SPR_AIRPORT_FENCE_X = 2664,
SPR_AIRFIELD_TERM_A = 2665,
SPR_AIRFIELD_TERM_B = 2666,
SPR_AIRFIELD_TERM_C_GROUND = 2667,
SPR_AIRFIELD_TERM_C_BUILD = 2668,
SPR_AIRFIELD_APRON_A = 2669,
SPR_AIRFIELD_APRON_B = 2670,
SPR_AIRFIELD_APRON_C = 2671,
SPR_AIRFIELD_APRON_D = 2672,
SPR_AIRFIELD_RUNWAY_NEAR_END = 2673,
SPR_AIRFIELD_RUNWAY_MIDDLE = 2674,
SPR_AIRFIELD_RUNWAY_FAR_END = 2675,
SPR_AIRFIELD_WIND_1 = 2676,
SPR_AIRFIELD_WIND_2 = 2677,
SPR_AIRFIELD_WIND_3 = 2678,
SPR_AIRFIELD_WIND_4 = 2679,
SPR_AIRPORT_RADAR_1 = 2680,
SPR_AIRPORT_RADAR_2 = 2681,
SPR_AIRPORT_RADAR_3 = 2682,
SPR_AIRPORT_RADAR_4 = 2683,
SPR_AIRPORT_RADAR_5 = 2684,
SPR_AIRPORT_RADAR_6 = 2685,
SPR_AIRPORT_RADAR_7 = 2686,
SPR_AIRPORT_RADAR_8 = 2687,
SPR_AIRPORT_RADAR_9 = 2688,
SPR_AIRPORT_RADAR_A = 2689,
SPR_AIRPORT_RADAR_B = 2690,
SPR_AIRPORT_RADAR_C = 2691,
SPR_AIRPORT_HELIPAD = SPR_OPENTTD_BASE + 86,
SPR_AIRPORT_HELIDEPOT_OFFICE = 2095,
/* Road Stops
* Road stops have a ground tile and 3 buildings, one on each side
* (except the side where the entry is). These are marked _A _B and _C */
SPR_BUS_STOP_NE_GROUND = 2692,
SPR_BUS_STOP_SE_GROUND = 2693,
SPR_BUS_STOP_SW_GROUND = 2694,
SPR_BUS_STOP_NW_GROUND = 2695,
SPR_BUS_STOP_NE_BUILD_A = 2696,
SPR_BUS_STOP_SE_BUILD_A = 2697,
SPR_BUS_STOP_SW_BUILD_A = 2698,
SPR_BUS_STOP_NW_BUILD_A = 2699,
SPR_BUS_STOP_NE_BUILD_B = 2700,
SPR_BUS_STOP_SE_BUILD_B = 2701,
SPR_BUS_STOP_SW_BUILD_B = 2702,
SPR_BUS_STOP_NW_BUILD_B = 2703,
SPR_BUS_STOP_NE_BUILD_C = 2704,
SPR_BUS_STOP_SE_BUILD_C = 2705,
SPR_BUS_STOP_SW_BUILD_C = 2706,
SPR_BUS_STOP_NW_BUILD_C = 2707,
SPR_TRUCK_STOP_NE_GROUND = 2708,
SPR_TRUCK_STOP_SE_GROUND = 2709,
SPR_TRUCK_STOP_SW_GROUND = 2710,
SPR_TRUCK_STOP_NW_GROUND = 2711,
SPR_TRUCK_STOP_NE_BUILD_A = 2712,
SPR_TRUCK_STOP_SE_BUILD_A = 2713,
SPR_TRUCK_STOP_SW_BUILD_A = 2714,
SPR_TRUCK_STOP_NW_BUILD_A = 2715,
SPR_TRUCK_STOP_NE_BUILD_B = 2716,
SPR_TRUCK_STOP_SE_BUILD_B = 2717,
SPR_TRUCK_STOP_SW_BUILD_B = 2718,
SPR_TRUCK_STOP_NW_BUILD_B = 2719,
SPR_TRUCK_STOP_NE_BUILD_C = 2720,
SPR_TRUCK_STOP_SE_BUILD_C = 2721,
SPR_TRUCK_STOP_SW_BUILD_C = 2722,
SPR_TRUCK_STOP_NW_BUILD_C = 2723,
/* Sprites for docks
* Docks consist of two tiles, the sloped one and the flat one */
SPR_DOCK_SLOPE_NE = 2727,
SPR_DOCK_SLOPE_SE = 2728,
SPR_DOCK_SLOPE_SW = 2729,
SPR_DOCK_SLOPE_NW = 2730,
SPR_DOCK_FLAT_X = 2731, // for NE and SW
SPR_DOCK_FLAT_Y = 2732, // for NW and SE
SPR_BUOY = 4076, // XXX this sucks, because it displays wrong stuff on canals
/* Sprites for road */
SPR_ROAD_Y = 1332,
SPR_ROAD_X = 1333,
SPR_ROAD_Y_SNOW = 1351,
SPR_ROAD_X_SNOW = 1352,
SPR_EXCAVATION_X = 1414,
SPR_EXCAVATION_Y = 1415,
/* Landscape sprites */
SPR_FLAT_BARE_LAND = 3924,
SPR_FLAT_1_THIRD_GRASS_TILE = 3943,
SPR_FLAT_2_THIRD_GRASS_TILE = 3962,
SPR_FLAT_GRASS_TILE = 3981,
SPR_FLAT_ROUGH_LAND = 4000,
SPR_FLAT_ROUGH_LAND_1 = 4019,
SPR_FLAT_ROUGH_LAND_2 = 4020,
SPR_FLAT_ROUGH_LAND_3 = 4021,
SPR_FLAT_ROUGH_LAND_4 = 4022,
SPR_FLAT_ROCKY_LAND_1 = 4023,
SPR_FLAT_ROCKY_LAND_2 = 4042,
SPR_FLAT_WATER_TILE = 4061,
SPR_FLAT_1_QUART_SNOWY_TILE = 4493,
SPR_FLAT_2_QUART_SNOWY_TILE = 4512,
SPR_FLAT_3_QUART_SNOWY_TILE = 4531,
SPR_FLAT_SNOWY_TILE = 4550,
/* Hedge, Farmland-fence sprites */
SPR_HEDGE_BUSHES = 4090,
SPR_HEDGE_BUSHES_WITH_GATE = 4096,
SPR_HEDGE_FENCE = 4102,
SPR_HEDGE_BLOOMBUSH_YELLOW = 4108,
SPR_HEDGE_BLOOMBUSH_RED = 4114,
SPR_HEDGE_STONE = 4120,
/* Farmland sprites, only flat tiles listed, various stages */
SPR_FARMLAND_BARE = 4126,
SPR_FARMLAND_STATE_1 = 4145,
SPR_FARMLAND_STATE_2 = 4164,
SPR_FARMLAND_STATE_3 = 4183,
SPR_FARMLAND_STATE_4 = 4202,
SPR_FARMLAND_STATE_5 = 4221,
SPR_FARMLAND_STATE_6 = 4240,
SPR_FARMLAND_STATE_7 = 4259,
SPR_FARMLAND_HAYPACKS = 4278,
/* Water-related sprites */
SPR_SHIP_DEPOT_SE_FRONT = 4070,
SPR_SHIP_DEPOT_SW_FRONT = 4071,
SPR_SHIP_DEPOT_NW = 4072,
SPR_SHIP_DEPOT_NE = 4073,
SPR_SHIP_DEPOT_SE_REAR = 4074,
SPR_SHIP_DEPOT_SW_REAR = 4075,
/* here come sloped water sprites */
SPR_WATER_SLOPE_Y_UP = SPR_CANALS_BASE + 0, // Water flowing negative Y direction
SPR_WATER_SLOPE_X_DOWN = SPR_CANALS_BASE + 1, // positive X
SPR_WATER_SLOPE_X_UP = SPR_CANALS_BASE + 2, // negative X
SPR_WATER_SLOPE_Y_DOWN = SPR_CANALS_BASE + 3, // positive Y
/* sprites for the shiplifts
* there are 4 kinds of shiplifts, each of them is 3 tiles long.
* the four kinds are running in the X and Y direction and
* are "lowering" either in the "+" or the "-" direction.
* the three tiles are the center tile (where the slope is)
* and a bottom and a top tile */
SPR_SHIPLIFT_BASE = SPR_CANALS_BASE + 4,
SPR_SHIPLIFT_Y_UP_CENTER_REAR = SPR_CANALS_BASE + 4,
SPR_SHIPLIFT_X_DOWN_CENTER_REAR = SPR_CANALS_BASE + 5,
SPR_SHIPLIFT_X_UP_CENTER_REAR = SPR_CANALS_BASE + 6,
SPR_SHIPLIFT_Y_DOWN_CENTER_REAR = SPR_CANALS_BASE + 7,
SPR_SHIPLIFT_Y_UP_CENTER_FRONT = SPR_CANALS_BASE + 8,
SPR_SHIPLIFT_X_DOWN_CENTER_FRONT = SPR_CANALS_BASE + 9,
SPR_SHIPLIFT_X_UP_CENTER_FRONT = SPR_CANALS_BASE + 10,
SPR_SHIPLIFT_Y_DOWN_CENTER_FRONT = SPR_CANALS_BASE + 11,
SPR_SHIPLIFT_Y_UP_BOTTOM_REAR = SPR_CANALS_BASE + 12,
SPR_SHIPLIFT_X_DOWN_BOTTOM_REAR = SPR_CANALS_BASE + 13,
SPR_SHIPLIFT_X_UP_BOTTOM_REAR = SPR_CANALS_BASE + 14,
SPR_SHIPLIFT_Y_DOWN_BOTTOM_REAR = SPR_CANALS_BASE + 15,
SPR_SHIPLIFT_Y_UP_BOTTOM_FRONT = SPR_CANALS_BASE + 16,
SPR_SHIPLIFT_X_DOWN_BOTTOM_FRONT = SPR_CANALS_BASE + 17,
SPR_SHIPLIFT_X_UP_BOTTOM_FRONT = SPR_CANALS_BASE + 18,
SPR_SHIPLIFT_Y_DOWN_BOTTOM_FRONT = SPR_CANALS_BASE + 19,
SPR_SHIPLIFT_Y_UP_TOP_REAR = SPR_CANALS_BASE + 20,
SPR_SHIPLIFT_X_DOWN_TOP_REAR = SPR_CANALS_BASE + 21,
SPR_SHIPLIFT_X_UP_TOP_REAR = SPR_CANALS_BASE + 22,
SPR_SHIPLIFT_Y_DOWN_TOP_REAR = SPR_CANALS_BASE + 23,
SPR_SHIPLIFT_Y_UP_TOP_FRONT = SPR_CANALS_BASE + 24,
SPR_SHIPLIFT_X_DOWN_TOP_FRONT = SPR_CANALS_BASE + 25,
SPR_SHIPLIFT_X_UP_TOP_FRONT = SPR_CANALS_BASE + 26,
SPR_SHIPLIFT_Y_DOWN_TOP_FRONT = SPR_CANALS_BASE + 27,
SPR_CANAL_DIKES_BASE = SPR_CANALS_BASE + 52,
/* Sprites for tunnels and bridges */
SPR_TUNNEL_ENTRY_REAR_RAIL = 2365,
SPR_TUNNEL_ENTRY_REAR_MONO = 2373,
SPR_TUNNEL_ENTRY_REAR_MAGLEV = 2381,
SPR_TUNNEL_ENTRY_REAR_ROAD = 2389,
/* Level crossings */
SPR_CROSSING_OFF_X_RAIL = 1370,
SPR_CROSSING_OFF_X_MONO = 1382,
SPR_CROSSING_OFF_X_MAGLEV = 1394,
/* bridge type sprites */
SPR_PILLARS_BASE = SPR_OPENTTD_BASE + 14,
/* Wooden bridge (type 0) */
SPR_BTWDN_RAIL_Y_REAR = 2545,
SPR_BTWDN_RAIL_X_REAR = 2546,
SPR_BTWDN_ROAD_Y_REAR = 2547,
SPR_BTWDN_ROAD_X_REAR = 2548,
SPR_BTWDN_Y_FRONT = 2549,
SPR_BTWDN_X_FRONT = 2550,
SPR_BTWDN_Y_PILLAR = 2551,
SPR_BTWDN_X_PILLAR = 2552,
SPR_BTWDN_MONO_Y_REAR = 4360,
SPR_BTWDN_MONO_X_REAR = 4361,
SPR_BTWDN_MGLV_Y_REAR = 4400,
SPR_BTWDN_MGLV_X_REAR = 4401,
/* ramps */
SPR_BTWDN_ROAD_RAMP_Y_DOWN = 2529,
SPR_BTWDN_ROAD_RAMP_X_DOWN = 2530,
SPR_BTWDN_ROAD_RAMP_X_UP = 2531, // for some weird reason the order is swapped
SPR_BTWDN_ROAD_RAMP_Y_UP = 2532, // between X and Y.
SPR_BTWDN_ROAD_Y_SLOPE_UP = 2533,
SPR_BTWDN_ROAD_X_SLOPE_UP = 2534,
SPR_BTWDN_ROAD_Y_SLOPE_DOWN = 2535,
SPR_BTWDN_ROAD_X_SLOPE_DOWN = 2536,
SPR_BTWDN_RAIL_RAMP_Y_DOWN = 2537,
SPR_BTWDN_RAIL_RAMP_X_DOWN = 2538,
SPR_BTWDN_RAIL_RAMP_X_UP = 2539, // for some weird reason the order is swapped
SPR_BTWDN_RAIL_RAMP_Y_UP = 2540, // between X and Y.
SPR_BTWDN_RAIL_Y_SLOPE_UP = 2541,
SPR_BTWDN_RAIL_X_SLOPE_UP = 2542,
SPR_BTWDN_RAIL_Y_SLOPE_DOWN = 2543,
SPR_BTWDN_RAIL_X_SLOPE_DOWN = 2544,
SPR_BTWDN_MONO_RAMP_Y_DOWN = 4352,
SPR_BTWDN_MONO_RAMP_X_DOWN = 4353,
SPR_BTWDN_MONO_RAMP_X_UP = 4354, // for some weird reason the order is swapped
SPR_BTWDN_MONO_RAMP_Y_UP = 4355, // between X and Y.
SPR_BTWDN_MONO_Y_SLOPE_UP = 4356,
SPR_BTWDN_MONO_X_SLOPE_UP = 4357,
SPR_BTWDN_MONO_Y_SLOPE_DOWN = 4358,
SPR_BTWDN_MONO_X_SLOPE_DOWN = 4359,
SPR_BTWDN_MGLV_RAMP_Y_DOWN = 4392,
SPR_BTWDN_MGLV_RAMP_X_DOWN = 4393,
SPR_BTWDN_MGLV_RAMP_X_UP = 4394, // for some weird reason the order is swapped
SPR_BTWDN_MGLV_RAMP_Y_UP = 4395, // between X and Y.
SPR_BTWDN_MGLV_Y_SLOPE_UP = 4396,
SPR_BTWDN_MGLV_X_SLOPE_UP = 4397,
SPR_BTWDN_MGLV_Y_SLOPE_DOWN = 4398,
SPR_BTWDN_MGLV_X_SLOPE_DOWN = 4399,
/* Steel Girder with arches
* BTSGA == Bridge Type Steel Girder Arched
* This is bridge type number 2 */
SPR_BTSGA_RAIL_X_REAR = 2499,
SPR_BTSGA_RAIL_Y_REAR = 2500,
SPR_BTSGA_ROAD_X_REAR = 2501,
SPR_BTSGA_ROAD_Y_REAR = 2502,
SPR_BTSGA_X_FRONT = 2503,
SPR_BTSGA_Y_FRONT = 2504,
SPR_BTSGA_X_PILLAR = 2505,
SPR_BTSGA_Y_PILLAR = 2506,
SPR_BTSGA_MONO_X_REAR = 4324,
SPR_BTSGA_MONO_Y_REAR = 4325,
SPR_BTSGA_MGLV_X_REAR = 4364,
SPR_BTSGA_MGLV_Y_REAR = 4365,
/* BTSUS == Suspension bridge
* TILE_* denotes the different tiles a suspension bridge
* can have
* TILE_A and TILE_B are the "beginnings" and "ends" of the
* suspension system. they have small rectangluar endcaps
* TILE_C and TILE_D look almost identical to TILE_A and
* TILE_B, but they do not have the "endcaps". They form the
* middle part
* TILE_E is a condensed configuration of two pillars. while they
* are usually 2 pillars apart, they only have 1 pillar separation
* here
* TILE_F is an extended configuration of pillars. they are
* plugged in when pillars should be 3 tiles apart
*/
SPR_BTSUS_ROAD_Y_REAR_TILE_A = 2453,
SPR_BTSUS_ROAD_Y_REAR_TILE_B = 2454,
SPR_BTSUS_Y_FRONT_TILE_A = 2455,
SPR_BTSUS_Y_FRONT_TILE_B = 2456,
SPR_BTSUS_ROAD_Y_REAR_TILE_D = 2457,
SPR_BTSUS_ROAD_Y_REAR_TILE_C = 2458,
SPR_BTSUS_Y_FRONT_TILE_D = 2459,
SPR_BTSUS_Y_FRONT_TILE_C = 2460,
SPR_BTSUS_ROAD_X_REAR_TILE_A = 2461,
SPR_BTSUS_ROAD_X_REAR_TILE_B = 2462,
SPR_BTSUS_X_FRONT_TILE_A = 2463,
SPR_BTSUS_X_FRONT_TILE_B = 2464,
SPR_BTSUS_ROAD_X_REAR_TILE_D = 2465,
SPR_BTSUS_ROAD_X_REAR_TILE_C = 2466,
SPR_BTSUS_X_FRONT_TILE_D = 2467,
SPR_BTSUS_X_FRONT_TILE_C = 2468,
SPR_BTSUS_RAIL_Y_REAR_TILE_A = 2469,
SPR_BTSUS_RAIL_Y_REAR_TILE_B = 2470,
SPR_BTSUS_RAIL_Y_REAR_TILE_D = 2471,
SPR_BTSUS_RAIL_Y_REAR_TILE_C = 2472,
SPR_BTSUS_RAIL_X_REAR_TILE_A = 2473,
SPR_BTSUS_RAIL_X_REAR_TILE_B = 2474,
SPR_BTSUS_RAIL_X_REAR_TILE_D = 2475,
SPR_BTSUS_RAIL_X_REAR_TILE_C = 2476,
SPR_BTSUS_Y_PILLAR_TILE_A = 2477,
SPR_BTSUS_Y_PILLAR_TILE_B = 2478,
SPR_BTSUS_Y_PILLAR_TILE_D = 2479,
SPR_BTSUS_Y_PILLAR_TILE_C = 2480,
SPR_BTSUS_X_PILLAR_TILE_A = 2481,
SPR_BTSUS_X_PILLAR_TILE_B = 2482,
SPR_BTSUS_X_PILLAR_TILE_D = 2483,
SPR_BTSUS_X_PILLAR_TILE_C = 2484,
SPR_BTSUS_RAIL_Y_REAR_TILE_E = 2485,
SPR_BTSUS_RAIL_X_REAR_TILE_E = 2486,
SPR_BTSUS_ROAD_Y_REAR_TILE_E = 2487,
SPR_BTSUS_ROAD_X_REAR_TILE_E = 2488,
SPR_BTSUS_Y_FRONT_TILE_E = 2489,
SPR_BTSUS_X_FRONT_TILE_E = 2490,
SPR_BTSUS_Y_PILLAR_TILE_E = 2491,
SPR_BTSUS_X_PILLAR_TILE_E = 2492,
SPR_BTSUS_RAIL_X_REAR_TILE_F = 2493,
SPR_BTSUS_RAIL_Y_REAR_TILE_F = 2494,
SPR_BTSUS_ROAD_X_REAR_TILE_F = 2495,
SPR_BTSUS_ROAD_Y_REAR_TILE_F = 2496,
SPR_BTSUS_X_FRONT = 2497,
SPR_BTSUS_Y_FRONT = 2498,
SPR_BTSUS_MONO_Y_REAR_TILE_A = 4334,
SPR_BTSUS_MONO_Y_REAR_TILE_B = 4335,
SPR_BTSUS_MONO_Y_REAR_TILE_D = 4336,
SPR_BTSUS_MONO_Y_REAR_TILE_C = 4337,
SPR_BTSUS_MONO_X_REAR_TILE_A = 4338,
SPR_BTSUS_MONO_X_REAR_TILE_B = 4339,
SPR_BTSUS_MONO_X_REAR_TILE_D = 4340,
SPR_BTSUS_MONO_X_REAR_TILE_C = 4341,
SPR_BTSUS_MONO_Y_REAR_TILE_E = 4342,
SPR_BTSUS_MONO_X_REAR_TILE_E = 4343,
SPR_BTSUS_MONO_X_REAR_TILE_F = 4344,
SPR_BTSUS_MONO_Y_REAR_TILE_F = 4345,
SPR_BTSUS_MGLV_Y_REAR_TILE_A = 4374,
SPR_BTSUS_MGLV_Y_REAR_TILE_B = 4375,
SPR_BTSUS_MGLV_Y_REAR_TILE_D = 4376,
SPR_BTSUS_MGLV_Y_REAR_TILE_C = 4377,
SPR_BTSUS_MGLV_X_REAR_TILE_A = 4378,
SPR_BTSUS_MGLV_X_REAR_TILE_B = 4379,
SPR_BTSUS_MGLV_X_REAR_TILE_D = 4380,
SPR_BTSUS_MGLV_X_REAR_TILE_C = 4381,
SPR_BTSUS_MGLV_Y_REAR_TILE_E = 4382,
SPR_BTSUS_MGLV_X_REAR_TILE_E = 4383,
SPR_BTSUS_MGLV_X_REAR_TILE_F = 4384,
SPR_BTSUS_MGLV_Y_REAR_TILE_F = 4385,
/* cantilever bridges
* They have three different kinds of tiles:
* END(ing), MID(dle), BEG(ginning) */
SPR_BTCAN_RAIL_X_BEG = 2507,
SPR_BTCAN_RAIL_X_MID = 2508,
SPR_BTCAN_RAIL_X_END = 2509,
SPR_BTCAN_RAIL_Y_END = 2510,
SPR_BTCAN_RAIL_Y_MID = 2511,
SPR_BTCAN_RAIL_Y_BEG = 2512,
SPR_BTCAN_ROAD_X_BEG = 2513,
SPR_BTCAN_ROAD_X_MID = 2514,
SPR_BTCAN_ROAD_X_END = 2515,
SPR_BTCAN_ROAD_Y_END = 2516,
SPR_BTCAN_ROAD_Y_MID = 2517,
SPR_BTCAN_ROAD_Y_BEG = 2518,
SPR_BTCAN_X_FRONT_BEG = 2519,
SPR_BTCAN_X_FRONT_MID = 2520,
SPR_BTCAN_X_FRONT_END = 2521,
SPR_BTCAN_Y_FRONT_END = 2522,
SPR_BTCAN_Y_FRONT_MID = 2523,
SPR_BTCAN_Y_FRONT_BEG = 2524,
SPR_BTCAN_X_PILLAR_BEG = 2525,
SPR_BTCAN_X_PILLAR_MID = 2526,
SPR_BTCAN_Y_PILLAR_MID = 2527,
SPR_BTCAN_Y_PILLAR_BEG = 2528,
SPR_BTCAN_MONO_X_BEG = 4346,
SPR_BTCAN_MONO_X_MID = 4347,
SPR_BTCAN_MONO_X_END = 4348,
SPR_BTCAN_MONO_Y_END = 4349,
SPR_BTCAN_MONO_Y_MID = 4350,
SPR_BTCAN_MONO_Y_BEG = 4351,
SPR_BTCAN_MGLV_X_BEG = 4386,
SPR_BTCAN_MGLV_X_MID = 4387,
SPR_BTCAN_MGLV_X_END = 4388,
SPR_BTCAN_MGLV_Y_END = 4389,
SPR_BTCAN_MGLV_Y_MID = 4390,
SPR_BTCAN_MGLV_Y_BEG = 4391,
/* little concrete bridge */
SPR_BTCON_RAIL_X = 2493,
SPR_BTCON_RAIL_Y = 2494,
SPR_BTCON_ROAD_X = 2495,
SPR_BTCON_ROAD_Y = 2496,
SPR_BTCON_X_FRONT = 2497,
SPR_BTCON_Y_FRONT = 2498,
SPR_BTCON_X_PILLAR = 2505,
SPR_BTCON_Y_PILLAR = 2506,
SPR_BTCON_MONO_X = 4344,
SPR_BTCON_MONO_Y = 4345,
SPR_BTCON_MGLV_X = 4384,
SPR_BTCON_MGLV_Y = 4385,
/* little steel girder bridge */
SPR_BTGIR_RAIL_X = 2553,
SPR_BTGIR_RAIL_Y = 2554,
SPR_BTGIR_ROAD_X = 2555,
SPR_BTGIR_ROAD_Y = 2556,
SPR_BTGIR_X_FRONT = 2557,
SPR_BTGIR_Y_FRONT = 2558,
SPR_BTGIR_X_PILLAR = 2505,
SPR_BTGIR_Y_PILLAR = 2506,
SPR_BTGIR_MONO_X = 4362,
SPR_BTGIR_MONO_Y = 4363,
SPR_BTGIR_MGLV_X = 4402,
SPR_BTGIR_MGLV_Y = 4403,
/* tubular bridges
* tubular bridges have 3 kinds of tiles:
* a start tile (with only half a tube on the far side, marked _BEG
* a middle tile (full tunnel), marked _MID
* and an end tile (half a tube on the near side, maked _END
*/
SPR_BTTUB_X_FRONT_BEG = 2559,
SPR_BTTUB_X_FRONT_MID = 2560,
SPR_BTTUB_X_FRONT_END = 2561,
SPR_BTTUB_Y_FRONT_END = 2562,
SPR_BTTUB_Y_FRONT_MID = 2563,
SPR_BTTUB_Y_FRONT_BEG = 2564,
SPR_BTTUB_X_PILLAR_BEG = 2565,
SPR_BTTUB_X_PILLAR_MID = 2566,
SPR_BTTUB_Y_PILLAR_MID = 2567,
SPR_BTTUB_Y_PILLAR_BEG = 2568,
SPR_BTTUB_X_RAIL_REAR_BEG = 2569,
SPR_BTTUB_X_RAIL_REAR_MID = 2570,
SPR_BTTUB_X_RAIL_REAR_END = 2571,
SPR_BTTUB_Y_RAIL_REAR_BEG = 2572,
SPR_BTTUB_Y_RAIL_REAR_MID = 2573,
SPR_BTTUB_Y_RAIL_REAR_END = 2574,
SPR_BTTUB_X_ROAD_REAR_BEG = 2575,
SPR_BTTUB_X_ROAD_REAR_MID = 2576,
SPR_BTTUB_X_ROAD_REAR_END = 2577,
SPR_BTTUB_Y_ROAD_REAR_BEG = 2578,
SPR_BTTUB_Y_ROAD_REAR_MID = 2579,
SPR_BTTUB_Y_ROAD_REAR_END = 2580,
SPR_BTTUB_X_MONO_REAR_BEG = 2581,
SPR_BTTUB_X_MONO_REAR_MID = 2582,
SPR_BTTUB_X_MONO_REAR_END = 2583,
SPR_BTTUB_Y_MONO_REAR_BEG = 2584,
SPR_BTTUB_Y_MONO_REAR_MID = 2585,
SPR_BTTUB_Y_MONO_REAR_END = 2586,
SPR_BTTUB_X_MGLV_REAR_BEG = 2587,
SPR_BTTUB_X_MGLV_REAR_MID = 2588,
SPR_BTTUB_X_MGLV_REAR_END = 2589,
SPR_BTTUB_Y_MGLV_REAR_BEG = 2590,
SPR_BTTUB_Y_MGLV_REAR_MID = 2591,
SPR_BTTUB_Y_MGLV_REAR_END = 2592,
/* ramps (for all bridges except wood and tubular?)*/
SPR_BTGEN_RAIL_X_SLOPE_DOWN = 2437,
SPR_BTGEN_RAIL_X_SLOPE_UP = 2438,
SPR_BTGEN_RAIL_Y_SLOPE_DOWN = 2439,
SPR_BTGEN_RAIL_Y_SLOPE_UP = 2440,
SPR_BTGEN_RAIL_RAMP_X_UP = 2441,
SPR_BTGEN_RAIL_RAMP_X_DOWN = 2442,
SPR_BTGEN_RAIL_RAMP_Y_UP = 2443,
SPR_BTGEN_RAIL_RAMP_Y_DOWN = 2444,
SPR_BTGEN_ROAD_X_SLOPE_DOWN = 2445,
SPR_BTGEN_ROAD_X_SLOPE_UP = 2446,
SPR_BTGEN_ROAD_Y_SLOPE_DOWN = 2447,
SPR_BTGEN_ROAD_Y_SLOPE_UP = 2448,
SPR_BTGEN_ROAD_RAMP_X_UP = 2449,
SPR_BTGEN_ROAD_RAMP_X_DOWN = 2450,
SPR_BTGEN_ROAD_RAMP_Y_UP = 2451,
SPR_BTGEN_ROAD_RAMP_Y_DOWN = 2452,
SPR_BTGEN_MONO_X_SLOPE_DOWN = 4326,
SPR_BTGEN_MONO_X_SLOPE_UP = 4327,
SPR_BTGEN_MONO_Y_SLOPE_DOWN = 4328,
SPR_BTGEN_MONO_Y_SLOPE_UP = 4329,
SPR_BTGEN_MONO_RAMP_X_UP = 4330,
SPR_BTGEN_MONO_RAMP_X_DOWN = 4331,
SPR_BTGEN_MONO_RAMP_Y_UP = 4332,
SPR_BTGEN_MONO_RAMP_Y_DOWN = 4333,
SPR_BTGEN_MGLV_X_SLOPE_DOWN = 4366,
SPR_BTGEN_MGLV_X_SLOPE_UP = 4367,
SPR_BTGEN_MGLV_Y_SLOPE_DOWN = 4368,
SPR_BTGEN_MGLV_Y_SLOPE_UP = 4369,
SPR_BTGEN_MGLV_RAMP_X_UP = 4370,
SPR_BTGEN_MGLV_RAMP_X_DOWN = 4371,
SPR_BTGEN_MGLV_RAMP_Y_UP = 4372,
SPR_BTGEN_MGLV_RAMP_Y_DOWN = 4373,
/* Vehicle view sprites */
SPR_CENTRE_VIEW_VEHICLE = 683,
SPR_SEND_TRAIN_TODEPOT = 685,
SPR_SEND_ROADVEH_TODEPOT = 686,
SPR_SEND_AIRCRAFT_TODEPOT = 687,
SPR_SEND_SHIP_TODEPOT = 688,
SPR_IGNORE_SIGNALS = 689,
SPR_SHOW_ORDERS = 690,
SPR_SHOW_VEHICLE_DETAILS = 691,
SPR_REFIT_VEHICLE = 692,
SPR_FORCE_VEHICLE_TURN = 715,
/* Vehicle sprite-flags (red/green) */
SPR_FLAG_VEH_STOPPED = 3090,
SPR_FLAG_VEH_RUNNING = 3091,
SPR_VEH_BUS_SW_VIEW = 3097,
SPR_VEH_BUS_SIDE_VIEW = 3098,
/* Rotor sprite numbers */
SPR_ROTOR_STOPPED = 3901,
SPR_ROTOR_MOVING_1 = 3902,
SPR_ROTOR_MOVING_3 = 3904,
/* Town/house sprites */
SPR_LIFT = 1443,
/* used in town_land.h
* CNST1..3 = Those are the different stages of construction
* The last 2 hexas correspond to the type of building it represent, if any */
SPR_CNST1_TALLOFFICE_00 = 1421,
SPR_CNST2_TALLOFFICE_00 = 1422,
SPR_CNST3_TALLOFFICE_00 = 1423,
SPR_GROUND_TALLOFFICE_00 = 1424,
SPR_BUILD_TALLOFFICE_00 = 1425, // temperate
SPR_CNST1_OFFICE_01 = 1426,
SPR_CNST2_OFFICE_01 = 1427,
SPR_BUILD_OFFICE_01 = 1428, // temperate
SPR_GROUND_OFFICE_01 = 1429,
SPR_CNST1_SMLBLCKFLATS_02 = 1430, // Small Block of Flats
SPR_CNST2_SMLBLCKFLATS_02 = 1431,
SPR_BUILD_SMLBLCKFLATS_02 = 1432, // temperate
SPR_GROUND_SMLBLCKFLATS_02 = 1433,
SPR_CNST1_TEMPCHURCH = 1434,
SPR_CNST2_TEMPCHURCH = 1435,
SPR_BUILD_TEMPCHURCH = 1436,
SPR_GROUND_TEMPCHURCH = 1437,
SPR_CNST1_LARGEOFFICE_04 = 1440,
SPR_CNST2_LARGEOFFICE_04 = 1441,
SPR_BUILD_LARGEOFFICE_04 = 1442, // temperate, sub-arctic, subtropical
SPR_BUILD_LARGEOFFICE_04_SNOW = 4569, // same, with snow
/* These are in fact two houses for the same houseID. so V1 and V2 */
SPR_CNST1_TOWNHOUSE_06_V1 = 1444,
SPR_CNST2_TOWNHOUSE_06_V1 = 1445,
SPR_BUILD_TOWNHOUSE_06_V1 = 1446, // 1st variation
SPR_GRND_TOWNHOUSE_06_V1 = 1447,
SPR_CNST1_TOWNHOUSE_06_V2 = 1501, // used as ground, but is stage1
SPR_CNST1_TOWNHOUSE_06_V2_P = 1502, // pipes extensions for previous
SPR_CNST2_TOWNHOUSE_06_V2_G = 1503, // Ground of cnst stage 2
SPR_CNST2_TOWNHOUSE_06_V2 = 1504, // real cnst stage 2
SPR_GRND_TOWNHOUSE_06_V2 = 1505,
SPR_BUILD_TOWNHOUSE_06_V2 = 1506, // 2nd variation
SPR_CNST1_HOTEL_07_NW = 1448,
SPR_CNST2_HOTEL_07_NW = 1449,
SPR_BUILD_HOTEL_07_NW = 1450,
SPR_CNST1_HOTEL_07_SE = 1451,
SPR_CNST2_HOTEL_07_SE = 1452,
SPR_BUILD_HOTEL_07_SE = 1453,
SPR_STATUE_HORSERIDER_09 = 1454,
SPR_FOUNTAIN_0A = 1455,
SPR_PARKSTATUE_0B = 1456,
SPR_PARKALLEY_0C = 1457,
SPR_CNST1_OFFICE_0D = 1458,
SPR_CNST2_OFFICE_0D = 1459,
SPR_BUILD_OFFICE_0D = 1460,
SPR_CNST1_SHOPOFFICE_0E = 1461,
SPR_CNST2_SHOPOFFICE_0E = 1462,
SPR_BUILD_SHOPOFFICE_0E = 1463,
SPR_CNST1_SHOPOFFICE_0F = 1464,
SPR_CNST2_SHOPOFFICE_0F = 1465,
SPR_BUILD_SHOPOFFICE_0F = 1466,
/* Easter egg/disaster sprites */
SPR_BLIMP = 3905, // Zeppelin
SPR_BLIMP_CRASHING = 3906,
SPR_BLIMP_CRASHED = 3907,
SPR_UFO_SMALL_SCOUT = 3908, // XCOM - UFO Defense
SPR_UFO_SMALL_SCOUT_DARKER = 3909,
SPR_SUB_SMALL_NE = 3910, // Silent Service
SPR_SUB_SMALL_SE = 3911,
SPR_SUB_SMALL_SW = 3912,
SPR_SUB_SMALL_NW = 3913,
SPR_SUB_LARGE_NE = 3914,
SPR_SUB_LARGE_SE = 3915,
SPR_SUB_LARGE_SW = 3916,
SPR_SUB_LARGE_NW = 3917,
SPR_F_15 = 3918, // F-15 Strike Eagle
SPR_F_15_FIRING = 3919,
SPR_UFO_HARVESTER = 3920, // XCOM - UFO Defense
SPR_XCOM_SKYRANGER = 3921,
SPR_AH_64A = 3922, // Gunship
SPR_AH_64A_FIRING = 3923,
/* main_gui.c */
SPR_IMG_TERRAFORM_UP = 694,
SPR_IMG_TERRAFORM_DOWN = 695,
SPR_IMG_DYNAMITE = 703,
SPR_IMG_ROCKS = 4084,
SPR_IMG_LIGHTHOUSE_DESERT = 4085, // XXX - is Desert image on the desert-climate
SPR_IMG_TRANSMITTER = 4086,
SPR_IMG_LEVEL_LAND = SPR_OPENTTD_BASE + 91,
SPR_IMG_BUILD_CANAL = SPR_OPENTTD_BASE + 88,
SPR_IMG_BUILD_RIVER = SPR_OPENTTD_BASE + 136,
SPR_IMG_BUILD_LOCK = SPR_CANALS_BASE + 64,
SPR_IMG_PAUSE = 726,
SPR_IMG_FASTFORWARD = SPR_OPENTTD_BASE + 90,
SPR_IMG_SETTINGS = 751,
SPR_IMG_SAVE = 724,
SPR_IMG_SMALLMAP = 708,
SPR_IMG_TOWN = 4077,
SPR_IMG_SUBSIDIES = 679,
SPR_IMG_COMPANY_LIST = 1299,
SPR_IMG_COMPANY_FINANCE = 737,
SPR_IMG_COMPANY_GENERAL = 743,
SPR_IMG_GRAPHS = 745,
SPR_IMG_COMPANY_LEAGUE = 684,
SPR_IMG_SHOW_COUNTOURS = 738,
SPR_IMG_SHOW_VEHICLES = 739,
SPR_IMG_SHOW_ROUTES = 740,
SPR_IMG_INDUSTRY = 741,
SPR_IMG_PLANTTREES = 742,
SPR_IMG_TRAINLIST = 731,
SPR_IMG_TRUCKLIST = 732,
SPR_IMG_SHIPLIST = 733,
SPR_IMG_AIRPLANESLIST = 734,
SPR_IMG_ZOOMIN = 735,
SPR_IMG_ZOOMOUT = 736,
SPR_IMG_BUILDRAIL = 727,
SPR_IMG_BUILDROAD = 728,
SPR_IMG_BUILDWATER = 729,
SPR_IMG_BUILDAIR = 730,
SPR_IMG_LANDSCAPING = 4083,
SPR_IMG_MUSIC = 713,
SPR_IMG_MESSAGES = 680,
SPR_IMG_QUERY = 723,
SPR_IMG_SIGN = 4082,
SPR_IMG_BUY_LAND = 4791,
/* OPEN TRANSPORT TYCOON in gamescreen */
SPR_OTTD_O = 4842,
SPR_OTTD_P = 4841,
SPR_OTTD_E = SPR_OPENTTD_BASE + 12,
SPR_OTTD_D = SPR_OPENTTD_BASE + 13,
SPR_OTTD_N = 4839,
SPR_OTTD_T = 4836,
SPR_OTTD_R = 4837,
SPR_OTTD_A = 4838,
SPR_OTTD_S = 4840,
SPR_OTTD_Y = 4843,
SPR_OTTD_C = 4844,
SPR_HIGHSCORE_CHART_BEGIN = 4804,
SPR_TYCOON_IMG1_BEGIN = 4814,
SPR_TYCOON_IMG2_BEGIN = 4824,
/* Industry sprites */
SPR_IT_SUGAR_MINE_SIEVE = 4775,
SPR_IT_SUGAR_MINE_CLOUDS = 4784,
SPR_IT_SUGAR_MINE_PILE = 4780,
SPR_IT_TOFFEE_QUARRY_TOFFEE = 4766,
SPR_IT_TOFFEE_QUARRY_SHOVEL = 4767,
SPR_IT_BUBBLE_GENERATOR_SPRING = 4746,
SPR_IT_BUBBLE_GENERATOR_BUBBLE = 4747,
SPR_IT_TOY_FACTORY_STAMP_HOLDER = 4717,
SPR_IT_TOY_FACTORY_STAMP = 4718,
SPR_IT_TOY_FACTORY_CLAY = 4719,
SPR_IT_TOY_FACTORY_ROBOT = 4720,
SPR_IT_POWER_PLANT_TRANSFORMERS = 2054,
/* small icons of cargo available in station waiting*/
SPR_CARGO_PASSENGER = 4297,
SPR_CARGO_COAL = 4298,
SPR_CARGO_MAIL = 4299,
SPR_CARGO_OIL = 4300,
SPR_CARGO_LIVESTOCK = 4301,
SPR_CARGO_GOODS = 4302,
SPR_CARGO_GRAIN = 4303,
SPR_CARGO_WOOD = 4304,
SPR_CARGO_IRON_ORE = 4305,
SPR_CARGO_STEEL = 4306,
SPR_CARGO_VALUES_GOLD = 4307, // shared between temperate and arctic
SPR_CARGO_FRUIT = 4308,
SPR_CARGO_COPPER_ORE = 4309,
SPR_CARGO_WATERCOLA = 4310, // shared between desert and toyland
SPR_CARGO_DIAMONDS = 4311,
SPR_CARGO_FOOD = 4312,
SPR_CARGO_PAPER = 4313,
SPR_CARGO_RUBBER = 4314,
SPR_CARGO_CANDY = 4315,
SPR_CARGO_SUGAR = 4316,
SPR_CARGO_TOYS = 4317,
SPR_CARGO_COTTONCANDY = 4318,
SPR_CARGO_FIZZYDRINK = 4319,
SPR_CARGO_TOFFEE = 4320,
SPR_CARGO_BUBBLES = 4321,
SPR_CARGO_PLASTIC = 4322,
SPR_CARGO_BATTERIES = 4323,
/* Effect vehicles */
SPR_BULLDOZER_NE = 1416,
SPR_BULLDOZER_SE = 1417,
SPR_BULLDOZER_SW = 1418,
SPR_BULLDOZER_NW = 1419,
SPR_SMOKE_0 = 2040,
SPR_SMOKE_1 = 2041,
SPR_SMOKE_2 = 2042,
SPR_SMOKE_3 = 2043,
SPR_SMOKE_4 = 2044,
SPR_DIESEL_SMOKE_0 = 3073,
SPR_DIESEL_SMOKE_1 = 3074,
SPR_DIESEL_SMOKE_2 = 3075,
SPR_DIESEL_SMOKE_3 = 3076,
SPR_DIESEL_SMOKE_4 = 3077,
SPR_DIESEL_SMOKE_5 = 3078,
SPR_STEAM_SMOKE_0 = 3079,
SPR_STEAM_SMOKE_1 = 3080,
SPR_STEAM_SMOKE_2 = 3081,
SPR_STEAM_SMOKE_3 = 3082,
SPR_STEAM_SMOKE_4 = 3083,
SPR_ELECTRIC_SPARK_0 = 3084,
SPR_ELECTRIC_SPARK_1 = 3085,
SPR_ELECTRIC_SPARK_2 = 3086,
SPR_ELECTRIC_SPARK_3 = 3087,
SPR_ELECTRIC_SPARK_4 = 3088,
SPR_ELECTRIC_SPARK_5 = 3089,
SPR_CHIMNEY_SMOKE_0 = 3701,
SPR_CHIMNEY_SMOKE_1 = 3702,
SPR_CHIMNEY_SMOKE_2 = 3703,
SPR_CHIMNEY_SMOKE_3 = 3704,
SPR_CHIMNEY_SMOKE_4 = 3705,
SPR_CHIMNEY_SMOKE_5 = 3706,
SPR_CHIMNEY_SMOKE_6 = 3707,
SPR_CHIMNEY_SMOKE_7 = 3708,
SPR_EXPLOSION_LARGE_0 = 3709,
SPR_EXPLOSION_LARGE_1 = 3710,
SPR_EXPLOSION_LARGE_2 = 3711,
SPR_EXPLOSION_LARGE_3 = 3712,
SPR_EXPLOSION_LARGE_4 = 3713,
SPR_EXPLOSION_LARGE_5 = 3714,
SPR_EXPLOSION_LARGE_6 = 3715,
SPR_EXPLOSION_LARGE_7 = 3716,
SPR_EXPLOSION_LARGE_8 = 3717,
SPR_EXPLOSION_LARGE_9 = 3718,
SPR_EXPLOSION_LARGE_A = 3719,
SPR_EXPLOSION_LARGE_B = 3720,
SPR_EXPLOSION_LARGE_C = 3721,
SPR_EXPLOSION_LARGE_D = 3722,
SPR_EXPLOSION_LARGE_E = 3723,
SPR_EXPLOSION_LARGE_F = 3724,
SPR_EXPLOSION_SMALL_0 = 3725,
SPR_EXPLOSION_SMALL_1 = 3726,
SPR_EXPLOSION_SMALL_2 = 3727,
SPR_EXPLOSION_SMALL_3 = 3728,
SPR_EXPLOSION_SMALL_4 = 3729,
SPR_EXPLOSION_SMALL_5 = 3730,
SPR_EXPLOSION_SMALL_6 = 3731,
SPR_EXPLOSION_SMALL_7 = 3732,
SPR_EXPLOSION_SMALL_8 = 3733,
SPR_EXPLOSION_SMALL_9 = 3734,
SPR_EXPLOSION_SMALL_A = 3735,
SPR_EXPLOSION_SMALL_B = 3736,
SPR_BREAKDOWN_SMOKE_0 = 3737,
SPR_BREAKDOWN_SMOKE_1 = 3738,
SPR_BREAKDOWN_SMOKE_2 = 3739,
SPR_BREAKDOWN_SMOKE_3 = 3740,
SPR_BUBBLE_0 = 4748,
SPR_BUBBLE_1 = 4749,
SPR_BUBBLE_2 = 4750,
SPR_BUBBLE_GENERATE_0 = 4751,
SPR_BUBBLE_GENERATE_1 = 4752,
SPR_BUBBLE_GENERATE_2 = 4753,
SPR_BUBBLE_GENERATE_3 = 4754,
SPR_BUBBLE_BURST_0 = 4755,
SPR_BUBBLE_BURST_1 = 4756,
SPR_BUBBLE_BURST_2 = 4757,
SPR_BUBBLE_ABSORB_0 = 4758,
SPR_BUBBLE_ABSORB_1 = 4759,
SPR_BUBBLE_ABSORB_2 = 4760,
SPR_BUBBLE_ABSORB_3 = 4761,
SPR_BUBBLE_ABSORB_4 = 4762,
/* Electrified rail build menu */
SPR_BUILD_NS_ELRAIL = SPR_ELRAIL_BASE + 36,
SPR_BUILD_X_ELRAIL = SPR_ELRAIL_BASE + 37,
SPR_BUILD_EW_ELRAIL = SPR_ELRAIL_BASE + 38,
SPR_BUILD_Y_ELRAIL = SPR_ELRAIL_BASE + 39,
SPR_BUILD_TUNNEL_ELRAIL = SPR_ELRAIL_BASE + 44,
/* airport_gui.c */
SPR_IMG_AIRPORT = 744,
/* dock_gui.c */
SPR_IMG_SHIP_DEPOT = 748,
SPR_IMG_SHIP_DOCK = 746,
SPR_IMG_BOUY = 693,
SPR_IMG_AQUEDUCT = SPR_OPENTTD_BASE + 145,
/* music_gui.c */
SPR_IMG_SKIP_TO_PREV = 709,
SPR_IMG_SKIP_TO_NEXT = 710,
SPR_IMG_STOP_MUSIC = 711,
SPR_IMG_PLAY_MUSIC = 712,
/* road_gui.c */
SPR_IMG_ROAD_Y_DIR = 1309,
SPR_IMG_ROAD_X_DIR = 1310,
SPR_IMG_AUTOROAD = SPR_OPENTTD_BASE + 82,
SPR_IMG_ROAD_DEPOT = 1295,
SPR_IMG_BUS_STATION = 749,
SPR_IMG_TRUCK_BAY = 750,
SPR_IMG_BRIDGE = 2594,
SPR_IMG_ROAD_TUNNEL = 2429,
SPR_IMG_REMOVE = 714,
SPR_IMG_ROAD_ONE_WAY = SPR_OPENTTD_BASE + 134,
SPR_IMG_TRAMWAY_Y_DIR = SPR_TRAMWAY_BASE + 0,
SPR_IMG_TRAMWAY_X_DIR = SPR_TRAMWAY_BASE + 1,
SPR_IMG_AUTOTRAM = SPR_OPENTTD_BASE + 84,
/* rail_gui.c */
SPR_IMG_RAIL_NS = 1251,
SPR_IMG_RAIL_NE = 1252,
SPR_IMG_RAIL_EW = 1253,
SPR_IMG_RAIL_NW = 1254,
SPR_IMG_AUTORAIL = SPR_OPENTTD_BASE + 53,
SPR_IMG_AUTOELRAIL = SPR_OPENTTD_BASE + 57,
SPR_IMG_AUTOMONO = SPR_OPENTTD_BASE + 63,
SPR_IMG_AUTOMAGLEV = SPR_OPENTTD_BASE + 69,
SPR_IMG_WAYPOINT = SPR_OPENTTD_BASE + 76,
SPR_IMG_DEPOT_RAIL = 1294,
SPR_IMG_DEPOT_ELRAIL = SPR_OPENTTD_BASE + 61,
SPR_IMG_DEPOT_MONO = SPR_OPENTTD_BASE + 67,
SPR_IMG_DEPOT_MAGLEV = SPR_OPENTTD_BASE + 73,
SPR_IMG_RAIL_STATION = 1298,
SPR_IMG_RAIL_SIGNALS = 1291,
SPR_IMG_SIGNAL_ELECTRIC_NORM = 1287,
SPR_IMG_SIGNAL_ELECTRIC_ENTRY = SPR_SIGNALS_BASE + 12,
SPR_IMG_SIGNAL_ELECTRIC_EXIT = SPR_SIGNALS_BASE + 28,
SPR_IMG_SIGNAL_ELECTRIC_COMBO = SPR_SIGNALS_BASE + 44,
SPR_IMG_SIGNAL_ELECTRIC_PBS = SPR_SIGNALS_BASE + 124,
SPR_IMG_SIGNAL_ELECTRIC_PBS_OWAY = SPR_SIGNALS_BASE + 140,
SPR_IMG_SIGNAL_SEMAPHORE_NORM = SPR_SIGNALS_BASE + 60,
SPR_IMG_SIGNAL_SEMAPHORE_ENTRY = SPR_SIGNALS_BASE + 76,
SPR_IMG_SIGNAL_SEMAPHORE_EXIT = SPR_SIGNALS_BASE + 92,
SPR_IMG_SIGNAL_SEMAPHORE_COMBO = SPR_SIGNALS_BASE + 108,
SPR_IMG_SIGNAL_SEMAPHORE_PBS = SPR_SIGNALS_BASE + 188,
SPR_IMG_SIGNAL_SEMAPHORE_PBS_OWAY= SPR_SIGNALS_BASE + 204,
SPR_IMG_SIGNAL_CONVERT = SPR_OPENTTD_BASE + 135,
SPR_IMG_TUNNEL_RAIL = 2430,
SPR_IMG_TUNNEL_MONO = 2431,
SPR_IMG_TUNNEL_MAGLEV = 2432,
SPR_IMG_CONVERT_RAIL = SPR_OPENTTD_BASE + 55,
SPR_IMG_CONVERT_ELRAIL = SPR_OPENTTD_BASE + 59,
SPR_IMG_CONVERT_MONO = SPR_OPENTTD_BASE + 65,
SPR_IMG_CONVERT_MAGLEV = SPR_OPENTTD_BASE + 71,
/* intro_gui.c, genworld_gui.c */
SPR_SELECT_TEMPERATE = 4882,
SPR_SELECT_TEMPERATE_PUSHED = 4883,
SPR_SELECT_SUB_ARCTIC = 4884,
SPR_SELECT_SUB_ARCTIC_PUSHED = 4885,
SPR_SELECT_SUB_TROPICAL = 4886,
SPR_SELECT_SUB_TROPICAL_PUSHED = 4887,
SPR_SELECT_TOYLAND = 4888,
SPR_SELECT_TOYLAND_PUSHED = 4889,
};
/** Cursor sprite numbers */
enum CursorSprite {
/* Terraform
* Cursors */
SPR_CURSOR_MOUSE = 0,
SPR_CURSOR_ZZZ = 1,
SPR_CURSOR_BOUY = 702,
SPR_CURSOR_QUERY = 719,
SPR_CURSOR_HQ = 720,
SPR_CURSOR_SHIP_DEPOT = 721,
SPR_CURSOR_SIGN = 722,
SPR_CURSOR_TREE = 2010,
SPR_CURSOR_BUY_LAND = 4792,
SPR_CURSOR_LEVEL_LAND = SPR_OPENTTD_BASE + 92,
SPR_CURSOR_TOWN = 4080,
SPR_CURSOR_INDUSTRY = 4081,
SPR_CURSOR_ROCKY_AREA = 4087,
SPR_CURSOR_LIGHTHOUSE = 4088,
SPR_CURSOR_TRANSMITTER = 4089,
/* airport cursors */
SPR_CURSOR_AIRPORT = 2724,
/* dock cursors */
SPR_CURSOR_DOCK = 3668,
SPR_CURSOR_CANAL = SPR_OPENTTD_BASE + 89,
SPR_CURSOR_LOCK = SPR_OPENTTD_BASE + 87,
SPR_CURSOR_RIVER = SPR_OPENTTD_BASE + 137,
SPR_CURSOR_AQUEDUCT = SPR_OPENTTD_BASE + 146,
/* shared road & rail cursors */
SPR_CURSOR_BRIDGE = 2593,
/* rail cursors */
SPR_CURSOR_NS_TRACK = 1263,
SPR_CURSOR_SWNE_TRACK = 1264,
SPR_CURSOR_EW_TRACK = 1265,
SPR_CURSOR_NWSE_TRACK = 1266,
SPR_CURSOR_NS_MONO = 1267,
SPR_CURSOR_SWNE_MONO = 1268,
SPR_CURSOR_EW_MONO = 1269,
SPR_CURSOR_NWSE_MONO = 1270,
SPR_CURSOR_NS_MAGLEV = 1271,
SPR_CURSOR_SWNE_MAGLEV = 1272,
SPR_CURSOR_EW_MAGLEV = 1273,
SPR_CURSOR_NWSE_MAGLEV = 1274,
SPR_CURSOR_NS_ELRAIL = SPR_ELRAIL_BASE + 40,
SPR_CURSOR_SWNE_ELRAIL = SPR_ELRAIL_BASE + 41,
SPR_CURSOR_EW_ELRAIL = SPR_ELRAIL_BASE + 42,
SPR_CURSOR_NWSE_ELRAIL = SPR_ELRAIL_BASE + 43,
SPR_CURSOR_RAIL_STATION = 1300,
SPR_CURSOR_TUNNEL_RAIL = 2434,
SPR_CURSOR_TUNNEL_ELRAIL = SPR_ELRAIL_BASE + 45,
SPR_CURSOR_TUNNEL_MONO = 2435,
SPR_CURSOR_TUNNEL_MAGLEV = 2436,
SPR_CURSOR_AUTORAIL = SPR_OPENTTD_BASE + 54,
SPR_CURSOR_AUTOELRAIL = SPR_OPENTTD_BASE + 58,
SPR_CURSOR_AUTOMONO = SPR_OPENTTD_BASE + 64,
SPR_CURSOR_AUTOMAGLEV = SPR_OPENTTD_BASE + 70,
SPR_CURSOR_WAYPOINT = SPR_OPENTTD_BASE + 77,
SPR_CURSOR_RAIL_DEPOT = 1296,
SPR_CURSOR_ELRAIL_DEPOT = SPR_OPENTTD_BASE + 62,
SPR_CURSOR_MONO_DEPOT = SPR_OPENTTD_BASE + 68,
SPR_CURSOR_MAGLEV_DEPOT = SPR_OPENTTD_BASE + 74,
SPR_CURSOR_CONVERT_RAIL = SPR_OPENTTD_BASE + 56,
SPR_CURSOR_CONVERT_ELRAIL = SPR_OPENTTD_BASE + 60,
SPR_CURSOR_CONVERT_MONO = SPR_OPENTTD_BASE + 66,
SPR_CURSOR_CONVERT_MAGLEV = SPR_OPENTTD_BASE + 72,
/* road cursors */
SPR_CURSOR_ROAD_NESW = 1311,
SPR_CURSOR_ROAD_NWSE = 1312,
SPR_CURSOR_AUTOROAD = SPR_OPENTTD_BASE + 83,
SPR_CURSOR_TRAMWAY_NESW = SPR_TRAMWAY_BASE + 2,
SPR_CURSOR_TRAMWAY_NWSE = SPR_TRAMWAY_BASE + 3,
SPR_CURSOR_AUTOTRAM = SPR_OPENTTD_BASE + 85,
SPR_CURSOR_ROAD_DEPOT = 1297,
SPR_CURSOR_BUS_STATION = 2725,
SPR_CURSOR_TRUCK_STATION = 2726,
SPR_CURSOR_ROAD_TUNNEL = 2433,
SPR_CURSOR_CLONE_TRAIN = SPR_OPENTTD_BASE + 110,
SPR_CURSOR_CLONE_ROADVEH = SPR_OPENTTD_BASE + 111,
SPR_CURSOR_CLONE_SHIP = SPR_OPENTTD_BASE + 112,
SPR_CURSOR_CLONE_AIRPLANE = SPR_OPENTTD_BASE + 113,
};
/** Animation macro in table/animcursors.h (_animcursors[]) */
enum AnimCursors {
ANIMCURSOR_DEMOLISH = -1, ///< 704 - 707 - demolish dynamite
ANIMCURSOR_LOWERLAND = -2, ///< 699 - 701 - lower land tool
ANIMCURSOR_RAISELAND = -3, ///< 696 - 698 - raise land tool
ANIMCURSOR_PICKSTATION = -4, ///< 716 - 718 - goto-order icon
ANIMCURSOR_BUILDSIGNALS = -5, ///< 1292 - 1293 - build signal
};
/**
* Bitmask setup. For the graphics system, 32 bits are used to define
* the sprite to be displayed. This variable contains various information:<p>
* <ul><li> SPRITE_WIDTH is the number of bits used for the actual sprite to be displayed.
* This always starts at bit 0.</li>
* <li> TRANSPARENT_BIT is the bit number which toggles sprite transparency</li>
* <li> RECOLOUR_BIT toggles the recolouring system</li>
* <li> PALETTE_SPRITE_WIDTH and PALETTE_SPRITE_START determine the position and number of
* bits used for the recolouring process. For transparency, it must be 0x322.</li></ul>
*/
enum SpriteSetup {
TRANSPARENT_BIT = 31, ///< toggles transparency in the sprite
RECOLOUR_BIT = 30, ///< toggles recolouring in the sprite
OFFSET_BIT = 29,
OPAQUE_BIT = 28,
PALETTE_WIDTH = 24, ///< number of bits of the sprite containing the recolour palette
SPRITE_WIDTH = 24, ///< number of bits for the sprite number
};
/**
* these masks change the colours of the palette for a sprite.
* Apart from this bit, a sprite number is needed to define
* the palette used for recolouring. This palette is stored
* in the bits marked by PALETTE_SPRITE_MASK.
* @note Do not modify this enum. Alter SpriteSetup instead
* @see SpriteSetup
*/
enum Modifiers {
SPRITE_MODIFIER_USE_OFFSET = OFFSET_BIT,
/** Set when a sprite must not ever be displayed transparently */
SPRITE_MODIFIER_OPAQUE = OPAQUE_BIT,
/** when a sprite is to be displayed transparently, this bit needs to be set. */
PALETTE_MODIFIER_TRANSPARENT = TRANSPARENT_BIT,
/** this bit is set when a recolouring process is in action */
PALETTE_MODIFIER_COLOUR = RECOLOUR_BIT,
};
/** Masks needed for sprite operations.
* @note Do not modify this enum. Alter SpriteSetup instead
* @see SpriteSetup */
enum SpriteMasks {
/** Maximum number of sprites that can be loaded at a given time. */
MAX_SPRITES = 1 << SPRITE_WIDTH,
/** The mask to for the main sprite */
SPRITE_MASK = MAX_SPRITES - 1,
MAX_PALETTES = 1 << PALETTE_WIDTH,
/** The mask for the auxiliary sprite (the one that takes care of recolouring) */
PALETTE_MASK = MAX_PALETTES - 1,
};
assert_compile( (1 << TRANSPARENT_BIT & SPRITE_MASK) == 0 );
assert_compile( (1 << RECOLOUR_BIT & SPRITE_MASK) == 0 );
assert_compile( !(TRANSPARENT_BIT == RECOLOUR_BIT) );
assert_compile( (1 << TRANSPARENT_BIT & PALETTE_MASK) == 0);
assert_compile( (1 << RECOLOUR_BIT & PALETTE_MASK) == 0 );
enum Recolouring {
PALETTE_RECOLOUR_START = 0x307,
};
static const SpriteID PALETTE_CRASH = 0x324;
static const SpriteID PAL_NONE = 0;
/* note: these numbers are already the modified once the renderer needs.
* the actual sprite number is the upper 16 bits of the number */
/** Here a puslating red tile is drawn if you try to build a wrong tunnel or raise/lower land where it is not possible */
static const SpriteID PALETTE_TILE_RED_PULSATING = 0x303;
/** makes a square red. is used when removing rails or other stuff */
static const SpriteID PALETTE_SEL_TILE_RED = 0x304;
/** This draws a blueish square (catchment areas for example) */
static const SpriteID PALETTE_SEL_TILE_BLUE = 0x305;
/* 0x306 is a real sprite (the little dot you get when you try to raise/lower a corner of the map
* here the colour switches begin
* use this if you add stuff to the value, so that the resulting colour
* is not a fixed value.
* NOTE THAT THE SWITCH 0x8000 is NOT present in _TO_COLOURS yet! */
enum PaletteSprites {
PALETTE_TO_DARK_BLUE = 0x307,
PALETTE_TO_PALE_GREEN = 0x308,
PALETTE_TO_PINK = 0x309,
PALETTE_TO_YELLOW = 0x30A,
PALETTE_TO_RED = 0x30B,
PALETTE_TO_LIGHT_BLUE = 0x30C,
PALETTE_TO_GREEN = 0x30D,
PALETTE_TO_DARK_GREEN = 0x30E,
PALETTE_TO_BLUE = 0x30F,
PALETTE_TO_CREAM = 0x310,
/* maybe don't use as company colour because it doesn't display in the graphs? */
PALETTE_TO_MAUVE = 0x311,
PALETTE_TO_PURPLE = 0x312,
PALETTE_TO_ORANGE = 0x313,
PALETTE_TO_BROWN = 0x314,
PALETTE_TO_GREY = 0x315,
PALETTE_TO_WHITE = 0x316,
/* sets colour to bare land stuff, for rail and road (and crossings) */
PALETTE_TO_BARE_LAND = 0x317,
/* XXX is 318-31A really not used? */
PALETTE_TO_STRUCT_BLUE = 0x31B,
/* structure colour to something brownish (for the cantilever bridges for example) */
PALETTE_TO_STRUCT_BROWN = 0x31C,
PALETTE_TO_STRUCT_WHITE = 0x31D,
/* sets bridge or structure to red, little concrete one and cantilever use this one for example */
PALETTE_TO_STRUCT_RED = 0x31E,
PALETTE_TO_STRUCT_GREEN = 0x31F,
PALETTE_TO_STRUCT_CONCRETE = 0x320, // Sets the suspension bridge to concrete, also other strucutures use it
PALETTE_TO_STRUCT_YELLOW = 0x321, // Sets the bridge colour to yellow (suspension and tubular)
PALETTE_TO_TRANSPARENT = 0x322, // This sets the sprite to transparent
/* This is used for changing the tubular bridges to the silicon display, or some grayish colour */
PALETTE_TO_STRUCT_GREY = 0x323,
/* XXX - const - PALETTE_CRASH = 0x324, // this changes stuff to the "crash colour"
* XXX another place where structures are coloured.
* I'm not sure which colours these are */
PALETTE_59E = 0x59E,
PALETTE_59F = 0x59F,
};
#endif /* SPRITES_H */
| 59,336
|
C++
|
.h
| 1,387
| 40.680606
| 183
| 0.635834
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,638
|
build_industry.h
|
EnergeticBark_OpenTTD-3DS/src/table/build_industry.h
|
/* $Id$ */
/** @file build_industry.h Tables with default industry layouts and behaviours. */
#ifndef BUILD_INDUSTRY_H
#define BUILD_INDUSTRY_H
/**
* Definition of an industry tiles layout.
* @param x offset x of this tile
* @param y offset y of this tile
* @param m index of the tile.
* @see _industry_specs
* @see IndustryTileTable
*/
#define MK(x, y, m) {{x, y}, m}
/**
* Terminator of industry tiles layout definition
*/
#define MKEND {{-0x80, 0}, 0}
static const IndustryTileTable _tile_table_coal_mine_0[] = {
MK(1, 1, 0),
MK(1, 2, 2),
MK(0, 0, 5),
MK(1, 0, 6),
MK(2, 0, 3),
MK(2, 2, 3),
MKEND
};
static const IndustryTileTable _tile_table_coal_mine_1[] = {
MK(1, 1, 0),
MK(1, 2, 2),
MK(2, 0, 0),
MK(2, 1, 2),
MK(1, 0, 3),
MK(0, 0, 3),
MK(0, 1, 4),
MK(0, 2, 4),
MK(2, 2, 4),
MKEND
};
static const IndustryTileTable _tile_table_coal_mine_2[] = {
MK(0, 0, 0),
MK(0, 1, 2),
MK(0, 2, 5),
MK(1, 0, 3),
MK(1, 1, 3),
MK(1, 2, 6),
MKEND
};
static const IndustryTileTable _tile_table_coal_mine_3[] = {
MK(0, 1, 0),
MK(0, 2, 2),
MK(0, 3, 4),
MK(1, 0, 5),
MK(1, 1, 0),
MK(1, 2, 2),
MK(1, 3, 3),
MK(2, 0, 6),
MK(2, 1, 4),
MK(2, 2, 3),
MKEND
};
static const IndustryTileTable * const _tile_table_coal_mine[] = {
_tile_table_coal_mine_0,
_tile_table_coal_mine_1,
_tile_table_coal_mine_2,
_tile_table_coal_mine_3,
};
static const IndustryTileTable _tile_table_power_station_0[] = {
MK(0, 0, 7),
MK(0, 1, 9),
MK(1, 0, 7),
MK(1, 1, 8),
MK(2, 0, 7),
MK(2, 1, 8),
MK(3, 0, 10),
MK(3, 1, 10),
MKEND
};
static const IndustryTileTable _tile_table_power_station_1[] = {
MK(0, 1, 7),
MK(0, 2, 7),
MK(1, 0, 8),
MK(1, 1, 8),
MK(1, 2, 7),
MK(2, 0, 9),
MK(2, 1, 10),
MK(2, 2, 9),
MKEND
};
static const IndustryTileTable _tile_table_power_station_2[] = {
MK(0, 0, 7),
MK(0, 1, 7),
MK(1, 0, 9),
MK(1, 1, 8),
MK(2, 0, 10),
MK(2, 1, 9),
MKEND
};
static const IndustryTileTable * const _tile_table_power_station[] = {
_tile_table_power_station_0,
_tile_table_power_station_1,
_tile_table_power_station_2,
};
static const IndustryTileTable _tile_table_sawmill_0[] = {
MK(1, 0, 14),
MK(1, 1, 12),
MK(1, 2, 11),
MK(2, 0, 14),
MK(2, 1, 13),
MK(0, 0, 15),
MK(0, 1, 15),
MK(0, 2, 12),
MKEND
};
static const IndustryTileTable _tile_table_sawmill_1[] = {
MK(0, 0, 15),
MK(0, 1, 11),
MK(0, 2, 14),
MK(1, 0, 15),
MK(1, 1, 13),
MK(1, 2, 12),
MK(2, 0, 11),
MK(2, 1, 13),
MKEND
};
static const IndustryTileTable * const _tile_table_sawmill[] = {
_tile_table_sawmill_0,
_tile_table_sawmill_1,
};
static const IndustryTileTable _tile_table_forest_0[] = {
MK(0, 0, 16),
MK(0, 1, 16),
MK(0, 2, 16),
MK(0, 3, 16),
MK(1, 0, 16),
MK(1, 1, 16),
MK(1, 2, 16),
MK(1, 3, 16),
MK(2, 0, 16),
MK(2, 1, 16),
MK(2, 2, 16),
MK(2, 3, 16),
MK(3, 0, 16),
MK(3, 1, 16),
MK(3, 2, 16),
MK(3, 3, 16),
MK(1, 4, 16),
MK(2, 4, 16),
MKEND
};
static const IndustryTileTable _tile_table_forest_1[] = {
MK(0, 0, 16),
MK(1, 0, 16),
MK(2, 0, 16),
MK(3, 0, 16),
MK(4, 0, 16),
MK(0, 1, 16),
MK(1, 1, 16),
MK(2, 1, 16),
MK(3, 1, 16),
MK(4, 1, 16),
MK(0, 2, 16),
MK(1, 2, 16),
MK(2, 2, 16),
MK(3, 2, 16),
MK(4, 2, 16),
MK(0, 3, 16),
MK(1, 3, 16),
MK(2, 3, 16),
MK(3, 3, 16),
MK(4, 3, 16),
MK(1, 4, 16),
MK(2, 4, 16),
MK(3, 4, 16),
MKEND
};
static const IndustryTileTable * const _tile_table_forest[] = {
_tile_table_forest_0,
_tile_table_forest_1,
};
static const IndustryTileTable _tile_table_oil_refinery_0[] = {
MK(0, 0, 20),
MK(0, 1, 21),
MK(0, 2, 22),
MK(0, 3, 21),
MK(1, 0, 20),
MK(1, 1, 19),
MK(1, 2, 22),
MK(1, 3, 20),
MK(2, 1, 18),
MK(2, 2, 18),
MK(2, 3, 18),
MK(3, 2, 18),
MK(3, 3, 18),
MK(2, 0, 23),
MK(3, 1, 23),
MKEND
};
static const IndustryTileTable _tile_table_oil_refinery_1[] = {
MK(0, 0, 18),
MK(0, 1, 18),
MK(0, 2, 21),
MK(0, 3, 22),
MK(0, 4, 20),
MK(1, 0, 18),
MK(1, 1, 18),
MK(1, 2, 19),
MK(1, 3, 20),
MK(2, 0, 18),
MK(2, 1, 18),
MK(2, 2, 19),
MK(2, 3, 22),
MK(1, 4, 23),
MK(2, 4, 23),
MKEND
};
static const IndustryTileTable * const _tile_table_oil_refinery[] = {
_tile_table_oil_refinery_0,
_tile_table_oil_refinery_1,
};
static const IndustryTileTable _tile_table_oil_rig_0[] = {
MK(0, 0, 24),
MK(0, 1, 24),
MK(0, 2, 25),
MK(1, 0, 26),
MK(1, 1, 27),
MK(1, 2, 28),
MK(-4, -5, 255),
MK(-4, -4, 255),
MK(-4, -3, 255),
MK(-4, -2, 255),
MK(-4, -1, 255),
MK(-4, 0, 255),
MK(-4, 1, 255),
MK(-4, 2, 255),
MK(-4, 3, 255),
MK(-4, 4, 255),
MK(-4, 5, 255),
MK(-3, 5, 255),
MK(-2, 5, 255),
MK(-1, 5, 255),
MK(0, 6, 255),
MK(1, 6, 255),
MK(2, 6, 255),
MK(3, 6, 255),
MK(4, 6, 255),
MK(5, 6, 255),
MK(5, 5, 255),
MK(5, 4, 255),
MK(5, 3, 255),
MK(5, 2, 255),
MK(5, 1, 255),
MK(5, 0, 255),
MK(5, -1, 255),
MK(5, -2, 255),
MK(5, -3, 255),
MK(5, -4, 255),
MK(4, -4, 255),
MK(3, -4, 255),
MK(2, -4, 255),
MK(1, -4, 255),
MK(0, -4, 255),
MK(-1, -5, 255),
MK(-2, -5, 255),
MK(-3, -5, 255),
MK(2, 0, 255),
MKEND
};
static const IndustryTileTable * const _tile_table_oil_rig[] = {
_tile_table_oil_rig_0,
};
static const IndustryTileTable _tile_table_factory_0[] = {
MK(0, 0, 39),
MK(0, 1, 40),
MK(1, 0, 41),
MK(1, 1, 42),
MK(0, 2, 39),
MK(0, 3, 40),
MK(1, 2, 41),
MK(1, 3, 42),
MK(2, 1, 39),
MK(2, 2, 40),
MK(3, 1, 41),
MK(3, 2, 42),
MKEND
};
static const IndustryTileTable _tile_table_factory_1[] = {
MK(0, 0, 39),
MK(0, 1, 40),
MK(1, 0, 41),
MK(1, 1, 42),
MK(2, 0, 39),
MK(2, 1, 40),
MK(3, 0, 41),
MK(3, 1, 42),
MK(1, 2, 39),
MK(1, 3, 40),
MK(2, 2, 41),
MK(2, 3, 42),
MKEND
};
static const IndustryTileTable * const _tile_table_factory[] = {
_tile_table_factory_0,
_tile_table_factory_1,
};
static const IndustryTileTable _tile_table_printing_works_0[] = {
MK(0, 0, 43),
MK(0, 1, 44),
MK(1, 0, 45),
MK(1, 1, 46),
MK(0, 2, 43),
MK(0, 3, 44),
MK(1, 2, 45),
MK(1, 3, 46),
MK(2, 1, 43),
MK(2, 2, 44),
MK(3, 1, 45),
MK(3, 2, 46),
MKEND
};
static const IndustryTileTable _tile_table_printing_works_1[] = {
MK(0, 0, 43),
MK(0, 1, 44),
MK(1, 0, 45),
MK(1, 1, 46),
MK(2, 0, 43),
MK(2, 1, 44),
MK(3, 0, 45),
MK(3, 1, 46),
MK(1, 2, 43),
MK(1, 3, 44),
MK(2, 2, 45),
MK(2, 3, 46),
MKEND
};
static const IndustryTileTable * const _tile_table_printing_works[] = {
_tile_table_printing_works_0,
_tile_table_printing_works_1,
};
static const IndustryTileTable _tile_table_steel_mill_0[] = {
MK(2, 1, 52),
MK(2, 2, 53),
MK(3, 1, 54),
MK(3, 2, 55),
MK(0, 0, 56),
MK(1, 0, 57),
MK(0, 1, 56),
MK(1, 1, 57),
MK(0, 2, 56),
MK(1, 2, 57),
MK(2, 0, 56),
MK(3, 0, 57),
MKEND
};
static const IndustryTileTable _tile_table_steel_mill_1[] = {
MK(0, 0, 52),
MK(0, 1, 53),
MK(1, 0, 54),
MK(1, 1, 55),
MK(2, 0, 52),
MK(2, 1, 53),
MK(3, 0, 54),
MK(3, 1, 55),
MK(0, 2, 56),
MK(1, 2, 57),
MK(2, 2, 56),
MK(3, 2, 57),
MK(1, 3, 56),
MK(2, 3, 57),
MKEND
};
static const IndustryTileTable * const _tile_table_steel_mill[] = {
_tile_table_steel_mill_0,
_tile_table_steel_mill_1,
};
static const IndustryTileTable _tile_table_farm_0[] = {
MK(1, 0, 33),
MK(1, 1, 34),
MK(1, 2, 36),
MK(0, 0, 37),
MK(0, 1, 37),
MK(0, 2, 36),
MK(2, 0, 35),
MK(2, 1, 38),
MK(2, 2, 38),
MKEND
};
static const IndustryTileTable _tile_table_farm_1[] = {
MK(1, 1, 33),
MK(1, 2, 34),
MK(0, 0, 35),
MK(0, 1, 36),
MK(0, 2, 36),
MK(0, 3, 35),
MK(1, 0, 37),
MK(1, 3, 38),
MK(2, 0, 37),
MK(2, 1, 37),
MK(2, 2, 38),
MK(2, 3, 38),
MKEND
};
static const IndustryTileTable _tile_table_farm_2[] = {
MK(2, 0, 33),
MK(2, 1, 34),
MK(0, 0, 36),
MK(0, 1, 36),
MK(0, 2, 37),
MK(0, 3, 37),
MK(1, 0, 35),
MK(1, 1, 38),
MK(1, 2, 38),
MK(1, 3, 37),
MK(2, 2, 37),
MK(2, 3, 35),
MKEND
};
static const IndustryTileTable * const _tile_table_farm[] = {
_tile_table_farm_0,
_tile_table_farm_1,
_tile_table_farm_2,
};
static const IndustryTileTable _tile_table_copper_mine_0[] = {
MK(0, 0, 47),
MK(0, 1, 49),
MK(0, 2, 51),
MK(1, 0, 47),
MK(1, 1, 49),
MK(1, 2, 50),
MK(2, 0, 51),
MK(2, 1, 51),
MKEND
};
static const IndustryTileTable _tile_table_copper_mine_1[] = {
MK(0, 0, 50),
MK(0, 1, 47),
MK(0, 2, 49),
MK(1, 0, 47),
MK(1, 1, 49),
MK(1, 2, 51),
MK(2, 0, 51),
MK(2, 1, 47),
MK(2, 2, 49),
MKEND
};
static const IndustryTileTable * const _tile_table_copper_mine[] = {
_tile_table_copper_mine_0,
_tile_table_copper_mine_1,
};
static const IndustryTileTable _tile_table_oil_well_0[] = {
MK(0, 0, 29),
MK(1, 0, 29),
MK(2, 0, 29),
MK(0, 1, 29),
MK(0, 2, 29),
MKEND
};
static const IndustryTileTable _tile_table_oil_well_1[] = {
MK(0, 0, 29),
MK(1, 0, 29),
MK(1, 1, 29),
MK(2, 2, 29),
MK(2, 3, 29),
MKEND
};
static const IndustryTileTable * const _tile_table_oil_well[] = {
_tile_table_oil_well_0,
_tile_table_oil_well_1,
};
static const IndustryTileTable _tile_table_bank_0[] = {
MK(0, 0, 58),
MK(1, 0, 59),
MKEND
};
static const IndustryTileTable * const _tile_table_bank[] = {
_tile_table_bank_0,
};
static const IndustryTileTable _tile_table_food_process_0[] = {
MK(0, 0, 60),
MK(1, 0, 60),
MK(2, 0, 60),
MK(0, 1, 60),
MK(1, 1, 60),
MK(2, 1, 60),
MK(0, 2, 61),
MK(1, 2, 61),
MK(2, 2, 63),
MK(0, 3, 62),
MK(1, 3, 62),
MK(2, 3, 63),
MKEND
};
static const IndustryTileTable _tile_table_food_process_1[] = {
MK(0, 0, 61),
MK(1, 0, 60),
MK(2, 0, 61),
MK(3, 0, 61),
MK(0, 1, 62),
MK(1, 1, 63),
MK(2, 1, 63),
MK(3, 1, 63),
MK(0, 2, 60),
MK(1, 2, 60),
MK(2, 2, 60),
MK(3, 2, 60),
MK(0, 3, 62),
MK(1, 3, 62),
MKEND
};
static const IndustryTileTable * const _tile_table_food_process[] = {
_tile_table_food_process_0,
_tile_table_food_process_1,
};
static const IndustryTileTable _tile_table_paper_mill_0[] = {
MK(0, 0, 64),
MK(1, 0, 65),
MK(2, 0, 66),
MK(3, 0, 67),
MK(0, 1, 68),
MK(1, 1, 69),
MK(2, 1, 67),
MK(3, 1, 67),
MK(0, 2, 66),
MK(1, 2, 71),
MK(2, 2, 71),
MK(3, 2, 70),
MKEND
};
static const IndustryTileTable * const _tile_table_paper_mill[] = {
_tile_table_paper_mill_0,
};
static const IndustryTileTable _tile_table_gold_mine_0[] = {
MK(0, 0, 72),
MK(0, 1, 73),
MK(0, 2, 74),
MK(0, 3, 75),
MK(1, 0, 76),
MK(1, 1, 77),
MK(1, 2, 78),
MK(1, 3, 79),
MK(2, 0, 80),
MK(2, 1, 81),
MK(2, 2, 82),
MK(2, 3, 83),
MK(3, 0, 84),
MK(3, 1, 85),
MK(3, 2, 86),
MK(3, 3, 87),
MKEND
};
static const IndustryTileTable * const _tile_table_gold_mine[] = {
_tile_table_gold_mine_0,
};
static const IndustryTileTable _tile_table_bank2_0[] = {
MK(0, 0, 89),
MK(1, 0, 90),
MKEND
};
static const IndustryTileTable * const _tile_table_bank2[] = {
_tile_table_bank2_0,
};
static const IndustryTileTable _tile_table_diamond_mine_0[] = {
MK(0, 0, 91),
MK(0, 1, 92),
MK(0, 2, 93),
MK(1, 0, 94),
MK(1, 1, 95),
MK(1, 2, 96),
MK(2, 0, 97),
MK(2, 1, 98),
MK(2, 2, 99),
MKEND
};
static const IndustryTileTable * const _tile_table_diamond_mine[] = {
_tile_table_diamond_mine_0,
};
static const IndustryTileTable _tile_table_iron_mine_0[] = {
MK(0, 0, 100),
MK(0, 1, 101),
MK(0, 2, 102),
MK(0, 3, 103),
MK(1, 0, 104),
MK(1, 1, 105),
MK(1, 2, 106),
MK(1, 3, 107),
MK(2, 0, 108),
MK(2, 1, 109),
MK(2, 2, 110),
MK(2, 3, 111),
MK(3, 0, 112),
MK(3, 1, 113),
MK(3, 2, 114),
MK(3, 3, 115),
MKEND
};
static const IndustryTileTable * const _tile_table_iron_mine[] = {
_tile_table_iron_mine_0,
};
static const IndustryTileTable _tile_table_fruit_plantation_0[] = {
MK(0, 0, 116),
MK(0, 1, 116),
MK(0, 2, 116),
MK(0, 3, 116),
MK(1, 0, 116),
MK(1, 1, 116),
MK(1, 2, 116),
MK(1, 3, 116),
MK(2, 0, 116),
MK(2, 1, 116),
MK(2, 2, 116),
MK(2, 3, 116),
MK(3, 0, 116),
MK(3, 1, 116),
MK(3, 2, 116),
MK(3, 3, 116),
MK(4, 0, 116),
MK(4, 1, 116),
MK(4, 2, 116),
MK(4, 3, 116),
MKEND
};
static const IndustryTileTable * const _tile_table_fruit_plantation[] = {
_tile_table_fruit_plantation_0,
};
static const IndustryTileTable _tile_table_rubber_plantation_0[] = {
MK(0, 0, 117),
MK(0, 1, 117),
MK(0, 2, 117),
MK(0, 3, 117),
MK(1, 0, 117),
MK(1, 1, 117),
MK(1, 2, 117),
MK(1, 3, 117),
MK(2, 0, 117),
MK(2, 1, 117),
MK(2, 2, 117),
MK(2, 3, 117),
MK(3, 0, 117),
MK(3, 1, 117),
MK(3, 2, 117),
MK(3, 3, 117),
MK(4, 0, 117),
MK(4, 1, 117),
MK(4, 2, 117),
MK(4, 3, 117),
MKEND
};
static const IndustryTileTable * const _tile_table_rubber_plantation[] = {
_tile_table_rubber_plantation_0,
};
static const IndustryTileTable _tile_table_water_supply_0[] = {
MK(0, 0, 118),
MK(0, 1, 119),
MK(1, 0, 118),
MK(1, 1, 119),
MKEND
};
static const IndustryTileTable * const _tile_table_water_supply[] = {
_tile_table_water_supply_0,
};
static const IndustryTileTable _tile_table_water_tower_0[] = {
MK(0, 0, 120),
MKEND
};
static const IndustryTileTable * const _tile_table_water_tower[] = {
_tile_table_water_tower_0,
};
static const IndustryTileTable _tile_table_factory2_0[] = {
MK(0, 0, 121),
MK(0, 1, 122),
MK(1, 0, 123),
MK(1, 1, 124),
MK(0, 2, 121),
MK(0, 3, 122),
MK(1, 2, 123),
MK(1, 3, 124),
MKEND
};
static const IndustryTileTable _tile_table_factory2_1[] = {
MK(0, 0, 121),
MK(0, 1, 122),
MK(1, 0, 123),
MK(1, 1, 124),
MK(2, 0, 121),
MK(2, 1, 122),
MK(3, 0, 123),
MK(3, 1, 124),
MKEND
};
static const IndustryTileTable * const _tile_table_factory2[] = {
_tile_table_factory2_0,
_tile_table_factory2_1,
};
static const IndustryTileTable _tile_table_farm2_0[] = {
MK(1, 0, 33),
MK(1, 1, 34),
MK(1, 2, 36),
MK(0, 0, 37),
MK(0, 1, 37),
MK(0, 2, 36),
MK(2, 0, 35),
MK(2, 1, 38),
MK(2, 2, 38),
MKEND
};
static const IndustryTileTable _tile_table_farm2_1[] = {
MK(1, 1, 33),
MK(1, 2, 34),
MK(0, 0, 35),
MK(0, 1, 36),
MK(0, 2, 36),
MK(0, 3, 35),
MK(1, 0, 37),
MK(1, 3, 38),
MK(2, 0, 37),
MK(2, 1, 37),
MK(2, 2, 38),
MK(2, 3, 38),
MKEND
};
static const IndustryTileTable _tile_table_farm2_2[] = {
MK(2, 0, 33),
MK(2, 1, 34),
MK(0, 0, 36),
MK(0, 1, 36),
MK(0, 2, 37),
MK(0, 3, 37),
MK(1, 0, 35),
MK(1, 1, 38),
MK(1, 2, 38),
MK(1, 3, 37),
MK(2, 2, 37),
MK(2, 3, 35),
MKEND
};
static const IndustryTileTable * const _tile_table_farm2[] = {
_tile_table_farm2_0,
_tile_table_farm2_1,
_tile_table_farm2_2,
};
static const IndustryTileTable _tile_table_lumber_mill_0[] = {
MK(0, 0, 125),
MK(0, 1, 126),
MK(1, 0, 127),
MK(1, 1, 128),
MKEND
};
static const IndustryTileTable * const _tile_table_lumber_mill[] = {
_tile_table_lumber_mill_0,
};
static const IndustryTileTable _tile_table_cotton_candy_0[] = {
MK(0, 0, 129),
MK(0, 1, 129),
MK(0, 2, 129),
MK(0, 3, 129),
MK(1, 0, 129),
MK(1, 1, 129),
MK(1, 2, 129),
MK(1, 3, 129),
MK(2, 0, 129),
MK(2, 1, 129),
MK(2, 2, 129),
MK(2, 3, 129),
MK(3, 0, 129),
MK(3, 1, 129),
MK(3, 2, 129),
MK(3, 3, 129),
MK(1, 4, 129),
MK(2, 4, 129),
MKEND
};
static const IndustryTileTable _tile_table_cotton_candy_1[] = {
MK(0, 0, 129),
MK(1, 0, 129),
MK(2, 0, 129),
MK(3, 0, 129),
MK(4, 0, 129),
MK(0, 1, 129),
MK(1, 1, 129),
MK(2, 1, 129),
MK(3, 1, 129),
MK(4, 1, 129),
MK(0, 2, 129),
MK(1, 2, 129),
MK(2, 2, 129),
MK(3, 2, 129),
MK(4, 2, 129),
MK(0, 3, 129),
MK(1, 3, 129),
MK(2, 3, 129),
MK(3, 3, 129),
MK(4, 3, 129),
MK(1, 4, 129),
MK(2, 4, 129),
MK(3, 4, 129),
MKEND
};
static const IndustryTileTable * const _tile_table_cotton_candy[] = {
_tile_table_cotton_candy_0,
_tile_table_cotton_candy_1,
};
static const IndustryTileTable _tile_table_candy_factory_0[] = {
MK(0, 0, 131),
MK(0, 1, 132),
MK(1, 0, 133),
MK(1, 1, 134),
MK(0, 2, 131),
MK(0, 3, 132),
MK(1, 2, 133),
MK(1, 3, 134),
MK(2, 1, 131),
MK(2, 2, 132),
MK(3, 1, 133),
MK(3, 2, 134),
MKEND
};
static const IndustryTileTable _tile_table_candy_factory_1[] = {
MK(0, 0, 131),
MK(0, 1, 132),
MK(1, 0, 133),
MK(1, 1, 134),
MK(2, 0, 131),
MK(2, 1, 132),
MK(3, 0, 133),
MK(3, 1, 134),
MK(1, 2, 131),
MK(1, 3, 132),
MK(2, 2, 133),
MK(2, 3, 134),
MKEND
};
static const IndustryTileTable * const _tile_table_candy_factory[] = {
_tile_table_candy_factory_0,
_tile_table_candy_factory_1,
};
static const IndustryTileTable _tile_table_battery_farm_0[] = {
MK(0, 0, 135),
MK(0, 1, 135),
MK(0, 2, 135),
MK(0, 3, 135),
MK(1, 0, 135),
MK(1, 1, 135),
MK(1, 2, 135),
MK(1, 3, 135),
MK(2, 0, 135),
MK(2, 1, 135),
MK(2, 2, 135),
MK(2, 3, 135),
MK(3, 0, 135),
MK(3, 1, 135),
MK(3, 2, 135),
MK(3, 3, 135),
MK(4, 0, 135),
MK(4, 1, 135),
MK(4, 2, 135),
MK(4, 3, 135),
MKEND
};
static const IndustryTileTable * const _tile_table_battery_farm[] = {
_tile_table_battery_farm_0,
};
static const IndustryTileTable _tile_table_cola_wells_0[] = {
MK(0, 0, 137),
MK(0, 1, 137),
MK(0, 2, 137),
MK(1, 0, 137),
MK(1, 1, 137),
MK(1, 2, 137),
MK(2, 1, 137),
MK(2, 2, 137),
MKEND
};
static const IndustryTileTable _tile_table_cola_wells_1[] = {
MK(0, 1, 137),
MK(0, 2, 137),
MK(0, 3, 137),
MK(1, 0, 137),
MK(1, 1, 137),
MK(1, 2, 137),
MK(2, 1, 137),
MKEND
};
static const IndustryTileTable * const _tile_table_cola_wells[] = {
_tile_table_cola_wells_0,
_tile_table_cola_wells_1,
};
static const IndustryTileTable _tile_table_toy_shop_0[] = {
MK(0, 0, 138),
MK(0, 1, 139),
MK(1, 0, 140),
MK(1, 1, 141),
MKEND
};
static const IndustryTileTable * const _tile_table_toy_shop[] = {
_tile_table_toy_shop_0,
};
static const IndustryTileTable _tile_table_toy_factory_0[] = {
MK(0, 0, 147),
MK(0, 1, 142),
MK(1, 0, 147),
MK(1, 1, 143),
MK(2, 0, 147),
MK(2, 1, 144),
MK(3, 0, 146),
MK(3, 1, 145),
MKEND
};
static const IndustryTileTable * const _tile_table_toy_factory[] = {
_tile_table_toy_factory_0,
};
static const IndustryTileTable _tile_table_plastic_fountain_0[] = {
MK(0, 0, 148),
MK(0, 1, 151),
MK(0, 2, 154),
MKEND
};
static const IndustryTileTable _tile_table_plastic_fountain_1[] = {
MK(0, 0, 148),
MK(1, 0, 151),
MK(2, 0, 154),
MKEND
};
static const IndustryTileTable * const _tile_table_plastic_fountain[] = {
_tile_table_plastic_fountain_0,
_tile_table_plastic_fountain_1,
};
static const IndustryTileTable _tile_table_fizzy_drink_0[] = {
MK(0, 0, 156),
MK(0, 1, 157),
MK(1, 0, 158),
MK(1, 1, 159),
MKEND
};
static const IndustryTileTable * const _tile_table_fizzy_drink[] = {
_tile_table_fizzy_drink_0,
};
static const IndustryTileTable _tile_table_bubble_generator_0[] = {
MK(0, 0, 163),
MK(0, 1, 160),
MK(1, 0, 163),
MK(1, 1, 161),
MK(2, 0, 163),
MK(2, 1, 162),
MK(0, 2, 163),
MK(0, 3, 160),
MK(1, 2, 163),
MK(1, 3, 161),
MK(2, 2, 163),
MK(2, 3, 162),
MKEND
};
static const IndustryTileTable * const _tile_table_bubble_generator[] = {
_tile_table_bubble_generator_0,
};
static const IndustryTileTable _tile_table_toffee_quarry_0[] = {
MK(0, 0, 164),
MK(1, 0, 165),
MK(2, 0, 166),
MKEND
};
static const IndustryTileTable * const _tile_table_toffee_quarry[] = {
_tile_table_toffee_quarry_0,
};
static const IndustryTileTable _tile_table_sugar_mine_0[] = {
MK(0, 0, 167),
MK(0, 1, 168),
MK(1, 0, 169),
MK(1, 1, 170),
MK(2, 0, 171),
MK(2, 1, 172),
MK(3, 0, 173),
MK(3, 1, 174),
MKEND
};
static const IndustryTileTable * const _tile_table_sugar_mine[] = {
_tile_table_sugar_mine_0,
};
#undef MK
#undef MKEND
/** Array with saw sound, for sawmill */
static const uint8 _sawmill_sounds[] = { SND_28_SAWMILL };
/** Array with whistle sound, for factory */
static const uint8 _factory_sounds[] = { SND_03_FACTORY_WHISTLE };
/** Array with 3 animal sounds, for farms */
static const uint8 _farm_sounds[] = { SND_24_SHEEP, SND_25_COW, SND_26_HORSE };
/** Array with... hem... a sound of toyland */
static const uint8 _plastic_mine_sounds[] = { SND_33_PLASTIC_MINE };
enum {
IT_COAL_MINE = 0,
IT_POWER_STATION = 1,
IT_SAWMILL = 2,
IT_FOREST = 3,
IT_OIL_REFINERY = 4,
IT_OIL_RIG = 5,
IT_FACTORY = 6,
IT_PRINTING_WORKS = 7,
IT_STEEL_MILL = 8,
IT_FARM = 9,
IT_COPPER_MINE = 10,
IT_OIL_WELL = 11,
IT_BANK_TEMP = 12,
IT_FOOD_PROCESS = 13,
IT_PAPER_MILL = 14,
IT_GOLD_MINE = 15,
IT_BANK_TROPIC_ARCTIC = 16,
IT_DIAMOND_MINE = 17,
IT_IRON_MINE = 18,
IT_FRUIT_PLANTATION = 19,
IT_RUBBER_PLANTATION = 20,
IT_WATER_SUPPLY = 21,
IT_WATER_TOWER = 22,
IT_FACTORY_2 = 23,
IT_FARM_2 = 24,
IT_LUMBER_MILL = 25,
IT_COTTON_CANDY = 26,
IT_CANDY_FACTORY = 27,
IT_BATTERY_FARM = 28,
IT_COLA_WELLS = 29,
IT_TOY_SHOP = 30,
IT_TOY_FACTORY = 31,
IT_PLASTIC_FOUNTAINS = 32,
IT_FIZZY_DRINK_FACTORY = 33,
IT_BUBBLE_GENERATOR = 34,
IT_TOFFEE_QUARRY = 35,
IT_SUGAR_MINE = 36,
IT_END,
};
/**
* Writes the properties of an industry into the IndustrySpec struct.
* @param tbl tile table
* @param sndc number of sounds
* @param snd sounds table
* @param d cost multiplier
* @param pc prospecting chance
* @param ai1 appear chance ingame - temperate
* @param ai2 appear chance ingame - arctic
* @param ai3 appear chance ingame - tropic
* @param ai4 appear chance ingame - toyland
* @param ag1 appear chance random creation - temperate
* @param ag2 appear chance random creation - arctic
* @param ag3 appear chance random creation - tropic
* @param ag4 appear chance random creation - toyland
* @param col map colour
* @param c1 industry proximity refusal - 1st
* @param c2 industry proximity refusal - 2nd
* @param c3 industry proximity refusal - 3th
* @param proc check procedure index
* @param p1 produce cargo 1
* @param r1 rate of production 1
* @param p2 produce cargo 2
* @param r2 rate of production 1
* @param m minimum cargo moved to station
* @param a1 accepted cargo 1
* @param im1 input multiplier for cargo 1
* @param a2 accepted cargo 2
* @param im2 input multiplier for cargo 2
* @param a3 accepted cargo 3
* @param im3 input multiplier for cargo 3
* @param pr industry life (actually, the same as extractive, organic, processing in ttdpatch's specs)
* @param clim climate availaility
* @param bev industry behaviour
* @param in name
* @param intx text while building
* @param s1 text for closure
* @param s2 text for production up
* @param s3 text for production down
*/
#define MI(tbl, sndc, snd, d, pc, ai1, ai2, ai3, ai4, ag1, ag2, ag3, ag4, col, \
c1, c2, c3, proc, p1, r1, p2, r2, m, a1, im1, a2, im2, a3, im3, pr, clim, bev, in, intx, s1, s2, s3) \
{tbl, lengthof(tbl), min(255, d), 0, d, pc, {c1, c2, c3}, proc, {p1, p2}, {r1, r2}, m, \
{a1, a2, a3}, {{im1, 0}, {im2, 0}, {im3, 0}}, pr, clim, bev, col, in, intx, s1, s2, s3, STR_UNDEFINED, {ai1, ai2, ai3, ai4}, {ag1, ag2, ag3, ag4}, \
sndc, snd, 0, 0, true, {INVALID_INDUSTRYTYPE, 0, NULL, NULL, INVALID_INDUSTRYTYPE}}
/* Format:
tile table count and sounds table
cost multiplier appear chances(4ingame, 4random) map colour
cannot be close to these industries (3 times) check proc
(produced cargo + rate) (twice) minimum cargo moved to station
3 accepted cargo and their corresponding input multiplier
industry life climate availability
industry behaviours
industry name building text
messages : Closure production up production down */
static const IndustrySpec _origin_industry_specs[NEW_INDUSTRYOFFSET] = {
MI(_tile_table_coal_mine, 0, NULL,
1680, 0xB3333333, 2, 3, 0, 0, 8, 8, 0, 0, 215,
IT_POWER_STATION, IT_INVALID, IT_INVALID, CHECK_NOTHING,
CT_COAL, 15, CT_INVALID, 0, 5,
CT_INVALID, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_EXTRACTIVE, 1 << LT_TEMPERATE | 1 << LT_ARCTIC,
INDUSTRYBEH_CAN_SUBSIDENCE,
STR_4802_COAL_MINE, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4836_NEW_COAL_SEAM_FOUND_AT, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_power_station, 0, NULL,
240, 0xFFFFFFFF, 2, 2, 0, 0, 5, 5, 0, 0, 184,
IT_COAL_MINE, IT_INVALID, IT_INVALID, CHECK_NOTHING,
CT_INVALID, 0, CT_INVALID, 0, 5,
CT_COAL, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_BLACK_HOLE, 1 << LT_TEMPERATE | 1 << LT_ARCTIC,
INDUSTRYBEH_NONE,
STR_4803_POWER_STATION, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_sawmill, 1, _sawmill_sounds,
224, 0xFFFFFFFF, 2, 0, 0, 0, 5, 0, 0, 0, 194,
IT_FOREST, IT_INVALID, IT_INVALID, CHECK_NOTHING,
CT_GOODS, 0, CT_INVALID, 0, 5,
CT_WOOD, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_PROCESSING, 1 << LT_TEMPERATE,
INDUSTRYBEH_NONE,
STR_4804_SAWMILL, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4833_SUPPLY_PROBLEMS_CAUSE_TO, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_forest, 0, NULL,
1600, 0xBFFFFFFF, 3, 4, 0, 0, 5, 5, 0, 0, 86,
IT_SAWMILL, IT_PAPER_MILL, IT_INVALID, CHECK_FOREST,
CT_WOOD, 13, CT_INVALID, 0, 30,
CT_INVALID, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_ORGANIC, 1 << LT_TEMPERATE | 1 << LT_ARCTIC,
INDUSTRYBEH_NONE,
STR_4805_FOREST, STR_482E_NEW_BEING_PLANTED_NEAR,
STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4835_INCREASES_PRODUCTION, STR_483A_INSECT_INFESTATION_CAUSES),
MI(_tile_table_oil_refinery, 0, NULL,
244, 0xFFFFFFFF, 2, 2, 2, 0, 4, 4, 4, 0, 191,
IT_OIL_RIG, IT_INVALID, IT_INVALID, CHECK_REFINERY,
CT_GOODS, 0, CT_INVALID, 0, 5,
CT_OIL, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_PROCESSING, 1 << LT_TEMPERATE | 1 << LT_ARCTIC | 1 << LT_TROPIC,
INDUSTRYBEH_AIRPLANE_ATTACKS,
STR_4806_OIL_REFINERY, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4833_SUPPLY_PROBLEMS_CAUSE_TO, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_oil_rig, 0, NULL,
1920, 0x99999999, 6, 0, 0, 0, 0, 0, 0, 0, 152,
IT_OIL_REFINERY, IT_INVALID, IT_INVALID, CHECK_OIL_RIG,
CT_OIL, 15, CT_PASSENGERS, 2, 5,
CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, 0,
INDUSTRYLIFE_EXTRACTIVE, 1 << LT_TEMPERATE,
INDUSTRYBEH_BUILT_ONWATER | INDUSTRYBEH_AFTER_1960 | INDUSTRYBEH_AI_AIRSHIP_ROUTES,
STR_4807_OIL_RIG, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4837_NEW_OIL_RESERVES_FOUND, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_factory, 1, _factory_sounds,
208, 0xFFFFFFFF, 2, 0, 0, 0, 5, 0, 0, 0, 174,
IT_FARM, IT_STEEL_MILL, IT_INVALID, CHECK_NOTHING,
CT_GOODS, 0, CT_INVALID, 0, 5,
CT_LIVESTOCK, 256, CT_GRAIN, 256, CT_STEEL, 256,
INDUSTRYLIFE_PROCESSING, 1 << LT_TEMPERATE,
INDUSTRYBEH_CHOPPER_ATTACKS,
STR_4808_FACTORY, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4833_SUPPLY_PROBLEMS_CAUSE_TO, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_printing_works, 1, _factory_sounds,
208, 0xFFFFFFFF, 0, 2, 0, 0, 0, 5, 0, 0, 174,
IT_PAPER_MILL, IT_INVALID, IT_INVALID, CHECK_NOTHING,
CT_GOODS, 0, CT_INVALID, 0, 5,
CT_PAPER, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_PROCESSING, 1 << LT_ARCTIC,
INDUSTRYBEH_NONE,
STR_4809_PRINTING_WORKS, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4833_SUPPLY_PROBLEMS_CAUSE_TO, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_steel_mill, 0, NULL,
215, 0xFFFFFFFF, 2, 0, 0, 0, 5, 0, 0, 0, 10,
IT_IRON_MINE, IT_FACTORY, IT_INVALID, CHECK_NOTHING,
CT_STEEL, 0, CT_INVALID, 0, 5,
CT_IRON_ORE, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_PROCESSING, 1 << LT_TEMPERATE,
INDUSTRYBEH_NONE,
STR_480A_STEEL_MILL, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4833_SUPPLY_PROBLEMS_CAUSE_TO, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_farm, 3, _farm_sounds,
2000, 0xD9999999, 2, 4, 0, 0, 9, 9, 0, 0, 48,
IT_FACTORY, IT_FOOD_PROCESS, IT_INVALID, CHECK_FARM,
CT_GRAIN, 10, CT_LIVESTOCK, 10, 5,
CT_INVALID, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_ORGANIC, 1 << LT_TEMPERATE | 1 << LT_ARCTIC,
INDUSTRYBEH_PLANT_FIELDS | INDUSTRYBEH_PLANT_ON_BUILT,
STR_480B_FARM, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4838_IMPROVED_FARMING_METHODS, STR_483A_INSECT_INFESTATION_CAUSES),
MI(_tile_table_copper_mine, 0, NULL,
1640, 0xB3333333, 0, 0, 3, 0, 0, 0, 4, 0, 10,
IT_FACTORY_2, IT_INVALID, IT_INVALID, CHECK_NOTHING,
CT_COPPER_ORE, 10, CT_INVALID, 0, 5,
CT_INVALID, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_EXTRACTIVE, 1 << LT_TROPIC,
INDUSTRYBEH_NONE,
STR_480C_COPPER_ORE_MINE, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_oil_well, 0, NULL,
1760, 0x99999999, 0, 5, 3, 0, 4, 5, 5, 0, 152,
IT_OIL_REFINERY, IT_INVALID, IT_INVALID, CHECK_NOTHING,
CT_OIL, 12, CT_INVALID, 0, 5,
CT_INVALID, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_EXTRACTIVE, 1 << LT_TEMPERATE | 1 << LT_ARCTIC | 1 << LT_TROPIC,
INDUSTRYBEH_DONT_INCR_PROD | INDUSTRYBEH_BEFORE_1950,
STR_480D_OIL_WELLS, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4837_NEW_OIL_RESERVES_FOUND, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_bank, 0, NULL,
1544, 0xA6666666, 7, 0, 0, 0, 0, 0, 0, 0, 15,
IT_BANK_TEMP, IT_INVALID, IT_INVALID, CHECK_NOTHING,
CT_VALUABLES, 6, CT_INVALID, 0, 5,
CT_VALUABLES, 0, CT_INVALID, 0, CT_INVALID, 0,
INDUSTRYLIFE_BLACK_HOLE, 1 << LT_TEMPERATE,
INDUSTRYBEH_TOWN1200_MORE,
STR_480E_BANK, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_food_process, 0, NULL,
206, 0xFFFFFFFF, 0, 2, 2, 0, 0, 3, 4, 0, 55,
IT_FRUIT_PLANTATION, IT_FARM, IT_FARM_2, CHECK_NOTHING,
CT_FOOD, 0, CT_INVALID, 0, 5,
CT_FRUIT, 256, CT_MAIZE, 256, CT_INVALID, 256,
INDUSTRYLIFE_PROCESSING, 1 << LT_ARCTIC | 1 << LT_TROPIC,
INDUSTRYBEH_NONE,
STR_480F_FOOD_PROCESSING_PLANT, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4833_SUPPLY_PROBLEMS_CAUSE_TO, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_paper_mill, 1, _sawmill_sounds,
227, 0xFFFFFFFF, 0, 2, 0, 0, 0, 5, 0, 0, 10,
IT_FOREST, IT_PRINTING_WORKS, IT_INVALID, CHECK_NOTHING,
CT_PAPER, 0, CT_INVALID, 0, 5,
CT_WOOD, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_PROCESSING, 1 << LT_ARCTIC,
INDUSTRYBEH_NONE,
STR_4810_PAPER_MILL, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4833_SUPPLY_PROBLEMS_CAUSE_TO, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_gold_mine, 0, NULL,
1664, 0x99999999, 0, 3, 0, 0, 0, 4, 0, 0, 194,
IT_BANK_TROPIC_ARCTIC, IT_INVALID, IT_INVALID, CHECK_NOTHING,
CT_GOLD, 7, CT_INVALID, 0, 5,
CT_INVALID, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_EXTRACTIVE, 1 << LT_ARCTIC,
INDUSTRYBEH_NONE,
STR_4811_GOLD_MINE, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_bank2, 0, NULL,
151, 0xA6666666, 0, 3, 3, 0, 0, 6, 5, 0, 15,
IT_GOLD_MINE, IT_DIAMOND_MINE, IT_INVALID, CHECK_NOTHING,
CT_INVALID, 0, CT_INVALID, 0, 5,
CT_GOLD, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_BLACK_HOLE, 1 << LT_ARCTIC | 1 << LT_TROPIC,
INDUSTRYBEH_ONLY_INTOWN,
STR_4812_BANK, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_diamond_mine, 0, NULL,
1704, 0x99999999, 0, 0, 3, 0, 0, 0, 4, 0, 184,
IT_BANK_TROPIC_ARCTIC, IT_INVALID, IT_INVALID, CHECK_NOTHING,
CT_DIAMONDS, 7, CT_INVALID, 0, 5,
CT_INVALID, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_EXTRACTIVE, 1 << LT_TROPIC,
INDUSTRYBEH_NONE,
STR_4813_DIAMOND_MINE, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_iron_mine, 0, NULL,
1760, 0xB3333333, 2, 0, 0, 0, 5, 0, 0, 0, 55,
IT_STEEL_MILL, IT_INVALID, IT_INVALID, CHECK_NOTHING,
CT_IRON_ORE, 10, CT_INVALID, 0, 5,
CT_INVALID, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_EXTRACTIVE, 1 << LT_TEMPERATE,
INDUSTRYBEH_NONE,
STR_4814_IRON_ORE_MINE, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_fruit_plantation, 0, NULL,
1800, 0xBFFFFFFF, 0, 0, 2, 0, 0, 0, 4, 0, 86,
IT_FOOD_PROCESS, IT_INVALID, IT_INVALID, CHECK_PLANTATION,
CT_FRUIT, 10, CT_INVALID, 0, 15,
CT_INVALID, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_ORGANIC, 1 << LT_TROPIC,
INDUSTRYBEH_NONE,
STR_4815_FRUIT_PLANTATION, STR_482E_NEW_BEING_PLANTED_NEAR,
STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4838_IMPROVED_FARMING_METHODS, STR_483A_INSECT_INFESTATION_CAUSES),
MI(_tile_table_rubber_plantation, 0, NULL,
1744, 0xBFFFFFFF, 0, 0, 3, 0, 0, 0, 4, 0, 39,
IT_FACTORY_2, IT_INVALID, IT_INVALID, CHECK_PLANTATION,
CT_RUBBER, 10, CT_INVALID, 0, 15,
CT_INVALID, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_ORGANIC, 1 << LT_TROPIC,
INDUSTRYBEH_NONE,
STR_4816_RUBBER_PLANTATION, STR_482E_NEW_BEING_PLANTED_NEAR,
STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4838_IMPROVED_FARMING_METHODS, STR_483A_INSECT_INFESTATION_CAUSES),
MI(_tile_table_water_supply, 0, NULL,
1592, 0xB3333333, 0, 0, 3, 0, 0, 0, 4, 0, 37,
IT_WATER_TOWER, IT_INVALID, IT_INVALID, CHECK_WATER,
CT_WATER, 12, CT_INVALID, 0, 5,
CT_INVALID, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_EXTRACTIVE, 1 << LT_TROPIC,
INDUSTRYBEH_NONE,
STR_4817_WATER_SUPPLY, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_water_tower, 0, NULL,
115, 0xFFFFFFFF, 0, 0, 4, 0, 0, 0, 8, 0, 208,
IT_WATER_SUPPLY, IT_INVALID, IT_INVALID, CHECK_WATER,
CT_INVALID, 0, CT_INVALID, 0, 5,
CT_WATER, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_BLACK_HOLE, 1 << LT_TROPIC,
INDUSTRYBEH_ONLY_INTOWN,
STR_4818_WATER_TOWER, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_factory2, 1, _factory_sounds,
208, 0xFFFFFFFF, 0, 0, 2, 0, 0, 0, 4, 0, 174,
IT_RUBBER_PLANTATION, IT_COPPER_MINE, IT_LUMBER_MILL, CHECK_PLANTATION,
CT_GOODS, 0, CT_INVALID, 0, 5,
CT_RUBBER, 256, CT_COPPER_ORE, 256, CT_WOOD, 256,
INDUSTRYLIFE_PROCESSING, 1 << LT_TROPIC,
INDUSTRYBEH_NONE,
STR_4819_FACTORY, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4833_SUPPLY_PROBLEMS_CAUSE_TO, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_farm2, 0, NULL,
2000, 0xD9999999, 0, 0, 1, 0, 0, 0, 2, 0, 48,
IT_FOOD_PROCESS, IT_INVALID, IT_INVALID, CHECK_PLANTATION,
CT_MAIZE, 11, CT_INVALID, 0, 5,
CT_INVALID, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_ORGANIC, 1 << LT_TROPIC,
INDUSTRYBEH_PLANT_FIELDS | INDUSTRYBEH_PLANT_ON_BUILT,
STR_481A_FARM, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4838_IMPROVED_FARMING_METHODS, STR_483A_INSECT_INFESTATION_CAUSES),
MI(_tile_table_lumber_mill, 0, NULL,
135, 0xFFFFFFFF, 0, 0, 0, 0, 0, 0, 0, 0, 194,
IT_FACTORY_2, IT_INVALID, IT_INVALID, CHECK_LUMBERMILL,
CT_WOOD, 0, CT_INVALID, 0, 5,
CT_INVALID, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_PROCESSING, 1 << LT_TROPIC,
INDUSTRYBEH_CUT_TREES,
STR_481B_LUMBER_MILL, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4834_LACK_OF_NEARBY_TREES_CAUSES, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_cotton_candy, 0, NULL,
1560, 0xBFFFFFFF, 0, 0, 0, 3, 0, 0, 0, 5, 48,
IT_CANDY_FACTORY, IT_INVALID, IT_INVALID, CHECK_NOTHING,
CT_COTTON_CANDY, 13, CT_INVALID, 0, 30,
CT_INVALID, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_ORGANIC, 1 << LT_TOYLAND,
INDUSTRYBEH_NONE,
STR_481C_COTTON_CANDY_FOREST, STR_482E_NEW_BEING_PLANTED_NEAR,
STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4838_IMPROVED_FARMING_METHODS, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_candy_factory, 0, NULL,
206, 0xFFFFFFFF, 0, 0, 0, 3, 0, 0, 0, 5, 174,
IT_COTTON_CANDY, IT_TOFFEE_QUARRY, IT_SUGAR_MINE, CHECK_NOTHING,
CT_CANDY, 0, CT_INVALID, 0, 5,
CT_SUGAR, 256, CT_TOFFEE, 256, CT_COTTON_CANDY, 256,
INDUSTRYLIFE_PROCESSING, 1 << LT_TOYLAND,
INDUSTRYBEH_NONE,
STR_481D_CANDY_FACTORY, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4833_SUPPLY_PROBLEMS_CAUSE_TO, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_battery_farm, 0, NULL,
1496, 0xB3333333, 0, 0, 0, 3, 0, 0, 0, 4, 39,
IT_TOY_FACTORY, IT_INVALID, IT_INVALID, CHECK_NOTHING,
CT_BATTERIES, 11, CT_INVALID, 0, 30,
CT_INVALID, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_ORGANIC, 1 << LT_TOYLAND,
INDUSTRYBEH_NONE,
STR_481E_BATTERY_FARM, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4838_IMPROVED_FARMING_METHODS, STR_483A_INSECT_INFESTATION_CAUSES),
MI(_tile_table_cola_wells, 0, NULL,
1544, 0x99999999, 0, 0, 0, 3, 0, 0, 0, 5, 55,
IT_FIZZY_DRINK_FACTORY, IT_INVALID, IT_INVALID, CHECK_NOTHING,
CT_COLA, 12, CT_INVALID, 0, 5,
CT_INVALID, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_EXTRACTIVE, 1 << LT_TOYLAND,
INDUSTRYBEH_NONE,
STR_481F_COLA_WELLS, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_toy_shop, 0, NULL,
133, 0xFFFFFFFF, 0, 0, 0, 3, 0, 0, 0, 4, 208,
IT_TOY_FACTORY, IT_INVALID, IT_INVALID, CHECK_NOTHING,
CT_INVALID, 0, CT_INVALID, 0, 5,
CT_TOYS, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_BLACK_HOLE, 1 << LT_TOYLAND,
INDUSTRYBEH_ONLY_NEARTOWN,
STR_4820_TOY_SHOP, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4833_SUPPLY_PROBLEMS_CAUSE_TO, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_toy_factory, 0, NULL,
163, 0xFFFFFFFF, 0, 0, 0, 3, 0, 0, 0, 5, 10,
IT_PLASTIC_FOUNTAINS, IT_BATTERY_FARM, IT_TOY_SHOP, CHECK_NOTHING,
CT_TOYS, 0, CT_INVALID, 0, 5,
CT_PLASTIC, 256, CT_BATTERIES, 256, CT_INVALID, 256,
INDUSTRYLIFE_PROCESSING, 1 << LT_TOYLAND,
INDUSTRYBEH_NONE,
STR_4821_TOY_FACTORY, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4833_SUPPLY_PROBLEMS_CAUSE_TO, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_plastic_fountain, 1, _plastic_mine_sounds,
1536, 0xA6666666, 0, 0, 0, 3, 0, 0, 0, 5, 37,
IT_TOY_FACTORY, IT_INVALID, IT_INVALID, CHECK_NOTHING,
CT_PLASTIC, 14, CT_INVALID, 0, 5,
CT_INVALID, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_EXTRACTIVE, 1 << LT_TOYLAND,
INDUSTRYBEH_NONE,
STR_4822_PLASTIC_FOUNTAINS, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_fizzy_drink, 0, NULL,
177, 0xFFFFFFFF, 0, 0, 0, 3, 0, 0, 0, 4, 184,
IT_COLA_WELLS, IT_BUBBLE_GENERATOR, IT_INVALID, CHECK_NOTHING,
CT_FIZZY_DRINKS, 0, CT_INVALID, 0, 5,
CT_COLA, 256, CT_BUBBLES, 256, CT_INVALID, 256,
INDUSTRYLIFE_PROCESSING, 1 << LT_TOYLAND,
INDUSTRYBEH_NONE,
STR_4823_FIZZY_DRINK_FACTORY, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4833_SUPPLY_PROBLEMS_CAUSE_TO, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_bubble_generator, 0, NULL,
1624, 0xB3333333, 0, 0, 0, 3, 0, 0, 0, 5, 152,
IT_FIZZY_DRINK_FACTORY, IT_INVALID, IT_INVALID, CHECK_BUBBLEGEN,
CT_BUBBLES, 13, CT_INVALID, 0, 5,
CT_INVALID, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_EXTRACTIVE, 1 << LT_TOYLAND,
INDUSTRYBEH_NONE,
STR_4824_BUBBLE_GENERATOR, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_toffee_quarry, 0, NULL,
1704, 0xCCCCCCCC, 0, 0, 0, 3, 0, 0, 0, 5, 194,
IT_CANDY_FACTORY, IT_INVALID, IT_INVALID, CHECK_NOTHING,
CT_TOFFEE, 10, CT_INVALID, 0, 5,
CT_INVALID, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_EXTRACTIVE, 1 << LT_TOYLAND,
INDUSTRYBEH_NONE,
STR_4825_TOFFEE_QUARRY, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
MI(_tile_table_sugar_mine, 0, NULL,
1680, 0xBFFFFFFF, 0, 0, 0, 2, 0, 0, 0, 4, 15,
IT_CANDY_FACTORY, IT_INVALID, IT_INVALID, CHECK_NOTHING,
CT_SUGAR, 11, CT_INVALID, 0, 5,
CT_INVALID, 256, CT_INVALID, 256, CT_INVALID, 256,
INDUSTRYLIFE_EXTRACTIVE, 1 << LT_TOYLAND,
INDUSTRYBEH_NONE,
STR_4826_SUGAR_MINE, STR_482D_NEW_UNDER_CONSTRUCTION,
STR_4832_ANNOUNCES_IMMINENT_CLOSURE, STR_4835_INCREASES_PRODUCTION, STR_4839_PRODUCTION_DOWN_BY_50),
};
#undef MI
/** Writes the properties of an industry tile into the IndustryTileSpec struct.
* @param ca1 acceptance of first cargo
* @param c1 first type of cargo accepted for this tile
* @param ca2 acceptance of second cargo
* @param c2 second cargo
* @param ca3 acceptance of third cargo
* @param c3 and third cargo. Those three are in an array
* @param s1 slope refused upon choosing a place to build
* @param a1 animation frame on production
* @param a2 next frame of animation
* @param a3 chooses between animation or construction state
*/
#define MT(ca1, c1, ca2, c2, ca3, c3, sl, a1, a2, a3) {{c1, c2, c3}, {ca1, ca2, ca3}, sl, a1, a2, a3, 0, 0xFFFF, 2, 0, 0, true, {INVALID_INDUSTRYTILE, 0, NULL, NULL, INVALID_INDUSTRYTILE}}
static const IndustryTileSpec _origin_industry_tile_specs[NEW_INDUSTRYTILEOFFSET] = {
/* Coal Mine */
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, true),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(1, CT_PASSENGERS, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Power Station */
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(1, CT_PASSENGERS, 8, CT_COAL, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Sawmill */
MT(1, CT_PASSENGERS, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(1, CT_PASSENGERS, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(1, CT_PASSENGERS, 8, CT_WOOD, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Forest Artic, temperate */
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, 17, INDUSTRYTILE_NOANIM, false), ///< Chopping forest
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, 16, false), ///< Growing forest
/* Oil refinery */
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 8, CT_OIL, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(1, CT_PASSENGERS, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Oil Rig */
MT(0, CT_INVALID, 8, CT_PASSENGERS, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 8, CT_MAIL, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Oil Wells artic, temperate and sub-tropical */
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, true ),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, true ),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, true ),
/* Farm tropic, arctic and temperate */
MT(1, CT_PASSENGERS, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(1, CT_PASSENGERS, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Factory temperate */
MT(8, CT_GRAIN, 8, CT_LIVESTOCK, 8, CT_STEEL, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(8, CT_GRAIN, 8, CT_LIVESTOCK, 8, CT_STEEL, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(8, CT_GRAIN, 8, CT_LIVESTOCK, 8, CT_STEEL, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(8, CT_GRAIN, 8, CT_LIVESTOCK, 8, CT_STEEL, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Printing works */
MT(0, CT_INVALID, 8, CT_PAPER, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 8, CT_PAPER, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 8, CT_PAPER, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 8, CT_PAPER, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Copper ore mine */
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, true ),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(1, CT_PASSENGERS, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(1, CT_PASSENGERS, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Steel mill */
MT(1, CT_PASSENGERS, 8, CT_IRON_ORE, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(1, CT_PASSENGERS, 8, CT_IRON_ORE, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(1, CT_PASSENGERS, 8, CT_IRON_ORE, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(1, CT_PASSENGERS, 8, CT_IRON_ORE, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(1, CT_PASSENGERS, 8, CT_IRON_ORE, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(1, CT_PASSENGERS, 8, CT_IRON_ORE, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Bank temperate*/
MT(1, CT_PASSENGERS, 8, CT_VALUABLES, 0, CT_INVALID, SLOPE_E, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(1, CT_PASSENGERS, 8, CT_VALUABLES, 0, CT_INVALID, SLOPE_S, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Food processing plant, tropic and arctic. CT_MAIZE or CT_WHEAT, CT_LIVESTOCK or CT_FRUIT*/
MT(8, CT_MAIZE, 8, CT_LIVESTOCK, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(8, CT_MAIZE, 8, CT_LIVESTOCK, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(8, CT_MAIZE, 8, CT_LIVESTOCK, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(8, CT_MAIZE, 8, CT_LIVESTOCK, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Paper mill */
MT(0, CT_INVALID, 8, CT_WOOD, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 8, CT_WOOD, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 8, CT_WOOD, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 8, CT_WOOD, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 8, CT_WOOD, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 8, CT_WOOD, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 8, CT_WOOD, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 8, CT_WOOD, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Gold mine */
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, true ),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Bank Sub Arctic */
MT(0, CT_INVALID, 8, CT_GOLD, 0, CT_INVALID, SLOPE_E, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 8, CT_GOLD, 0, CT_INVALID, SLOPE_S, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Diamond mine */
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Iron ore Mine */
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Fruit plantation */
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Rubber plantation */
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Water supply */
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Water tower */
MT(0, CT_INVALID, 8, CT_WATER, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Factory (sub-tropical) */
MT(8, CT_COPPER_ORE, 8, CT_RUBBER, 8, CT_WOOD, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(8, CT_COPPER_ORE, 8, CT_RUBBER, 8, CT_WOOD, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(8, CT_COPPER_ORE, 8, CT_RUBBER, 8, CT_WOOD, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(8, CT_COPPER_ORE, 8, CT_RUBBER, 8, CT_WOOD, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Lumber mill */
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Candyfloss forest */
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, 130, INDUSTRYTILE_NOANIM, false), ///< Chopping candyfloss
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, 129, false), ///< Growing candyfloss
/* Sweet factory */
MT(8, CT_COTTON_CANDY, 8, CT_TOFFEE, 8, CT_SUGAR, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(8, CT_COTTON_CANDY, 8, CT_TOFFEE, 8, CT_SUGAR, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(8, CT_COTTON_CANDY, 8, CT_TOFFEE, 8, CT_SUGAR, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(8, CT_COTTON_CANDY, 8, CT_TOFFEE, 8, CT_SUGAR, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Battery farm */
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, 136, INDUSTRYTILE_NOANIM, false), ///< Reaping batteries
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, 135, false), ///< Growing batteries
/* Cola wells */
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Toy shop */
MT(0, CT_INVALID, 8, CT_TOYS, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 8, CT_TOYS, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 8, CT_TOYS, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 8, CT_TOYS, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Toy factory */
MT(8, CT_BATTERIES, 8, CT_PLASTIC, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(8, CT_BATTERIES, 8, CT_PLASTIC, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(8, CT_BATTERIES, 8, CT_PLASTIC, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(8, CT_BATTERIES, 8, CT_PLASTIC, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(8, CT_BATTERIES, 8, CT_PLASTIC, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(8, CT_BATTERIES, 8, CT_PLASTIC, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Plastic Fountain */
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Fizzy drink factory */
MT(8, CT_BUBBLES, 8, CT_COLA, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(8, CT_BUBBLES, 8, CT_COLA, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(8, CT_BUBBLES, 8, CT_COLA, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(8, CT_BUBBLES, 8, CT_COLA, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Bubble generator */
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Toffee quarry */
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
/* Sugar mine */
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
MT(0, CT_INVALID, 0, CT_INVALID, 0, CT_INVALID, SLOPE_STEEP, INDUSTRYTILE_NOANIM, INDUSTRYTILE_NOANIM, false),
};
#undef MT
#endif /* BUILD_INDUSTRY_H */
| 70,118
|
C++
|
.h
| 1,645
| 40.08693
| 188
| 0.602656
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,639
|
engines.h
|
EnergeticBark_OpenTTD-3DS/src/table/engines.h
|
/* $Id$ */
/** @file table/engines.h
* This file contains all the data for vehicles
*/
#ifndef ENGINES_H
#define ENGINES_H
enum {
RC_W = 0xFF, ///< Running cost price index (out of range) of wagons
RC_S = 0x2A, ///< Running cost price index of steam
RC_D = 0x2B, ///< Running cost price index of diesel
RC_E = 0x2C, ///< Running cost price index of electric
RC_R = 0x2E, ///< Running cost price index of road vehicles
};
/** Writes the properties of a train or road vehicle into the EngineInfo struct.
* @see EngineInfo
* @param a Introduction date
* @param b decay speed
* @param c life length
* @param d base life
* @param e Bitmask of the climates
* @note the 0x80 in parameter b sets the "is carriage bit"
* @note the 5 between d and e is the load amount
*/
#define MK(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 5, e, 0, 8, 0, 0, 0, STR_EMPTY }
/** Writes the properties of a train carriage into the EngineInfo struct.
* @param a Introduction date
* @param b decay speed
* @param c life length
* @param d base life
* @param e Bitmask of the climates
* @see MK
* @note the 5 between d and e is the load amount
*/
#define MW(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 5, e, 0, 8, 0, 0, 0, STR_EMPTY }
/** Writes the properties of a ship into the EngineInfo struct.
* @param a Introduction date
* @param b decay speed
* @param c life length
* @param d base life
* @param e Bitmask of the climates
* @see MK
* @note the 10 between d and e is the load amount
*/
#define MS(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 10, e, 0, 8, 0, 0, 0, STR_EMPTY }
/** Writes the properties of an aeroplane into the EngineInfo struct.
* @param a Introduction date
* @param b decay speed
* @param c life length
* @param d base life
* @param e Bitmask of the climates
* @see MK
* @note the 20 between d and e is the load amount
*/
#define MA(a, b, c, d, e) { DAYS_TILL_ORIGINAL_BASE_YEAR + a, c, d, b, 20, e, 0, 8, 0, 0, 0, STR_EMPTY }
/* Climates
* T = Temperate
* A = Arctic
* S = Sub-Tropic
* Y = Toyland */
#define T 1
#define A 2
#define S 4
#define Y 8
static const EngineInfo _orig_engine_info[] = {
MK( 1827, 20, 15, 30, T ), // 0 Kirby Paul Tank (Steam)
MK( 12784, 20, 22, 30, A|S ), // 1 MJS 250 (Diesel)
MK( 9497, 20, 20, 50, Y), // 2 Ploddyphut Choo-Choo
MK( 11688, 20, 20, 30, Y), // 3 Powernaut Choo-Choo
MK( 16802, 20, 20, 30, Y), // 4 Mightymover Choo-Choo
MK( 18993, 20, 20, 30, Y), // 5 Ploddyphut Diesel
MK( 20820, 20, 20, 30, Y), // 6 Powernaut Diesel
MK( 8766, 20, 20, 30, A|S ), // 7 Wills 2-8-0 (Steam)
MK( 5114, 20, 21, 30, T ), // 8 Chaney 'Jubilee' (Steam)
MK( 5479, 20, 20, 30, T ), // 9 Ginzu 'A4' (Steam)
MK( 12419, 20, 23, 25, T ), // 10 SH '8P' (Steam)
MK( 13149, 20, 12, 30, T ), // 11 Manley-Morel DMU (Diesel)
MK( 23376, 20, 15, 35, T ), // 12 'Dash' (Diesel)
MK( 14976, 20, 18, 28, T ), // 13 SH/Hendry '25' (Diesel)
MK( 14245, 20, 20, 30, T ), // 14 UU '37' (Diesel)
MK( 15341, 20, 22, 33, T ), // 15 Floss '47' (Diesel)
MK( 14976, 20, 20, 25, A|S ), // 16 CS 4000 (Diesel)
MK( 16437, 20, 20, 30, A|S ), // 17 CS 2400 (Diesel)
MK( 18993, 20, 22, 30, A|S ), // 18 Centennial (Diesel)
MK( 13880, 20, 22, 30, A|S ), // 19 Kelling 3100 (Diesel)
MK( 20454, 20, 22, 30, A|S ), // 20 Turner Turbo (Diesel)
MK( 16071, 20, 22, 30, A|S ), // 21 MJS 1000 (Diesel)
MK( 20820, 20, 20, 25, T ), // 22 SH '125' (Diesel)
MK( 16437, 20, 23, 30, T ), // 23 SH '30' (Electric)
MK( 19359, 20, 23, 80, T ), // 24 SH '40' (Electric)
MK( 23376, 20, 25, 30, T ), // 25 'T.I.M.' (Electric)
MK( 26298, 20, 25, 50, T ), // 26 'AsiaStar' (Electric)
MW( 1827, 20, 20, 50, T|A|S|Y), // 27 Passenger Carriage
MW( 1827, 20, 20, 50, T|A|S|Y), // 28 Mail Van
MW( 1827, 20, 20, 50, T|A ), // 29 Coal Truck
MW( 1827, 20, 20, 50, T|A|S ), // 30 Oil Tanker
MW( 1827, 20, 20, 50, T|A ), // 31 Livestock Van
MW( 1827, 20, 20, 50, T|A|S ), // 32 Goods Van
MW( 1827, 20, 20, 50, T|A|S ), // 33 Grain Hopper
MW( 1827, 20, 20, 50, T|A|S ), // 34 Wood Truck
MW( 1827, 20, 20, 50, T ), // 35 Iron Ore Hopper
MW( 1827, 20, 20, 50, T ), // 36 Steel Truck
MW( 1827, 20, 20, 50, T|A|S ), // 37 Armoured Van
MW( 1827, 20, 20, 50, A|S ), // 38 Food Van
MW( 1827, 20, 20, 50, A ), // 39 Paper Truck
MW( 1827, 20, 20, 50, S ), // 40 Copper Ore Hopper
MW( 1827, 20, 20, 50, S ), // 41 Water Tanker
MW( 1827, 20, 20, 50, S ), // 42 Fruit Truck
MW( 1827, 20, 20, 50, S ), // 43 Rubber Truck
MW( 1827, 20, 20, 50, Y), // 44 Sugar Truck
MW( 1827, 20, 20, 50, Y), // 45 Candyfloss Hopper
MW( 1827, 20, 20, 50, Y), // 46 Toffee Hopper
MW( 1827, 20, 20, 50, Y), // 47 Bubble Van
MW( 1827, 20, 20, 50, Y), // 48 Cola Tanker
MW( 1827, 20, 20, 50, Y), // 49 Sweet Van
MW( 1827, 20, 20, 50, Y), // 50 Toy Van
MW( 1827, 20, 20, 50, Y), // 51 Battery Truck
MW( 1827, 20, 20, 50, Y), // 52 Fizzy Drink Truck
MW( 1827, 20, 20, 50, Y), // 53 Plastic Truck
MK( 28490, 20, 20, 50, T|A|S ), // 54 'X2001' (Electric)
MK( 31047, 20, 20, 50, T|A|S ), // 55 'Millennium Z1' (Electric)
MK( 28855, 20, 20, 50, Y), // 56 Wizzowow Z99
MW( 1827, 20, 20, 50, T|A|S|Y), // 57 Passenger Carriage
MW( 1827, 20, 20, 50, T|A|S|Y), // 58 Mail Van
MW( 1827, 20, 20, 50, T|A ), // 59 Coal Truck
MW( 1827, 20, 20, 50, T|A|S ), // 60 Oil Tanker
MW( 1827, 20, 20, 50, T|A ), // 61 Livestock Van
MW( 1827, 20, 20, 50, T|A|S ), // 62 Goods Van
MW( 1827, 20, 20, 50, T|A|S ), // 63 Grain Hopper
MW( 1827, 20, 20, 50, T|A|S ), // 64 Wood Truck
MW( 1827, 20, 20, 50, T ), // 65 Iron Ore Hopper
MW( 1827, 20, 20, 50, T ), // 66 Steel Truck
MW( 1827, 20, 20, 50, T|A|S ), // 67 Armoured Van
MW( 1827, 20, 20, 50, A|S ), // 68 Food Van
MW( 1827, 20, 20, 50, A ), // 69 Paper Truck
MW( 1827, 20, 20, 50, S ), // 70 Copper Ore Hopper
MW( 1827, 20, 20, 50, S ), // 71 Water Tanker
MW( 1827, 20, 20, 50, S ), // 72 Fruit Truck
MW( 1827, 20, 20, 50, S ), // 73 Rubber Truck
MW( 1827, 20, 20, 50, Y), // 74 Sugar Truck
MW( 1827, 20, 20, 50, Y), // 75 Candyfloss Hopper
MW( 1827, 20, 20, 50, Y), // 76 Toffee Hopper
MW( 1827, 20, 20, 50, Y), // 77 Bubble Van
MW( 1827, 20, 20, 50, Y), // 78 Cola Tanker
MW( 1827, 20, 20, 50, Y), // 79 Sweet Van
MW( 1827, 20, 20, 50, Y), // 80 Toy Van
MW( 1827, 20, 20, 50, Y), // 81 Battery Truck
MW( 1827, 20, 20, 50, Y), // 82 Fizzy Drink Truck
MW( 1827, 20, 20, 50, Y), // 83 Plastic Truck
MK( 36525, 20, 20, 50, T|A|S ), // 84 Lev1 'Leviathan' (Electric)
MK( 39447, 20, 20, 50, T|A|S ), // 85 Lev2 'Cyclops' (Electric)
MK( 42004, 20, 20, 50, T|A|S ), // 86 Lev3 'Pegasus' (Electric)
MK( 42735, 20, 20, 50, T|A|S ), // 87 Lev4 'Chimaera' (Electric)
MK( 36891, 20, 20, 60, Y), // 88 Wizzowow Rocketeer
MW( 1827, 20, 20, 50, T|A|S|Y), // 89 Passenger Carriage
MW( 1827, 20, 20, 50, T|A|S|Y), // 90 Mail Van
MW( 1827, 20, 20, 50, T|A ), // 91 Coal Truck
MW( 1827, 20, 20, 50, T|A|S ), // 92 Oil Tanker
MW( 1827, 20, 20, 50, T|A ), // 93 Livestock Van
MW( 1827, 20, 20, 50, T|A|S ), // 94 Goods Van
MW( 1827, 20, 20, 50, T|A|S ), // 95 Grain Hopper
MW( 1827, 20, 20, 50, T|A|S ), // 96 Wood Truck
MW( 1827, 20, 20, 50, T ), // 97 Iron Ore Hopper
MW( 1827, 20, 20, 50, T ), // 98 Steel Truck
MW( 1827, 20, 20, 50, T|A|S ), // 99 Armoured Van
MW( 1827, 20, 20, 50, A|S ), // 100 Food Van
MW( 1827, 20, 20, 50, A ), // 101 Paper Truck
MW( 1827, 20, 20, 50, S ), // 102 Copper Ore Hopper
MW( 1827, 20, 20, 50, S ), // 103 Water Tanker
MW( 1827, 20, 20, 50, S ), // 104 Fruit Truck
MW( 1827, 20, 20, 50, S ), // 105 Rubber Truck
MW( 1827, 20, 20, 50, Y), // 106 Sugar Truck
MW( 1827, 20, 20, 50, Y), // 107 Candyfloss Hopper
MW( 1827, 20, 20, 50, Y), // 108 Toffee Hopper
MW( 1827, 20, 20, 50, Y), // 109 Bubble Van
MW( 1827, 20, 20, 50, Y), // 110 Cola Tanker
MW( 1827, 20, 20, 50, Y), // 111 Sweet Van
MW( 1827, 20, 20, 50, Y), // 112 Toy Van
MW( 1827, 20, 20, 50, Y), // 113 Battery Truck
MW( 1827, 20, 20, 50, Y), // 114 Fizzy Drink Truck
MW( 1827, 20, 20, 50, Y), // 115 Plastic Truck
MK( 3378, 20, 12, 40, T|A|S ), // 116 MPS Regal Bus
MK( 16071, 20, 15, 30, T|A|S ), // 117 Hereford Leopard Bus
MK( 24107, 20, 15, 40, T|A|S ), // 118 Foster Bus
MK( 32142, 20, 15, 80, T|A|S ), // 119 Foster MkII Superbus
MK( 9132, 20, 15, 40, Y), // 120 Ploddyphut MkI Bus
MK( 18993, 20, 15, 40, Y), // 121 Ploddyphut MkII Bus
MK( 32873, 20, 15, 80, Y), // 122 Ploddyphut MkIII Bus
MK( 5479, 20, 15, 55, T|A ), // 123 Balogh Coal Truck
MK( 20089, 20, 15, 55, T|A ), // 124 Uhl Coal Truck
MK( 33969, 20, 15, 85, T|A ), // 125 DW Coal Truck
MK( 5479, 20, 15, 55, T|A|S ), // 126 MPS Mail Truck
MK( 21550, 20, 15, 55, T|A|S ), // 127 Reynard Mail Truck
MK( 35795, 20, 15, 85, T|A|S ), // 128 Perry Mail Truck
MK( 5479, 20, 15, 55, Y), // 129 MightyMover Mail Truck
MK( 21550, 20, 15, 55, Y), // 130 Powernaught Mail Truck
MK( 35795, 20, 15, 85, Y), // 131 Wizzowow Mail Truck
MK( 5479, 20, 15, 55, T|A|S ), // 132 Witcombe Oil Tanker
MK( 19359, 20, 15, 55, T|A|S ), // 133 Foster Oil Tanker
MK( 31047, 20, 15, 85, T|A|S ), // 134 Perry Oil Tanker
MK( 5479, 20, 15, 55, T|A ), // 135 Talbott Livestock Van
MK( 21915, 20, 15, 55, T|A ), // 136 Uhl Livestock Van
MK( 37256, 20, 15, 85, T|A ), // 137 Foster Livestock Van
MK( 5479, 20, 15, 55, T|A|S ), // 138 Balogh Goods Truck
MK( 19724, 20, 15, 55, T|A|S ), // 139 Craighead Goods Truck
MK( 31047, 20, 15, 85, T|A|S ), // 140 Goss Goods Truck
MK( 5479, 20, 15, 55, T|A|S ), // 141 Hereford Grain Truck
MK( 21185, 20, 15, 55, T|A|S ), // 142 Thomas Grain Truck
MK( 32873, 20, 15, 85, T|A|S ), // 143 Goss Grain Truck
MK( 5479, 20, 15, 55, T|A|S ), // 144 Witcombe Wood Truck
MK( 19724, 20, 15, 55, T|A|S ), // 145 Foster Wood Truck
MK( 35430, 20, 15, 85, T|A|S ), // 146 Moreland Wood Truck
MK( 5479, 20, 15, 55, T ), // 147 MPS Iron Ore Truck
MK( 20820, 20, 15, 55, T ), // 148 Uhl Iron Ore Truck
MK( 33238, 20, 15, 85, T ), // 149 Chippy Iron Ore Truck
MK( 5479, 20, 15, 55, T ), // 150 Balogh Steel Truck
MK( 21185, 20, 15, 55, T ), // 151 Uhl Steel Truck
MK( 31777, 20, 15, 85, T ), // 152 Kelling Steel Truck
MK( 5479, 20, 15, 55, T|A|S ), // 153 Balogh Armoured Truck
MK( 22281, 20, 15, 55, T|A|S ), // 154 Uhl Armoured Truck
MK( 33603, 20, 15, 85, T|A|S ), // 155 Foster Armoured Truck
MK( 5479, 20, 15, 55, A|S ), // 156 Foster Food Van
MK( 18628, 20, 15, 55, A|S ), // 157 Perry Food Van
MK( 30681, 20, 15, 85, A|S ), // 158 Chippy Food Van
MK( 5479, 20, 15, 55, A ), // 159 Uhl Paper Truck
MK( 21185, 20, 15, 55, A ), // 160 Balogh Paper Truck
MK( 31777, 20, 15, 85, A ), // 161 MPS Paper Truck
MK( 5479, 20, 15, 55, S ), // 162 MPS Copper Ore Truck
MK( 20820, 20, 15, 55, S ), // 163 Uhl Copper Ore Truck
MK( 33238, 20, 15, 85, S ), // 164 Goss Copper Ore Truck
MK( 5479, 20, 15, 55, S ), // 165 Uhl Water Tanker
MK( 20970, 20, 15, 55, S ), // 166 Balogh Water Tanker
MK( 33388, 20, 15, 85, S ), // 167 MPS Water Tanker
MK( 5479, 20, 15, 55, S ), // 168 Balogh Fruit Truck
MK( 21335, 20, 15, 55, S ), // 169 Uhl Fruit Truck
MK( 33753, 20, 15, 85, S ), // 170 Kelling Fruit Truck
MK( 5479, 20, 15, 55, S ), // 171 Balogh Rubber Truck
MK( 20604, 20, 15, 55, S ), // 172 Uhl Rubber Truck
MK( 33023, 20, 15, 85, S ), // 173 RMT Rubber Truck
MK( 5479, 20, 15, 55, Y), // 174 MightyMover Sugar Truck
MK( 19724, 20, 15, 55, Y), // 175 Powernaught Sugar Truck
MK( 33238, 20, 15, 85, Y), // 176 Wizzowow Sugar Truck
MK( 5479, 20, 15, 55, Y), // 177 MightyMover Cola Truck
MK( 20089, 20, 15, 55, Y), // 178 Powernaught Cola Truck
MK( 33603, 20, 15, 85, Y), // 179 Wizzowow Cola Truck
MK( 5479, 20, 15, 55, Y), // 180 MightyMover Candyfloss Truck
MK( 20454, 20, 15, 55, Y), // 181 Powernaught Candyfloss Truck
MK( 33969, 20, 15, 85, Y), // 182 Wizzowow Candyfloss Truck
MK( 5479, 20, 15, 55, Y), // 183 MightyMover Toffee Truck
MK( 20820, 20, 15, 55, Y), // 184 Powernaught Toffee Truck
MK( 34334, 20, 15, 85, Y), // 185 Wizzowow Toffee Truck
MK( 5479, 20, 15, 55, Y), // 186 MightyMover Toy Van
MK( 21185, 20, 15, 55, Y), // 187 Powernaught Toy Van
MK( 34699, 20, 15, 85, Y), // 188 Wizzowow Toy Van
MK( 5479, 20, 15, 55, Y), // 189 MightyMover Sweet Truck
MK( 21550, 20, 15, 55, Y), // 190 Powernaught Sweet Truck
MK( 35064, 20, 15, 85, Y), // 191 Wizzowow Sweet Truck
MK( 5479, 20, 15, 55, Y), // 192 MightyMover Battery Truck
MK( 19874, 20, 15, 55, Y), // 193 Powernaught Battery Truck
MK( 35430, 20, 15, 85, Y), // 194 Wizzowow Battery Truck
MK( 5479, 20, 15, 55, Y), // 195 MightyMover Fizzy Drink Truck
MK( 20239, 20, 15, 55, Y), // 196 Powernaught Fizzy Drink Truck
MK( 35795, 20, 15, 85, Y), // 197 Wizzowow Fizzy Drink Truck
MK( 5479, 20, 15, 55, Y), // 198 MightyMover Plastic Truck
MK( 20604, 20, 15, 55, Y), // 199 Powernaught Plastic Truck
MK( 32873, 20, 15, 85, Y), // 200 Wizzowow Plastic Truck
MK( 5479, 20, 15, 55, Y), // 201 MightyMover Bubble Truck
MK( 20970, 20, 15, 55, Y), // 202 Powernaught Bubble Truck
MK( 33023, 20, 15, 85, Y), // 203 Wizzowow Bubble Truck
MS( 2922, 5, 30, 50, T|A|S ), // 204 MPS Oil Tanker
MS( 17167, 5, 30, 90, T|A|S ), // 205 CS-Inc. Oil Tanker
MS( 2192, 5, 30, 55, T|A|S ), // 206 MPS Passenger Ferry
MS( 18628, 5, 30, 90, T|A|S ), // 207 FFP Passenger Ferry
MS( 17257, 10, 25, 90, T|A|S ), // 208 Bakewell 300 Hovercraft
MS( 9587, 5, 30, 40, Y), // 209 Chugger-Chug Passenger Ferry
MS( 20544, 5, 30, 90, Y), // 210 Shivershake Passenger Ferry
MS( 2557, 5, 30, 55, T|A|S ), // 211 Yate Cargo ship
MS( 19724, 5, 30, 98, T|A|S ), // 212 Bakewell Cargo ship
MS( 9587, 5, 30, 45, Y), // 213 Mightymover Cargo ship
MS( 22371, 5, 30, 90, Y), // 214 Powernaut Cargo ship
MA( 2922, 20, 20, 20, T|A|S ), // 215 Sampson U52
MA( 9922, 20, 24, 20, T|A|S ), // 216 Coleman Count
MA( 12659, 20, 18, 20, T|A|S ), // 217 FFP Dart
MA( 17652, 20, 25, 35, T|A|S ), // 218 Yate Haugan
MA( 4929, 20, 30, 30, T|A|S ), // 219 Bakewell Cotswald LB-3
MA( 13695, 20, 23, 25, T|A|S ), // 220 Bakewell Luckett LB-8
MA( 16341, 20, 26, 30, T|A|S ), // 221 Bakewell Luckett LB-9
MA( 21395, 20, 25, 30, T|A|S ), // 222 Bakewell Luckett LB80
MA( 18263, 20, 20, 30, T|A|S ), // 223 Bakewell Luckett LB-10
MA( 25233, 20, 25, 30, T|A|S ), // 224 Bakewell Luckett LB-11
MA( 15371, 20, 22, 25, T|A|S ), // 225 Yate Aerospace YAC 1-11
MA( 15461, 20, 25, 25, T|A|S ), // 226 Darwin 100
MA( 16952, 20, 22, 25, T|A|S ), // 227 Darwin 200
MA( 17227, 20, 25, 30, T|A|S ), // 228 Darwin 300
MA( 22371, 20, 25, 35, T|A|S ), // 229 Darwin 400
MA( 22341, 20, 25, 30, T|A|S ), // 230 Darwin 500
MA( 27209, 20, 25, 30, T|A|S ), // 231 Darwin 600
MA( 17988, 20, 20, 30, T|A|S ), // 232 Guru Galaxy
MA( 18993, 20, 24, 35, T|A|S ), // 233 Airtaxi A21
MA( 22401, 20, 24, 30, T|A|S ), // 234 Airtaxi A31
MA( 24472, 20, 24, 30, T|A|S ), // 235 Airtaxi A32
MA( 26724, 20, 24, 30, T|A|S ), // 236 Airtaxi A33
MA( 22005, 20, 25, 30, T|A|S ), // 237 Yate Aerospace YAe46
MA( 24107, 20, 20, 35, T|A|S ), // 238 Dinger 100
MA( 29310, 20, 25, 60, T|A|S ), // 239 AirTaxi A34-1000
MA( 35520, 20, 22, 30, T|A|S ), // 240 Yate Z-Shuttle
MA( 36981, 20, 22, 30, T|A|S ), // 241 Kelling K1
MA( 38807, 20, 22, 50, T|A|S ), // 242 Kelling K6
MA( 42094, 20, 25, 30, T|A|S ), // 243 Kelling K7
MA( 44651, 20, 23, 30, T|A|S ), // 244 Darwin 700
MA( 40268, 20, 25, 30, T|A|S ), // 245 FFP Hyperdart 2
MA( 33693, 20, 25, 50, T|A|S ), // 246 Dinger 200
MA( 32963, 20, 20, 60, T|A|S ), // 247 Dinger 1000
MA( 9222, 20, 20, 35, Y), // 248 Ploddyphut 100
MA( 12874, 20, 20, 35, Y), // 249 Ploddyphut 500
MA( 16892, 20, 20, 35, Y), // 250 Flashbang X1
MA( 21275, 20, 20, 99, Y), // 251 Juggerplane M1
MA( 23832, 20, 20, 99, Y), // 252 Flashbang Wizzer
MA( 13575, 20, 20, 40, T|A|S ), // 253 Tricario Helicopter
MA( 28215, 20, 20, 30, T|A|S ), // 254 Guru X2 Helicopter
MK( 13575, 20, 20, 99, Y), // 255
};
#undef Y
#undef S
#undef A
#undef T
#undef MK
#undef MW
#undef MS
#undef MA
/** Writes the properties of a rail vehicle into the RailVehicleInfo struct.
* @see RailVehicleInfo
* @param a image_index
* @param b flags
* @param c base_cost
* @param d max_speed (kph)
* @param e power (hp)
* @param f weight
* @param g running_cost
* @param h running_cost_class
* @param i capacity
* @param j cargo_type
* @param k ai_rank
* @param l railtype
* @param m engclass
* Tractive effort coefficient by default is the same as TTDPatch, 0.30*256=76
*/
#define RVI(a, b, c, d, e, f, g, h, i, j, k, l, m) { a, b, c, {l}, d, e, f, g, h, m, i, j, k, 0, 0, 0, 0, 0, 76, 0 }
#define M RAILVEH_MULTIHEAD
#define W RAILVEH_WAGON
#define G RAILVEH_SINGLEHEAD
#define S EC_STEAM
#define D EC_DIESEL
#define E EC_ELECTRIC
#define N EC_MONORAIL
#define V EC_MAGLEV
/* Wagons always have engine type 0, i.e. steam. */
#define A EC_STEAM
#define R RAILTYPE_RAIL
#define C RAILTYPE_ELECTRIC
#define O RAILTYPE_MONO
#define L RAILTYPE_MAGLEV
static const RailVehicleInfo _orig_rail_vehicle_info[] = {
/* image_index max_speed (kph) running_cost ai_rank
* | flags | power (hp) | running_cost_class | railtype
* | | base_cost | weight | | capacity | |
* | | | | | | | | | cargo_type | | engclass
* | | | | | | | | | | | | | */
RVI( 2, G, 7, 64, 300, 47, 50, RC_S, 0, 0 , 1, R, S), // 0
RVI(19, G, 8, 80, 600, 65, 65, RC_D, 0, 0 , 4, R, D), // 1
RVI( 2, G, 10, 72, 400, 85, 90, RC_S, 0, 0 , 7, R, S), // 2
RVI( 0, G, 15, 96, 900, 130, 130, RC_S, 0, 0 , 19, R, S), // 3
RVI( 1, G, 19, 112, 1000, 140, 145, RC_S, 0, 0 , 20, R, S), // 4
RVI(12, G, 16, 120, 1400, 95, 125, RC_D, 0, 0 , 30, R, D), // 5
RVI(14, G, 20, 152, 2000, 120, 135, RC_D, 0, 0 , 31, R, D), // 6
RVI( 3, G, 14, 88, 1100, 145, 130, RC_S, 0, 0 , 19, R, S), // 7
RVI( 0, G, 13, 112, 1000, 131, 120, RC_S, 0, 0 , 20, R, S), // 8
RVI( 1, G, 19, 128, 1200, 162, 140, RC_S, 0, 0 , 21, R, S), // 9
RVI( 0, G, 22, 144, 1600, 170, 130, RC_S, 0, 0 , 22, R, S), // 10
RVI( 8, M, 11, 112, 600, 32, 85, RC_D, 38, CT_PASSENGERS , 10, R, D), // 11
RVI(10, M, 14, 120, 700, 38, 70, RC_D, 40, CT_PASSENGERS , 11, R, D), // 12
RVI( 4, G, 15, 128, 1250, 72, 95, RC_D, 0, 0 , 30, R, D), // 13
RVI( 5, G, 17, 144, 1750, 101, 120, RC_D, 0, 0 , 31, R, D), // 14
RVI( 4, G, 18, 160, 2580, 112, 140, RC_D, 0, 0 , 32, R, D), // 15
RVI(14, G, 23, 96, 4000, 150, 135, RC_D, 0, 0 , 33, R, D), // 16
RVI(12, G, 16, 112, 2400, 120, 105, RC_D, 0, 0 , 34, R, D), // 17
RVI(13, G, 30, 112, 6600, 207, 155, RC_D, 0, 0 , 35, R, D), // 18
RVI(15, G, 18, 104, 1500, 110, 105, RC_D, 0, 0 , 29, R, D), // 19
RVI(16, M, 35, 160, 3500, 95, 205, RC_D, 0, 0 , 45, R, D), // 20
RVI(18, G, 21, 104, 2200, 120, 145, RC_D, 0, 0 , 32, R, D), // 21
RVI( 6, M, 20, 200, 4500, 70, 190, RC_D, 4, CT_MAIL , 50, R, D), // 22
RVI(20, G, 26, 160, 3600, 84, 180, RC_E, 0, 0 , 40, C, E), // 23
RVI(20, G, 30, 176, 5000, 82, 205, RC_E, 0, 0 , 41, C, E), // 24
RVI(21, M, 40, 240, 7000, 90, 240, RC_E, 0, 0 , 51, C, E), // 25
RVI(23, M, 43, 264, 8000, 95, 250, RC_E, 0, 0 , 52, C, E), // 26
RVI(33, W, 247, 0, 0, 25, 0, RC_W, 40, CT_PASSENGERS , 0, R, A), // 27
RVI(35, W, 228, 0, 0, 21, 0, RC_W, 30, CT_MAIL , 0, R, A), // 28
RVI(34, W, 176, 0, 0, 18, 0, RC_W, 30, CT_COAL , 0, R, A), // 29
RVI(36, W, 200, 0, 0, 24, 0, RC_W, 30, CT_OIL , 0, R, A), // 30
RVI(37, W, 192, 0, 0, 20, 0, RC_W, 25, CT_LIVESTOCK , 0, R, A), // 31
RVI(38, W, 190, 0, 0, 21, 0, RC_W, 25, CT_GOODS , 0, R, A), // 32
RVI(39, W, 182, 0, 0, 19, 0, RC_W, 30, CT_GRAIN , 0, R, A), // 33
RVI(40, W, 181, 0, 0, 16, 0, RC_W, 30, CT_WOOD , 0, R, A), // 34
RVI(41, W, 179, 0, 0, 19, 0, RC_W, 30, CT_IRON_ORE , 0, R, A), // 35
RVI(42, W, 196, 0, 0, 18, 0, RC_W, 20, CT_STEEL , 0, R, A), // 36
RVI(43, W, 255, 0, 0, 30, 0, RC_W, 20, CT_VALUABLES , 0, R, A), // 37
RVI(44, W, 191, 0, 0, 22, 0, RC_W, 25, CT_FOOD , 0, R, A), // 38
RVI(45, W, 196, 0, 0, 18, 0, RC_W, 20, CT_PAPER , 0, R, A), // 39
RVI(46, W, 179, 0, 0, 19, 0, RC_W, 30, CT_COPPER_ORE , 0, R, A), // 40
RVI(47, W, 199, 0, 0, 25, 0, RC_W, 25, CT_WATER , 0, R, A), // 41
RVI(48, W, 182, 0, 0, 18, 0, RC_W, 25, CT_FRUIT , 0, R, A), // 42
RVI(49, W, 185, 0, 0, 19, 0, RC_W, 21, CT_RUBBER , 0, R, A), // 43
RVI(50, W, 176, 0, 0, 19, 0, RC_W, 30, CT_SUGAR , 0, R, A), // 44
RVI(51, W, 178, 0, 0, 20, 0, RC_W, 30, CT_COTTON_CANDY, 0, R, A), // 45
RVI(52, W, 192, 0, 0, 20, 0, RC_W, 30, CT_TOFFEE , 0, R, A), // 46
RVI(53, W, 190, 0, 0, 21, 0, RC_W, 20, CT_BUBBLES , 0, R, A), // 47
RVI(54, W, 182, 0, 0, 24, 0, RC_W, 25, CT_COLA , 0, R, A), // 48
RVI(55, W, 181, 0, 0, 21, 0, RC_W, 25, CT_CANDY , 0, R, A), // 49
RVI(56, W, 183, 0, 0, 21, 0, RC_W, 20, CT_TOYS , 0, R, A), // 50
RVI(57, W, 196, 0, 0, 18, 0, RC_W, 22, CT_BATTERIES , 0, R, A), // 51
RVI(58, W, 193, 0, 0, 18, 0, RC_W, 25, CT_FIZZY_DRINKS, 0, R, A), // 52
RVI(59, W, 191, 0, 0, 18, 0, RC_W, 30, CT_PLASTIC , 0, R, A), // 53
RVI(25, G, 52, 304, 9000, 95, 230, RC_E, 0, 0 , 60, O, N), // 54
RVI(26, M, 60, 336, 10000, 85, 240, RC_E, 25, CT_PASSENGERS , 62, O, N), // 55
RVI(26, G, 53, 320, 5000, 95, 230, RC_E, 0, 0 , 63, O, N), // 56
RVI(60, W, 247, 0, 0, 25, 0, RC_W, 45, CT_PASSENGERS , 0, O, A), // 57
RVI(62, W, 228, 0, 0, 21, 0, RC_W, 35, CT_MAIL , 0, O, A), // 58
RVI(61, W, 176, 0, 0, 18, 0, RC_W, 35, CT_COAL , 0, O, A), // 59
RVI(63, W, 200, 0, 0, 24, 0, RC_W, 35, CT_OIL , 0, O, A), // 60
RVI(64, W, 192, 0, 0, 20, 0, RC_W, 30, CT_LIVESTOCK , 0, O, A), // 61
RVI(65, W, 190, 0, 0, 21, 0, RC_W, 30, CT_GOODS , 0, O, A), // 62
RVI(66, W, 182, 0, 0, 19, 0, RC_W, 35, CT_GRAIN , 0, O, A), // 63
RVI(67, W, 181, 0, 0, 16, 0, RC_W, 35, CT_WOOD , 0, O, A), // 64
RVI(68, W, 179, 0, 0, 19, 0, RC_W, 35, CT_IRON_ORE , 0, O, A), // 65
RVI(69, W, 196, 0, 0, 18, 0, RC_W, 25, CT_STEEL , 0, O, A), // 66
RVI(70, W, 255, 0, 0, 30, 0, RC_W, 25, CT_VALUABLES , 0, O, A), // 67
RVI(71, W, 191, 0, 0, 22, 0, RC_W, 30, CT_FOOD , 0, O, A), // 68
RVI(72, W, 196, 0, 0, 18, 0, RC_W, 25, CT_PAPER , 0, O, A), // 69
RVI(73, W, 179, 0, 0, 19, 0, RC_W, 35, CT_COPPER_ORE , 0, O, A), // 70
RVI(47, W, 199, 0, 0, 25, 0, RC_W, 30, CT_WATER , 0, O, A), // 71
RVI(48, W, 182, 0, 0, 18, 0, RC_W, 30, CT_FRUIT , 0, O, A), // 72
RVI(49, W, 185, 0, 0, 19, 0, RC_W, 26, CT_RUBBER , 0, O, A), // 73
RVI(50, W, 176, 0, 0, 19, 0, RC_W, 35, CT_SUGAR , 0, O, A), // 74
RVI(51, W, 178, 0, 0, 20, 0, RC_W, 35, CT_COTTON_CANDY, 0, O, A), // 75
RVI(52, W, 192, 0, 0, 20, 0, RC_W, 35, CT_TOFFEE , 0, O, A), // 76
RVI(53, W, 190, 0, 0, 21, 0, RC_W, 25, CT_BUBBLES , 0, O, A), // 77
RVI(54, W, 182, 0, 0, 24, 0, RC_W, 30, CT_COLA , 0, O, A), // 78
RVI(55, W, 181, 0, 0, 21, 0, RC_W, 30, CT_CANDY , 0, O, A), // 79
RVI(56, W, 183, 0, 0, 21, 0, RC_W, 25, CT_TOYS , 0, O, A), // 80
RVI(57, W, 196, 0, 0, 18, 0, RC_W, 27, CT_BATTERIES , 0, O, A), // 81
RVI(58, W, 193, 0, 0, 18, 0, RC_W, 30, CT_FIZZY_DRINKS, 0, O, A), // 82
RVI(59, W, 191, 0, 0, 18, 0, RC_W, 35, CT_PLASTIC , 0, O, A), // 83
RVI(28, G, 70, 400, 10000, 105, 250, RC_E, 0, 0 , 70, L, V), // 84
RVI(29, G, 74, 448, 12000, 120, 253, RC_E, 0, 0 , 71, L, V), // 85
RVI(30, G, 82, 480, 15000, 130, 254, RC_E, 0, 0 , 72, L, V), // 86
RVI(31, M, 95, 640, 20000, 150, 255, RC_E, 0, 0 , 73, L, V), // 87
RVI(28, G, 70, 480, 10000, 120, 250, RC_E, 0, 0 , 74, L, V), // 88
RVI(60, W, 247, 0, 0, 25, 0, RC_W, 47, CT_PASSENGERS , 0, L, A), // 89
RVI(62, W, 228, 0, 0, 21, 0, RC_W, 37, CT_MAIL , 0, L, A), // 90
RVI(61, W, 176, 0, 0, 18, 0, RC_W, 37, CT_COAL , 0, L, A), // 91
RVI(63, W, 200, 0, 0, 24, 0, RC_W, 37, CT_OIL , 0, L, A), // 92
RVI(64, W, 192, 0, 0, 20, 0, RC_W, 32, CT_LIVESTOCK , 0, L, A), // 93
RVI(65, W, 190, 0, 0, 21, 0, RC_W, 32, CT_GOODS , 0, L, A), // 94
RVI(66, W, 182, 0, 0, 19, 0, RC_W, 37, CT_GRAIN , 0, L, A), // 95
RVI(67, W, 181, 0, 0, 16, 0, RC_W, 37, CT_WOOD , 0, L, A), // 96
RVI(68, W, 179, 0, 0, 19, 0, RC_W, 37, CT_IRON_ORE , 0, L, A), // 97
RVI(69, W, 196, 0, 0, 18, 0, RC_W, 27, CT_STEEL , 0, L, A), // 98
RVI(70, W, 255, 0, 0, 30, 0, RC_W, 27, CT_VALUABLES , 0, L, A), // 99
RVI(71, W, 191, 0, 0, 22, 0, RC_W, 32, CT_FOOD , 0, L, A), // 100
RVI(72, W, 196, 0, 0, 18, 0, RC_W, 27, CT_PAPER , 0, L, A), // 101
RVI(73, W, 179, 0, 0, 19, 0, RC_W, 37, CT_COPPER_ORE , 0, L, A), // 102
RVI(47, W, 199, 0, 0, 25, 0, RC_W, 32, CT_WATER , 0, L, A), // 103
RVI(48, W, 182, 0, 0, 18, 0, RC_W, 32, CT_FRUIT , 0, L, A), // 104
RVI(49, W, 185, 0, 0, 19, 0, RC_W, 28, CT_RUBBER , 0, L, A), // 105
RVI(50, W, 176, 0, 0, 19, 0, RC_W, 37, CT_SUGAR , 0, L, A), // 106
RVI(51, W, 178, 0, 0, 20, 0, RC_W, 37, CT_COTTON_CANDY, 0, L, A), // 107
RVI(52, W, 192, 0, 0, 20, 0, RC_W, 37, CT_TOFFEE , 0, L, A), // 108
RVI(53, W, 190, 0, 0, 21, 0, RC_W, 27, CT_BUBBLES , 0, L, A), // 109
RVI(54, W, 182, 0, 0, 24, 0, RC_W, 32, CT_COLA , 0, L, A), // 110
RVI(55, W, 181, 0, 0, 21, 0, RC_W, 32, CT_CANDY , 0, L, A), // 111
RVI(56, W, 183, 0, 0, 21, 0, RC_W, 27, CT_TOYS , 0, L, A), // 112
RVI(57, W, 196, 0, 0, 18, 0, RC_W, 29, CT_BATTERIES , 0, L, A), // 113
RVI(58, W, 193, 0, 0, 18, 0, RC_W, 32, CT_FIZZY_DRINKS, 0, L, A), // 114
RVI(59, W, 191, 0, 0, 18, 0, RC_W, 37, CT_PLASTIC , 0, L, A), // 115
};
#undef L
#undef O
#undef C
#undef R
#undef V
#undef N
#undef E
#undef D
#undef S
#undef G
#undef W
#undef M
#undef RVI
/** Writes the properties of a ship into the ShipVehicleInfo struct.
* @see ShipVehicleInfo
* @param a image_index
* @param b base_cost
* @param c max_speed
* @param d cargo_type
* @param e cargo_amount
* @param f running_cost
* @param g sound effect
* @param h refittable
*/
#define SVI(a, b, c, d, e, f, g, h) { a, b, c, d, e, f, {g}, h }
static const ShipVehicleInfo _orig_ship_vehicle_info[] = {
/* image_index cargo_type cargo_amount refittable
* | base_cost | | running_cost |
* | | max_speed | | sfx |
* | | | | | | | | */
SVI( 1, 160, 48, CT_OIL, 220, 140, SND_06_SHIP_HORN, 0 ), // 0
SVI( 1, 176, 80, CT_OIL, 350, 125, SND_06_SHIP_HORN, 0 ), // 1
SVI( 2, 96, 64, CT_PASSENGERS, 100, 90, SND_07_FERRY_HORN, 0 ), // 2
SVI( 2, 112, 128, CT_PASSENGERS, 130, 80, SND_07_FERRY_HORN, 0 ), // 3
SVI( 3, 148, 224, CT_PASSENGERS, 100, 190, SND_07_FERRY_HORN, 0 ), // 4
SVI( 2, 96, 64, CT_PASSENGERS, 100, 90, SND_07_FERRY_HORN, 0 ), // 5
SVI( 2, 112, 128, CT_PASSENGERS, 130, 80, SND_07_FERRY_HORN, 0 ), // 6
SVI( 0, 128, 48, CT_GOODS, 160, 150, SND_06_SHIP_HORN, 1 ), // 7
SVI( 0, 144, 80, CT_GOODS, 190, 113, SND_06_SHIP_HORN, 1 ), // 8
SVI( 0, 128, 48, CT_GOODS, 160, 150, SND_06_SHIP_HORN, 1 ), // 9
SVI( 0, 144, 80, CT_GOODS, 190, 113, SND_06_SHIP_HORN, 1 ), // 10
};
#undef SVI
/** Writes the properties of an aircraft into the AircraftVehicleInfo struct.
* @see AircraftVehicleInfo
* @param a image_index
* @param b base_cost
* @param c running_Cost
* @param d subtype (bit 0 - plane, bit 1 - large plane)
* @param e sound effect
* @param f acceleration
* @param g max_speed
* @param h mail_capacity
* @param i passenger_capacity
*/
#define AVI(a, b, c, d, e, f, g, h, i) { a, b, c, d, {e}, f, (g * 129) / 10, h, i }
#define H AIR_HELI
#define P AIR_CTOL
#define J AIR_CTOL | AIR_FAST
static const AircraftVehicleInfo _orig_aircraft_vehicle_info[] = {
/* image_index sfx acceleration
* | base_cost | | max_speed
* | | running_cost | | mail_capacity
* | | | subtype | | | | passenger_capacity
* | | | | | | | | | */
AVI( 1, 14, 85, P, SND_08_PLANE_TAKE_OFF, 18, 37, 4, 25 ), // 0
AVI( 0, 15, 100, P, SND_08_PLANE_TAKE_OFF, 20, 37, 8, 65 ), // 1
AVI( 2, 16, 130, J, SND_09_JET, 35, 74, 10, 90 ), // 2
AVI( 8, 75, 250, J, SND_3B_JET_OVERHEAD, 50, 181, 20, 100 ), // 3
AVI( 5, 15, 98, P, SND_08_PLANE_TAKE_OFF, 20, 37, 6, 30 ), // 4
AVI( 6, 18, 240, J, SND_09_JET, 40, 74, 30, 200 ), // 5
AVI( 2, 17, 150, P, SND_09_JET, 35, 74, 15, 100 ), // 6
AVI( 2, 18, 245, J, SND_09_JET, 40, 74, 30, 150 ), // 7
AVI( 3, 19, 192, J, SND_09_JET, 40, 74, 40, 220 ), // 8
AVI( 3, 20, 190, J, SND_09_JET, 40, 74, 25, 230 ), // 9
AVI( 2, 16, 135, J, SND_09_JET, 35, 74, 10, 95 ), // 10
AVI( 2, 18, 240, J, SND_09_JET, 40, 74, 35, 170 ), // 11
AVI( 4, 17, 155, J, SND_09_JET, 40, 74, 15, 110 ), // 12
AVI( 7, 30, 253, J, SND_3D_ANOTHER_JET_OVERHEAD, 40, 74, 50, 300 ), // 13
AVI( 4, 18, 210, J, SND_09_JET, 40, 74, 25, 200 ), // 14
AVI( 4, 19, 220, J, SND_09_JET, 40, 74, 25, 240 ), // 15
AVI( 4, 27, 230, J, SND_09_JET, 40, 74, 40, 260 ), // 16
AVI( 3, 25, 225, J, SND_09_JET, 40, 74, 35, 240 ), // 17
AVI( 4, 20, 235, J, SND_09_JET, 40, 74, 30, 260 ), // 18
AVI( 4, 19, 220, J, SND_09_JET, 40, 74, 25, 210 ), // 19
AVI( 4, 18, 170, J, SND_09_JET, 40, 74, 20, 160 ), // 20
AVI( 4, 26, 210, J, SND_09_JET, 40, 74, 20, 220 ), // 21
AVI( 6, 16, 125, P, SND_09_JET, 50, 74, 10, 80 ), // 22
AVI( 2, 17, 145, P, SND_09_JET, 40, 74, 10, 85 ), // 23
AVI( 11, 16, 130, P, SND_09_JET, 40, 74, 10, 75 ), // 24
AVI( 10, 16, 149, P, SND_09_JET, 40, 74, 10, 85 ), // 25
AVI( 15, 17, 170, P, SND_09_JET, 40, 74, 18, 65 ), // 26
AVI( 12, 18, 210, J, SND_09_JET, 40, 74, 25, 110 ), // 27
AVI( 13, 20, 230, J, SND_09_JET, 40, 74, 60, 180 ), // 28
AVI( 14, 21, 220, J, SND_09_JET, 40, 74, 65, 150 ), // 29
AVI( 16, 19, 160, J, SND_09_JET, 40, 181, 45, 85 ), // 30
AVI( 17, 24, 248, J, SND_3D_ANOTHER_JET_OVERHEAD, 40, 74, 80, 400 ), // 31
AVI( 18, 80, 251, J, SND_3B_JET_OVERHEAD, 50, 181, 45, 130 ), // 32
AVI( 20, 13, 85, P, SND_45_PLANE_CRASHING, 18, 37, 5, 25 ), // 33
AVI( 21, 18, 100, P, SND_46_PLANE_ENGINE_SPUTTERING, 20, 37, 9, 60 ), // 34
AVI( 22, 25, 140, P, SND_09_JET, 40, 74, 12, 90 ), // 35
AVI( 23, 32, 220, J, SND_3D_ANOTHER_JET_OVERHEAD, 40, 74, 40, 200 ), // 36
AVI( 24, 80, 255, J, SND_3B_JET_OVERHEAD, 50, 181, 30, 100 ), // 37
AVI( 9, 15, 81, H, SND_09_JET, 20, 25, 15, 40 ), // 38
AVI( 19, 17, 77, H, SND_09_JET, 20, 40, 20, 55 ), // 39
AVI( 25, 15, 80, H, SND_09_JET, 20, 25, 10, 40 ), // 40
};
#undef J
#undef P
#undef H
#undef AVI
/** Writes the properties of a road vehicle into the RoadVehicleInfo struct.
* @see RoadVehicleInfo
* @param a image_index
* @param b base_cost
* @param c running_cost
* @param d sound effect
* @param e max_speed
* @param f capacity
* @param g cargo_type
* @param h weight (1/4ton)
* @param i power (10hp)
*/
#define ROV(a, b, c, d, e, f, g, h, i) { a, b, c, RC_R, {d}, e, f, g, h, i, 76, 0 }
static const RoadVehicleInfo _orig_road_vehicle_info[] = {
/* image_index sfx max_speed
* | base_cost | | capacity
* | | running_cost | | cargo_type
* | | | | | | | */
ROV( 0, 120, 91, SND_19_BUS_START_PULL_AWAY, 112, 31, CT_PASSENGERS , 42, 9), // 0
ROV( 17, 140, 128, SND_1C_TRUCK_START_2, 176, 35, CT_PASSENGERS , 60, 12), // 1
ROV( 17, 150, 178, SND_1B_TRUCK_START, 224, 37, CT_PASSENGERS , 70, 15), // 2
ROV( 34, 160, 240, SND_1B_TRUCK_START, 255, 40, CT_PASSENGERS ,100, 25), // 3
ROV( 51, 120, 91, SND_3C_COMEDY_CAR, 112, 30, CT_PASSENGERS , 42, 9), // 4
ROV( 51, 140, 171, SND_3E_COMEDY_CAR_2, 192, 35, CT_PASSENGERS , 60, 15), // 5
ROV( 51, 160, 240, SND_3C_COMEDY_CAR, 240, 38, CT_PASSENGERS , 90, 25), // 6
ROV( 1, 108, 90, SND_19_BUS_START_PULL_AWAY, 96, 20, CT_COAL , 38, 12), // 7
ROV( 18, 128, 168, SND_19_BUS_START_PULL_AWAY, 176, 25, CT_COAL , 48, 22), // 8
ROV( 35, 138, 240, SND_19_BUS_START_PULL_AWAY, 224, 28, CT_COAL , 69, 45), // 9
ROV( 2, 115, 90, SND_19_BUS_START_PULL_AWAY, 96, 22, CT_MAIL , 38, 12), // 10
ROV( 19, 135, 168, SND_19_BUS_START_PULL_AWAY, 176, 28, CT_MAIL , 48, 22), // 11
ROV( 36, 145, 240, SND_19_BUS_START_PULL_AWAY, 224, 30, CT_MAIL , 69, 45), // 12
ROV( 57, 115, 90, SND_3E_COMEDY_CAR_2, 96, 22, CT_MAIL , 38, 12), // 13
ROV( 57, 135, 168, SND_3C_COMEDY_CAR, 176, 28, CT_MAIL , 48, 22), // 14
ROV( 57, 145, 240, SND_3E_COMEDY_CAR_2, 224, 30, CT_MAIL , 69, 45), // 15
ROV( 3, 110, 90, SND_19_BUS_START_PULL_AWAY, 96, 21, CT_OIL , 38, 12), // 16
ROV( 20, 140, 168, SND_19_BUS_START_PULL_AWAY, 176, 25, CT_OIL , 48, 22), // 17
ROV( 37, 150, 240, SND_19_BUS_START_PULL_AWAY, 224, 27, CT_OIL , 69, 45), // 18
ROV( 4, 105, 90, SND_19_BUS_START_PULL_AWAY, 96, 14, CT_LIVESTOCK , 38, 12), // 19
ROV( 21, 130, 168, SND_19_BUS_START_PULL_AWAY, 176, 16, CT_LIVESTOCK , 48, 22), // 20
ROV( 38, 140, 240, SND_19_BUS_START_PULL_AWAY, 224, 18, CT_LIVESTOCK , 69, 45), // 21
ROV( 5, 107, 90, SND_19_BUS_START_PULL_AWAY, 96, 14, CT_GOODS , 38, 12), // 22
ROV( 22, 130, 168, SND_19_BUS_START_PULL_AWAY, 176, 16, CT_GOODS , 48, 22), // 23
ROV( 39, 140, 240, SND_19_BUS_START_PULL_AWAY, 224, 18, CT_GOODS , 69, 45), // 24
ROV( 6, 114, 90, SND_19_BUS_START_PULL_AWAY, 96, 20, CT_GRAIN , 38, 12), // 25
ROV( 23, 133, 168, SND_19_BUS_START_PULL_AWAY, 176, 25, CT_GRAIN , 48, 22), // 26
ROV( 40, 143, 240, SND_19_BUS_START_PULL_AWAY, 224, 30, CT_GRAIN , 69, 45), // 27
ROV( 7, 118, 90, SND_19_BUS_START_PULL_AWAY, 96, 20, CT_WOOD , 38, 12), // 28
ROV( 24, 137, 168, SND_19_BUS_START_PULL_AWAY, 176, 22, CT_WOOD , 48, 22), // 29
ROV( 41, 147, 240, SND_19_BUS_START_PULL_AWAY, 224, 24, CT_WOOD , 69, 45), // 30
ROV( 8, 121, 90, SND_19_BUS_START_PULL_AWAY, 96, 22, CT_IRON_ORE , 38, 12), // 31
ROV( 25, 140, 168, SND_19_BUS_START_PULL_AWAY, 176, 25, CT_IRON_ORE , 48, 22), // 32
ROV( 42, 150, 240, SND_19_BUS_START_PULL_AWAY, 224, 27, CT_IRON_ORE , 69, 45), // 33
ROV( 9, 112, 90, SND_19_BUS_START_PULL_AWAY, 96, 15, CT_STEEL , 38, 12), // 34
ROV( 26, 135, 168, SND_19_BUS_START_PULL_AWAY, 176, 18, CT_STEEL , 48, 22), // 35
ROV( 43, 145, 240, SND_19_BUS_START_PULL_AWAY, 224, 20, CT_STEEL , 69, 45), // 36
ROV( 10, 145, 90, SND_19_BUS_START_PULL_AWAY, 96, 12, CT_VALUABLES , 38, 12), // 37
ROV( 27, 170, 168, SND_19_BUS_START_PULL_AWAY, 176, 15, CT_VALUABLES , 48, 22), // 38
ROV( 44, 180, 240, SND_19_BUS_START_PULL_AWAY, 224, 16, CT_VALUABLES , 69, 45), // 39
ROV( 11, 112, 90, SND_19_BUS_START_PULL_AWAY, 96, 17, CT_FOOD , 38, 12), // 40
ROV( 28, 134, 168, SND_19_BUS_START_PULL_AWAY, 176, 20, CT_FOOD , 48, 22), // 41
ROV( 45, 144, 240, SND_19_BUS_START_PULL_AWAY, 224, 22, CT_FOOD , 69, 45), // 42
ROV( 12, 112, 90, SND_19_BUS_START_PULL_AWAY, 96, 15, CT_PAPER , 38, 12), // 43
ROV( 29, 135, 168, SND_19_BUS_START_PULL_AWAY, 176, 18, CT_PAPER , 48, 22), // 44
ROV( 46, 145, 240, SND_19_BUS_START_PULL_AWAY, 224, 20, CT_PAPER , 69, 45), // 45
ROV( 13, 121, 90, SND_19_BUS_START_PULL_AWAY, 96, 22, CT_COPPER_ORE , 38, 12), // 46
ROV( 30, 140, 168, SND_19_BUS_START_PULL_AWAY, 176, 25, CT_COPPER_ORE , 48, 22), // 47
ROV( 47, 150, 240, SND_19_BUS_START_PULL_AWAY, 224, 27, CT_COPPER_ORE , 69, 45), // 48
ROV( 14, 111, 90, SND_19_BUS_START_PULL_AWAY, 96, 21, CT_WATER , 38, 12), // 49
ROV( 31, 141, 168, SND_19_BUS_START_PULL_AWAY, 176, 25, CT_WATER , 48, 22), // 50
ROV( 48, 151, 240, SND_19_BUS_START_PULL_AWAY, 224, 27, CT_WATER , 69, 45), // 51
ROV( 15, 118, 90, SND_19_BUS_START_PULL_AWAY, 96, 18, CT_FRUIT , 38, 12), // 52
ROV( 32, 148, 168, SND_19_BUS_START_PULL_AWAY, 176, 20, CT_FRUIT , 48, 22), // 53
ROV( 49, 158, 240, SND_19_BUS_START_PULL_AWAY, 224, 23, CT_FRUIT , 69, 45), // 54
ROV( 16, 117, 90, SND_19_BUS_START_PULL_AWAY, 96, 17, CT_RUBBER , 38, 12), // 55
ROV( 33, 147, 168, SND_19_BUS_START_PULL_AWAY, 176, 19, CT_RUBBER , 48, 22), // 56
ROV( 50, 157, 240, SND_19_BUS_START_PULL_AWAY, 224, 22, CT_RUBBER , 69, 45), // 57
ROV( 52, 117, 90, SND_3F_COMEDY_CAR_3, 96, 17, CT_SUGAR , 38, 12), // 58
ROV( 52, 147, 168, SND_40_COMEDY_CAR_START_AND_PULL_AWAY, 176, 19, CT_SUGAR , 48, 22), // 59
ROV( 52, 157, 240, SND_3F_COMEDY_CAR_3, 224, 22, CT_SUGAR , 69, 45), // 60
ROV( 53, 117, 90, SND_40_COMEDY_CAR_START_AND_PULL_AWAY, 96, 17, CT_COLA , 38, 12), // 61
ROV( 53, 147, 168, SND_3F_COMEDY_CAR_3, 176, 19, CT_COLA , 48, 22), // 62
ROV( 53, 157, 240, SND_40_COMEDY_CAR_START_AND_PULL_AWAY, 224, 22, CT_COLA , 69, 45), // 63
ROV( 54, 117, 90, SND_3F_COMEDY_CAR_3, 96, 17, CT_COTTON_CANDY , 38, 12), // 64
ROV( 54, 147, 168, SND_40_COMEDY_CAR_START_AND_PULL_AWAY, 176, 19, CT_COTTON_CANDY , 48, 22), // 65
ROV( 54, 157, 240, SND_3F_COMEDY_CAR_3, 224, 22, CT_COTTON_CANDY , 69, 45), // 66
ROV( 55, 117, 90, SND_40_COMEDY_CAR_START_AND_PULL_AWAY, 96, 17, CT_TOFFEE , 38, 12), // 67
ROV( 55, 147, 168, SND_3F_COMEDY_CAR_3, 176, 19, CT_TOFFEE , 48, 22), // 68
ROV( 55, 157, 240, SND_40_COMEDY_CAR_START_AND_PULL_AWAY, 224, 22, CT_TOFFEE , 69, 45), // 69
ROV( 56, 117, 90, SND_3F_COMEDY_CAR_3, 96, 17, CT_TOYS , 38, 12), // 70
ROV( 56, 147, 168, SND_40_COMEDY_CAR_START_AND_PULL_AWAY, 176, 19, CT_TOYS , 48, 22), // 71
ROV( 56, 157, 240, SND_3F_COMEDY_CAR_3, 224, 22, CT_TOYS , 69, 45), // 72
ROV( 58, 117, 90, SND_40_COMEDY_CAR_START_AND_PULL_AWAY, 96, 17, CT_CANDY , 38, 12), // 73
ROV( 58, 147, 168, SND_3F_COMEDY_CAR_3, 176, 19, CT_CANDY , 48, 22), // 74
ROV( 58, 157, 240, SND_40_COMEDY_CAR_START_AND_PULL_AWAY, 224, 22, CT_CANDY , 69, 45), // 75
ROV( 59, 117, 90, SND_3F_COMEDY_CAR_3, 96, 17, CT_BATTERIES , 38, 12), // 76
ROV( 59, 147, 168, SND_40_COMEDY_CAR_START_AND_PULL_AWAY, 176, 19, CT_BATTERIES , 48, 22), // 77
ROV( 59, 157, 240, SND_3F_COMEDY_CAR_3, 224, 22, CT_BATTERIES , 69, 45), // 78
ROV( 60, 117, 90, SND_40_COMEDY_CAR_START_AND_PULL_AWAY, 96, 17, CT_FIZZY_DRINKS , 38, 12), // 79
ROV( 60, 147, 168, SND_3F_COMEDY_CAR_3, 176, 19, CT_FIZZY_DRINKS , 48, 22), // 80
ROV( 60, 157, 240, SND_40_COMEDY_CAR_START_AND_PULL_AWAY, 224, 22, CT_FIZZY_DRINKS , 69, 45), // 81
ROV( 61, 117, 90, SND_3F_COMEDY_CAR_3, 96, 17, CT_PLASTIC , 38, 12), // 82
ROV( 61, 147, 168, SND_40_COMEDY_CAR_START_AND_PULL_AWAY, 176, 19, CT_PLASTIC , 48, 22), // 83
ROV( 61, 157, 240, SND_3F_COMEDY_CAR_3, 224, 22, CT_PLASTIC , 69, 45), // 84
ROV( 62, 117, 90, SND_40_COMEDY_CAR_START_AND_PULL_AWAY, 96, 17, CT_BUBBLES , 38, 12), // 85
ROV( 62, 147, 168, SND_3F_COMEDY_CAR_3, 176, 19, CT_BUBBLES , 48, 22), // 86
ROV( 62, 157, 240, SND_40_COMEDY_CAR_START_AND_PULL_AWAY, 224, 22, CT_BUBBLES , 69, 45), // 87
};
#undef ROV
#endif /* ENGINES_H */
| 45,170
|
C++
|
.h
| 704
| 62.237216
| 116
| 0.482126
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,640
|
bridge_land.h
|
EnergeticBark_OpenTTD-3DS/src/table/bridge_land.h
|
/* $Id$ */
/** @file bridge_land.h This file contains all the sprites for bridges
* It consists of a number of arrays.
* <ul><li>_bridge_sprite_table_n_m. Defines all the sprites of a bridge besides the pylons.
* n defines the number of the bridge type, m the number of the section. the highest m for
* each bridge set defines the heads.<br>
* Sprites for middle secionts are arranged in groups of four, the elements are:
* <ol><li>Element containing the track. This element is logically behind the vehicle.</li>
* <li>Element containing the structure that is logically between the vehicle and the camera</li>
* <li>Element containing the pylons.</li></ol>
* First group is for railway in X direction, second for railway in Y direction, two groups each follow for road, monorail and maglev<p>
* <br>Elements for heads are arranged in groups of eight:
* <ol><li>X direction, north end, flat</li>
* <li>Y direction, north end, flat</li>
* <li>X direction, south end, flat</li>
* <li>Y direction, south end, flat</li>
* <li>X direction, north end, sloped</li>
* <li>Y direction, north end, sloped</li>
* <li>X direction, south end, sloped</li>
* <li>Y direction, south end, sloped</li></ol>
* This is repeated 4 times, for rail, road, monorail, maglev</li>
* </ul>
*/
# define MN(a) {a, PAL_NONE}
# define MR(a) {a, PALETTE_TO_STRUCT_RED}
# define MW(a) {a, PALETTE_TO_STRUCT_WHITE}
# define MC(a) {a, PALETTE_TO_STRUCT_CONCRETE}
static const PalSpriteID _aqueduct_sprites[] = {
{ SPR_AQUEDUCT_MIDDLE_X, PAL_NONE }, { 0x0, PAL_NONE }, { SPR_AQUEDUCT_PILLAR_X, PAL_NONE }, { 0x0, PAL_NONE },
{ SPR_AQUEDUCT_MIDDLE_Y, PAL_NONE }, { 0x0, PAL_NONE }, { SPR_AQUEDUCT_PILLAR_Y, PAL_NONE }, { 0x0, PAL_NONE },
{ SPR_AQUEDUCT_RAMP_SW, PAL_NONE }, { SPR_AQUEDUCT_RAMP_SE, PAL_NONE }, { SPR_AQUEDUCT_RAMP_NE, PAL_NONE }, { SPR_AQUEDUCT_RAMP_NW, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_4_0[] = {
{ 0x9A9, PAL_NONE }, { 0x99F, PAL_NONE }, { 0x9B1, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9A5, PAL_NONE }, { 0x997, PAL_NONE }, { 0x9AD, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x99D, PAL_NONE }, { 0x99F, PAL_NONE }, { 0x9B1, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x995, PAL_NONE }, { 0x997, PAL_NONE }, { 0x9AD, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x10F2, PAL_NONE }, { 0x99F, PAL_NONE }, { 0x9B1, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x10EE, PAL_NONE }, { 0x997, PAL_NONE }, { 0x9AD, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x111A, PAL_NONE }, { 0x99F, PAL_NONE }, { 0x9B1, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x1116, PAL_NONE }, { 0x997, PAL_NONE }, { 0x9AD, PAL_NONE }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_4_1[] = {
{ 0x9AA, PAL_NONE }, { 0x9A0, PAL_NONE }, { 0x9B2, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9A6, PAL_NONE }, { 0x998, PAL_NONE }, { 0x9AE, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x99E, PAL_NONE }, { 0x9A0, PAL_NONE }, { 0x9B2, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x996, PAL_NONE }, { 0x998, PAL_NONE }, { 0x9AE, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x10F3, PAL_NONE }, { 0x9A0, PAL_NONE }, { 0x9B2, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x10EF, PAL_NONE }, { 0x998, PAL_NONE }, { 0x9AE, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x111B, PAL_NONE }, { 0x9A0, PAL_NONE }, { 0x9B2, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x1117, PAL_NONE }, { 0x998, PAL_NONE }, { 0x9AE, PAL_NONE }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_4_2[] = {
{ 0x9AC, PAL_NONE }, { 0x9A4, PAL_NONE }, { 0x9B4, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9A8, PAL_NONE }, { 0x99C, PAL_NONE }, { 0x9B0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9A2, PAL_NONE }, { 0x9A4, PAL_NONE }, { 0x9B4, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x99A, PAL_NONE }, { 0x99C, PAL_NONE }, { 0x9B0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x10F5, PAL_NONE }, { 0x9A4, PAL_NONE }, { 0x9B4, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x10F1, PAL_NONE }, { 0x99C, PAL_NONE }, { 0x9B0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x111D, PAL_NONE }, { 0x9A4, PAL_NONE }, { 0x9B4, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x1119, PAL_NONE }, { 0x99C, PAL_NONE }, { 0x9B0, PAL_NONE }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_4_3[] = {
{ 0x9AB, PAL_NONE }, { 0x9A3, PAL_NONE }, { 0x9B3, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9A7, PAL_NONE }, { 0x99B, PAL_NONE }, { 0x9AF, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9A1, PAL_NONE }, { 0x9A3, PAL_NONE }, { 0x9B3, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x999, PAL_NONE }, { 0x99B, PAL_NONE }, { 0x9AF, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x10F4, PAL_NONE }, { 0x9A3, PAL_NONE }, { 0x9B3, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x10F0, PAL_NONE }, { 0x99B, PAL_NONE }, { 0x9AF, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x111C, PAL_NONE }, { 0x9A3, PAL_NONE }, { 0x9B3, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x1118, PAL_NONE }, { 0x99B, PAL_NONE }, { 0x9AF, PAL_NONE }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_4_4[] = {
{ 0x9B6, PAL_NONE }, { 0x9BA, PAL_NONE }, { 0x9BC, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9B5, PAL_NONE }, { 0x9B9, PAL_NONE }, { 0x9BB, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9B8, PAL_NONE }, { 0x9BA, PAL_NONE }, { 0x9BC, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9B7, PAL_NONE }, { 0x9B9, PAL_NONE }, { 0x9BB, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x10F7, PAL_NONE }, { 0x9BA, PAL_NONE }, { 0x9BC, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x10F6, PAL_NONE }, { 0x9B9, PAL_NONE }, { 0x9BB, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x111F, PAL_NONE }, { 0x9BA, PAL_NONE }, { 0x9BC, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x111E, PAL_NONE }, { 0x9B9, PAL_NONE }, { 0x9BB, PAL_NONE }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_4_5[] = {
{ 0x9BD, PAL_NONE }, { 0x9C1, PAL_NONE }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9BE, PAL_NONE }, { 0x9C2, PAL_NONE }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9BF, PAL_NONE }, { 0x9C1, PAL_NONE }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9C0, PAL_NONE }, { 0x9C2, PAL_NONE }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x10F8, PAL_NONE }, { 0x9C1, PAL_NONE }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x10F9, PAL_NONE }, { 0x9C2, PAL_NONE }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x1120, PAL_NONE }, { 0x9C1, PAL_NONE }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x1121, PAL_NONE }, { 0x9C2, PAL_NONE }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_4_6[] = {
{ 0x986, PAL_NONE }, { 0x988, PAL_NONE }, { 0x985, PAL_NONE }, { 0x987, PAL_NONE },
{ 0x98A, PAL_NONE }, { 0x98C, PAL_NONE }, { 0x989, PAL_NONE }, { 0x98B, PAL_NONE },
{ 0x98E, PAL_NONE }, { 0x990, PAL_NONE }, { 0x98D, PAL_NONE }, { 0x98F, PAL_NONE },
{ 0x992, PAL_NONE }, { 0x994, PAL_NONE }, { 0x991, PAL_NONE }, { 0x993, PAL_NONE },
{ 0x10E7, PAL_NONE }, { 0x10E9, PAL_NONE }, { 0x10E6, PAL_NONE }, { 0x10E8, PAL_NONE },
{ 0x10EB, PAL_NONE }, { 0x10ED, PAL_NONE }, { 0x10EA, PAL_NONE }, { 0x10EC, PAL_NONE },
{ 0x110F, PAL_NONE }, { 0x1111, PAL_NONE }, { 0x110E, PAL_NONE }, { 0x1110, PAL_NONE },
{ 0x1113, PAL_NONE }, { 0x1115, PAL_NONE }, { 0x1112, PAL_NONE }, { 0x1114, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_5_0[] = {
{ 0x9A9, PALETTE_TO_STRUCT_YELLOW }, { 0x99F, PALETTE_TO_STRUCT_YELLOW }, { 0x9B1, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x9A5, PALETTE_TO_STRUCT_YELLOW }, { 0x997, PALETTE_TO_STRUCT_YELLOW }, { 0x9AD, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x99D, PALETTE_TO_STRUCT_YELLOW }, { 0x99F, PALETTE_TO_STRUCT_YELLOW }, { 0x9B1, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x995, PALETTE_TO_STRUCT_YELLOW }, { 0x997, PALETTE_TO_STRUCT_YELLOW }, { 0x9AD, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x10F2, PALETTE_TO_STRUCT_YELLOW }, { 0x99F, PALETTE_TO_STRUCT_YELLOW }, { 0x9B1, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x10EE, PALETTE_TO_STRUCT_YELLOW }, { 0x997, PALETTE_TO_STRUCT_YELLOW }, { 0x9AD, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x111A, PALETTE_TO_STRUCT_YELLOW }, { 0x99F, PALETTE_TO_STRUCT_YELLOW }, { 0x9B1, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x1116, PALETTE_TO_STRUCT_YELLOW }, { 0x997, PALETTE_TO_STRUCT_YELLOW }, { 0x9AD, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_5_1[] = {
{ 0x9AA, PALETTE_TO_STRUCT_YELLOW }, { 0x9A0, PALETTE_TO_STRUCT_YELLOW }, { 0x9B2, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x9A6, PALETTE_TO_STRUCT_YELLOW }, { 0x998, PALETTE_TO_STRUCT_YELLOW }, { 0x9AE, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x99E, PALETTE_TO_STRUCT_YELLOW }, { 0x9A0, PALETTE_TO_STRUCT_YELLOW }, { 0x9B2, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x996, PALETTE_TO_STRUCT_YELLOW }, { 0x998, PALETTE_TO_STRUCT_YELLOW }, { 0x9AE, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x10F3, PALETTE_TO_STRUCT_YELLOW }, { 0x9A0, PALETTE_TO_STRUCT_YELLOW }, { 0x9B2, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x10EF, PALETTE_TO_STRUCT_YELLOW }, { 0x998, PALETTE_TO_STRUCT_YELLOW }, { 0x9AE, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x111B, PALETTE_TO_STRUCT_YELLOW }, { 0x9A0, PALETTE_TO_STRUCT_YELLOW }, { 0x9B2, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x1117, PALETTE_TO_STRUCT_YELLOW }, { 0x998, PALETTE_TO_STRUCT_YELLOW }, { 0x9AE, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_5_2[] = {
{ 0x9AC, PALETTE_TO_STRUCT_YELLOW }, { 0x9A4, PALETTE_TO_STRUCT_YELLOW }, { 0x9B4, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x9A8, PALETTE_TO_STRUCT_YELLOW }, { 0x99C, PALETTE_TO_STRUCT_YELLOW }, { 0x9B0, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x9A2, PALETTE_TO_STRUCT_YELLOW }, { 0x9A4, PALETTE_TO_STRUCT_YELLOW }, { 0x9B4, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x99A, PALETTE_TO_STRUCT_YELLOW }, { 0x99C, PALETTE_TO_STRUCT_YELLOW }, { 0x9B0, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x10F5, PALETTE_TO_STRUCT_YELLOW }, { 0x9A4, PALETTE_TO_STRUCT_YELLOW }, { 0x9B4, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x10F1, PALETTE_TO_STRUCT_YELLOW }, { 0x99C, PALETTE_TO_STRUCT_YELLOW }, { 0x9B0, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x111D, PALETTE_TO_STRUCT_YELLOW }, { 0x9A4, PALETTE_TO_STRUCT_YELLOW }, { 0x9B4, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x1119, PALETTE_TO_STRUCT_YELLOW }, { 0x99C, PALETTE_TO_STRUCT_YELLOW }, { 0x9B0, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_5_3[] = {
{ 0x9AB, PALETTE_TO_STRUCT_YELLOW }, { 0x9A3, PALETTE_TO_STRUCT_YELLOW }, { 0x9B3, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x9A7, PALETTE_TO_STRUCT_YELLOW }, { 0x99B, PALETTE_TO_STRUCT_YELLOW }, { 0x9AF, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x9A1, PALETTE_TO_STRUCT_YELLOW }, { 0x9A3, PALETTE_TO_STRUCT_YELLOW }, { 0x9B3, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x999, PALETTE_TO_STRUCT_YELLOW }, { 0x99B, PALETTE_TO_STRUCT_YELLOW }, { 0x9AF, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x10F4, PALETTE_TO_STRUCT_YELLOW }, { 0x9A3, PALETTE_TO_STRUCT_YELLOW }, { 0x9B3, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x10F0, PALETTE_TO_STRUCT_YELLOW }, { 0x99B, PALETTE_TO_STRUCT_YELLOW }, { 0x9AF, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x111C, PALETTE_TO_STRUCT_YELLOW }, { 0x9A3, PALETTE_TO_STRUCT_YELLOW }, { 0x9B3, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x1118, PALETTE_TO_STRUCT_YELLOW }, { 0x99B, PALETTE_TO_STRUCT_YELLOW }, { 0x9AF, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_5_4[] = {
{ 0x9B6, PALETTE_TO_STRUCT_YELLOW }, { 0x9BA, PALETTE_TO_STRUCT_YELLOW }, { 0x9BC, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x9B5, PALETTE_TO_STRUCT_YELLOW }, { 0x9B9, PALETTE_TO_STRUCT_YELLOW }, { 0x9BB, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x9B8, PALETTE_TO_STRUCT_YELLOW }, { 0x9BA, PALETTE_TO_STRUCT_YELLOW }, { 0x9BC, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x9B7, PALETTE_TO_STRUCT_YELLOW }, { 0x9B9, PALETTE_TO_STRUCT_YELLOW }, { 0x9BB, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x10F7, PALETTE_TO_STRUCT_YELLOW }, { 0x9BA, PALETTE_TO_STRUCT_YELLOW }, { 0x9BC, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x10F6, PALETTE_TO_STRUCT_YELLOW }, { 0x9B9, PALETTE_TO_STRUCT_YELLOW }, { 0x9BB, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x111F, PALETTE_TO_STRUCT_YELLOW }, { 0x9BA, PALETTE_TO_STRUCT_YELLOW }, { 0x9BC, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0x111E, PALETTE_TO_STRUCT_YELLOW }, { 0x9B9, PALETTE_TO_STRUCT_YELLOW }, { 0x9BB, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_5_5[] = {
{ 0x9BD, PALETTE_TO_STRUCT_YELLOW }, { 0x9C1, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9BE, PALETTE_TO_STRUCT_YELLOW }, { 0x9C2, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9BF, PALETTE_TO_STRUCT_YELLOW }, { 0x9C1, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9C0, PALETTE_TO_STRUCT_YELLOW }, { 0x9C2, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x10F8, PALETTE_TO_STRUCT_YELLOW }, { 0x9C1, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x10F9, PALETTE_TO_STRUCT_YELLOW }, { 0x9C2, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x1120, PALETTE_TO_STRUCT_YELLOW }, { 0x9C1, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x1121, PALETTE_TO_STRUCT_YELLOW }, { 0x9C2, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_5_6[] = {
{ 0x986, PAL_NONE }, { 0x988, PAL_NONE }, { 0x985, PAL_NONE }, { 0x987, PAL_NONE },
{ 0x98A, PAL_NONE }, { 0x98C, PAL_NONE }, { 0x989, PAL_NONE }, { 0x98B, PAL_NONE },
{ 0x98E, PALETTE_TO_STRUCT_YELLOW }, { 0x990, PALETTE_TO_STRUCT_YELLOW }, { 0x98D, PALETTE_TO_STRUCT_YELLOW }, { 0x98F, PALETTE_TO_STRUCT_YELLOW },
{ 0x992, PALETTE_TO_STRUCT_YELLOW }, { 0x994, PALETTE_TO_STRUCT_YELLOW }, { 0x991, PALETTE_TO_STRUCT_YELLOW }, { 0x993, PALETTE_TO_STRUCT_YELLOW },
{ 0x10E7, PALETTE_TO_STRUCT_YELLOW }, { 0x10E9, PALETTE_TO_STRUCT_YELLOW }, { 0x10E6, PALETTE_TO_STRUCT_YELLOW }, { 0x10E8, PALETTE_TO_STRUCT_YELLOW },
{ 0x10EB, PALETTE_TO_STRUCT_YELLOW }, { 0x10ED, PALETTE_TO_STRUCT_YELLOW }, { 0x10EA, PALETTE_TO_STRUCT_YELLOW }, { 0x10EC, PALETTE_TO_STRUCT_YELLOW },
{ 0x110F, PALETTE_TO_STRUCT_YELLOW }, { 0x1111, PALETTE_TO_STRUCT_YELLOW }, { 0x110E, PALETTE_TO_STRUCT_YELLOW }, { 0x1110, PALETTE_TO_STRUCT_YELLOW },
{ 0x1113, PALETTE_TO_STRUCT_YELLOW }, { 0x1115, PALETTE_TO_STRUCT_YELLOW }, { 0x1112, PALETTE_TO_STRUCT_YELLOW }, { 0x1114, PALETTE_TO_STRUCT_YELLOW },
};
static const PalSpriteID _bridge_sprite_table_6_0[] = {
{ 0x9CD, PAL_NONE }, { 0x9D9, PAL_NONE }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9CE, PAL_NONE }, { 0x9DA, PAL_NONE }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9D3, PAL_NONE }, { 0x9D9, PAL_NONE }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9D4, PAL_NONE }, { 0x9DA, PAL_NONE }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x10FC, PAL_NONE }, { 0x9D9, PAL_NONE }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x10FD, PAL_NONE }, { 0x9DA, PAL_NONE }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x1124, PAL_NONE }, { 0x9D9, PAL_NONE }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x1125, PAL_NONE }, { 0x9DA, PAL_NONE }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_6_1[] = {
{ 0x9CB, PAL_NONE }, { 0x9D7, PAL_NONE }, { 0x9DD, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9D0, PAL_NONE }, { 0x9DC, PAL_NONE }, { 0x9E0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9D1, PAL_NONE }, { 0x9D7, PAL_NONE }, { 0x9DD, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9D6, PAL_NONE }, { 0x9DC, PAL_NONE }, { 0x9E0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x10FA, PAL_NONE }, { 0x9D7, PAL_NONE }, { 0x9DD, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x10FF, PAL_NONE }, { 0x9DC, PAL_NONE }, { 0x9E0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x1122, PAL_NONE }, { 0x9D7, PAL_NONE }, { 0x9DD, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x1127, PAL_NONE }, { 0x9DC, PAL_NONE }, { 0x9E0, PAL_NONE }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_6_2[] = {
{ 0x9CC, PAL_NONE }, { 0x9D8, PAL_NONE }, { 0x9DE, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9CF, PAL_NONE }, { 0x9DB, PAL_NONE }, { 0x9DF, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9D2, PAL_NONE }, { 0x9D8, PAL_NONE }, { 0x9DE, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9D5, PAL_NONE }, { 0x9DB, PAL_NONE }, { 0x9DF, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x10FB, PAL_NONE }, { 0x9D8, PAL_NONE }, { 0x9DE, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x10FE, PAL_NONE }, { 0x9DB, PAL_NONE }, { 0x9DF, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x1123, PAL_NONE }, { 0x9D8, PAL_NONE }, { 0x9DE, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x1126, PAL_NONE }, { 0x9DB, PAL_NONE }, { 0x9DF, PAL_NONE }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_6_3[] = {
{ 0x986, PAL_NONE }, { 0x988, PAL_NONE }, { 0x985, PAL_NONE }, { 0x987, PAL_NONE },
{ 0x98A, PAL_NONE }, { 0x98C, PAL_NONE }, { 0x989, PAL_NONE }, { 0x98B, PAL_NONE },
{ 0x98E, PAL_NONE }, { 0x990, PAL_NONE }, { 0x98D, PAL_NONE }, { 0x98F, PAL_NONE },
{ 0x992, PAL_NONE }, { 0x994, PAL_NONE }, { 0x991, PAL_NONE }, { 0x993, PAL_NONE },
{ 0x10E7, PAL_NONE }, { 0x10E9, PAL_NONE }, { 0x10E6, PAL_NONE }, { 0x10E8, PAL_NONE },
{ 0x10EB, PAL_NONE }, { 0x10ED, PAL_NONE }, { 0x10EA, PAL_NONE }, { 0x10EC, PAL_NONE },
{ 0x110F, PAL_NONE }, { 0x1111, PAL_NONE }, { 0x110E, PAL_NONE }, { 0x1110, PAL_NONE },
{ 0x1113, PAL_NONE }, { 0x1115, PAL_NONE }, { 0x1112, PAL_NONE }, { 0x1114, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_7_0[] = {
{ 0x9CD, PALETTE_TO_STRUCT_BROWN }, { 0x9D9, PALETTE_TO_STRUCT_BROWN }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9CE, PALETTE_TO_STRUCT_BROWN }, { 0x9DA, PALETTE_TO_STRUCT_BROWN }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9D3, PALETTE_TO_STRUCT_BROWN }, { 0x9D9, PALETTE_TO_STRUCT_BROWN }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9D4, PALETTE_TO_STRUCT_BROWN }, { 0x9DA, PALETTE_TO_STRUCT_BROWN }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x10FC, PALETTE_TO_STRUCT_BROWN }, { 0x9D9, PALETTE_TO_STRUCT_BROWN }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x10FD, PALETTE_TO_STRUCT_BROWN }, { 0x9DA, PALETTE_TO_STRUCT_BROWN }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x1124, PALETTE_TO_STRUCT_BROWN }, { 0x9D9, PALETTE_TO_STRUCT_BROWN }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x1125, PALETTE_TO_STRUCT_BROWN }, { 0x9DA, PALETTE_TO_STRUCT_BROWN }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_7_1[] = {
{ 0x9CB, PALETTE_TO_STRUCT_BROWN }, { 0x9D7, PALETTE_TO_STRUCT_BROWN }, { 0x9DD, PALETTE_TO_STRUCT_BROWN }, { 0x0, PAL_NONE },
{ 0x9D0, PALETTE_TO_STRUCT_BROWN }, { 0x9DC, PALETTE_TO_STRUCT_BROWN }, { 0x9E0, PALETTE_TO_STRUCT_BROWN }, { 0x0, PAL_NONE },
{ 0x9D1, PALETTE_TO_STRUCT_BROWN }, { 0x9D7, PALETTE_TO_STRUCT_BROWN }, { 0x9DD, PALETTE_TO_STRUCT_BROWN }, { 0x0, PAL_NONE },
{ 0x9D6, PALETTE_TO_STRUCT_BROWN }, { 0x9DC, PALETTE_TO_STRUCT_BROWN }, { 0x9E0, PALETTE_TO_STRUCT_BROWN }, { 0x0, PAL_NONE },
{ 0x10FA, PALETTE_TO_STRUCT_BROWN }, { 0x9D7, PALETTE_TO_STRUCT_BROWN }, { 0x9DD, PALETTE_TO_STRUCT_BROWN }, { 0x0, PAL_NONE },
{ 0x10FF, PALETTE_TO_STRUCT_BROWN }, { 0x9DC, PALETTE_TO_STRUCT_BROWN }, { 0x9E0, PALETTE_TO_STRUCT_BROWN }, { 0x0, PAL_NONE },
{ 0x1122, PALETTE_TO_STRUCT_BROWN }, { 0x9D7, PALETTE_TO_STRUCT_BROWN }, { 0x9DD, PALETTE_TO_STRUCT_BROWN }, { 0x0, PAL_NONE },
{ 0x1127, PALETTE_TO_STRUCT_BROWN }, { 0x9DC, PALETTE_TO_STRUCT_BROWN }, { 0x9E0, PALETTE_TO_STRUCT_BROWN }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_7_2[] = {
{ 0x9CC, PALETTE_TO_STRUCT_BROWN }, { 0x9D8, PALETTE_TO_STRUCT_BROWN }, { 0x9DE, PALETTE_TO_STRUCT_BROWN }, { 0x0, PAL_NONE },
{ 0x9CF, PALETTE_TO_STRUCT_BROWN }, { 0x9DB, PALETTE_TO_STRUCT_BROWN }, { 0x9DF, PALETTE_TO_STRUCT_BROWN }, { 0x0, PAL_NONE },
{ 0x9D2, PALETTE_TO_STRUCT_BROWN }, { 0x9D8, PALETTE_TO_STRUCT_BROWN }, { 0x9DE, PALETTE_TO_STRUCT_BROWN }, { 0x0, PAL_NONE },
{ 0x9D5, PALETTE_TO_STRUCT_BROWN }, { 0x9DB, PALETTE_TO_STRUCT_BROWN }, { 0x9DF, PALETTE_TO_STRUCT_BROWN }, { 0x0, PAL_NONE },
{ 0x10FB, PALETTE_TO_STRUCT_BROWN }, { 0x9D8, PALETTE_TO_STRUCT_BROWN }, { 0x9DE, PALETTE_TO_STRUCT_BROWN }, { 0x0, PAL_NONE },
{ 0x10FE, PALETTE_TO_STRUCT_BROWN }, { 0x9DB, PALETTE_TO_STRUCT_BROWN }, { 0x9DF, PALETTE_TO_STRUCT_BROWN }, { 0x0, PAL_NONE },
{ 0x1123, PALETTE_TO_STRUCT_BROWN }, { 0x9D8, PALETTE_TO_STRUCT_BROWN }, { 0x9DE, PALETTE_TO_STRUCT_BROWN }, { 0x0, PAL_NONE },
{ 0x1126, PALETTE_TO_STRUCT_BROWN }, { 0x9DB, PALETTE_TO_STRUCT_BROWN }, { 0x9DF, PALETTE_TO_STRUCT_BROWN }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_7_3[] = {
{ 0x986, PAL_NONE }, { 0x988, PAL_NONE }, { 0x985, PAL_NONE }, { 0x987, PAL_NONE },
{ 0x98A, PAL_NONE }, { 0x98C, PAL_NONE }, { 0x989, PAL_NONE }, { 0x98B, PAL_NONE },
{ 0x98E, PALETTE_TO_STRUCT_BROWN }, { 0x990, PALETTE_TO_STRUCT_BROWN }, { 0x98D, PALETTE_TO_STRUCT_BROWN }, { 0x98F, PALETTE_TO_STRUCT_BROWN },
{ 0x992, PALETTE_TO_STRUCT_BROWN }, { 0x994, PALETTE_TO_STRUCT_BROWN }, { 0x991, PALETTE_TO_STRUCT_BROWN }, { 0x993, PALETTE_TO_STRUCT_BROWN },
{ 0x10E7, PALETTE_TO_STRUCT_BROWN }, { 0x10E9, PALETTE_TO_STRUCT_BROWN }, { 0x10E6, PALETTE_TO_STRUCT_BROWN }, { 0x10E8, PALETTE_TO_STRUCT_BROWN },
{ 0x10EB, PALETTE_TO_STRUCT_BROWN }, { 0x10ED, PALETTE_TO_STRUCT_BROWN }, { 0x10EA, PALETTE_TO_STRUCT_BROWN }, { 0x10EC, PALETTE_TO_STRUCT_BROWN },
{ 0x110F, PALETTE_TO_STRUCT_BROWN }, { 0x1111, PALETTE_TO_STRUCT_BROWN }, { 0x110E, PALETTE_TO_STRUCT_BROWN }, { 0x1110, PALETTE_TO_STRUCT_BROWN },
{ 0x1113, PALETTE_TO_STRUCT_BROWN }, { 0x1115, PALETTE_TO_STRUCT_BROWN }, { 0x1112, PALETTE_TO_STRUCT_BROWN }, { 0x1114, PALETTE_TO_STRUCT_BROWN },
};
static const PalSpriteID _bridge_sprite_table_8_0[] = {
{ 0x9CD, PALETTE_TO_STRUCT_RED }, { 0x9D9, PALETTE_TO_STRUCT_RED }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9CE, PALETTE_TO_STRUCT_RED }, { 0x9DA, PALETTE_TO_STRUCT_RED }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9D3, PALETTE_TO_STRUCT_RED }, { 0x9D9, PALETTE_TO_STRUCT_RED }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9D4, PALETTE_TO_STRUCT_RED }, { 0x9DA, PALETTE_TO_STRUCT_RED }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x10FC, PALETTE_TO_STRUCT_RED }, { 0x9D9, PALETTE_TO_STRUCT_RED }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x10FD, PALETTE_TO_STRUCT_RED }, { 0x9DA, PALETTE_TO_STRUCT_RED }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x1124, PALETTE_TO_STRUCT_RED }, { 0x9D9, PALETTE_TO_STRUCT_RED }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x1125, PALETTE_TO_STRUCT_RED }, { 0x9DA, PALETTE_TO_STRUCT_RED }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_8_1[] = {
{ 0x9CB, PALETTE_TO_STRUCT_RED }, { 0x9D7, PALETTE_TO_STRUCT_RED }, { 0x9DD, PALETTE_TO_STRUCT_RED }, { 0x0, PAL_NONE },
{ 0x9D0, PALETTE_TO_STRUCT_RED }, { 0x9DC, PALETTE_TO_STRUCT_RED }, { 0x9E0, PALETTE_TO_STRUCT_RED }, { 0x0, PAL_NONE },
{ 0x9D1, PALETTE_TO_STRUCT_RED }, { 0x9D7, PALETTE_TO_STRUCT_RED }, { 0x9DD, PALETTE_TO_STRUCT_RED }, { 0x0, PAL_NONE },
{ 0x9D6, PALETTE_TO_STRUCT_RED }, { 0x9DC, PALETTE_TO_STRUCT_RED }, { 0x9E0, PALETTE_TO_STRUCT_RED }, { 0x0, PAL_NONE },
{ 0x10FA, PALETTE_TO_STRUCT_RED }, { 0x9D7, PALETTE_TO_STRUCT_RED }, { 0x9DD, PALETTE_TO_STRUCT_RED }, { 0x0, PAL_NONE },
{ 0x10FF, PALETTE_TO_STRUCT_RED }, { 0x9DC, PALETTE_TO_STRUCT_RED }, { 0x9E0, PALETTE_TO_STRUCT_RED }, { 0x0, PAL_NONE },
{ 0x1122, PALETTE_TO_STRUCT_RED }, { 0x9D7, PALETTE_TO_STRUCT_RED }, { 0x9DD, PALETTE_TO_STRUCT_RED }, { 0x0, PAL_NONE },
{ 0x1127, PALETTE_TO_STRUCT_RED }, { 0x9DC, PALETTE_TO_STRUCT_RED }, { 0x9E0, PALETTE_TO_STRUCT_RED }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_8_2[] = {
{ 0x9CC, PALETTE_TO_STRUCT_RED }, { 0x9D8, PALETTE_TO_STRUCT_RED }, { 0x9DE, PALETTE_TO_STRUCT_RED }, { 0x0, PAL_NONE },
{ 0x9CF, PALETTE_TO_STRUCT_RED }, { 0x9DB, PALETTE_TO_STRUCT_RED }, { 0x9DF, PALETTE_TO_STRUCT_RED }, { 0x0, PAL_NONE },
{ 0x9D2, PALETTE_TO_STRUCT_RED }, { 0x9D8, PALETTE_TO_STRUCT_RED }, { 0x9DE, PALETTE_TO_STRUCT_RED }, { 0x0, PAL_NONE },
{ 0x9D5, PALETTE_TO_STRUCT_RED }, { 0x9DB, PALETTE_TO_STRUCT_RED }, { 0x9DF, PALETTE_TO_STRUCT_RED }, { 0x0, PAL_NONE },
{ 0x10FB, PALETTE_TO_STRUCT_RED }, { 0x9D8, PALETTE_TO_STRUCT_RED }, { 0x9DE, PALETTE_TO_STRUCT_RED }, { 0x0, PAL_NONE },
{ 0x10FE, PALETTE_TO_STRUCT_RED }, { 0x9DB, PALETTE_TO_STRUCT_RED }, { 0x9DF, PALETTE_TO_STRUCT_RED }, { 0x0, PAL_NONE },
{ 0x1123, PALETTE_TO_STRUCT_RED }, { 0x9D8, PALETTE_TO_STRUCT_RED }, { 0x9DE, PALETTE_TO_STRUCT_RED }, { 0x0, PAL_NONE },
{ 0x1126, PALETTE_TO_STRUCT_RED }, { 0x9DB, PALETTE_TO_STRUCT_RED }, { 0x9DF, PALETTE_TO_STRUCT_RED }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_8_3[] = {
{ 0x986, PAL_NONE }, { 0x988, PAL_NONE }, { 0x985, PAL_NONE }, { 0x987, PAL_NONE },
{ 0x98A, PAL_NONE }, { 0x98C, PAL_NONE }, { 0x989, PAL_NONE }, { 0x98B, PAL_NONE },
{ 0x98E, PALETTE_TO_STRUCT_RED }, { 0x990, PALETTE_TO_STRUCT_RED }, { 0x98D, PALETTE_TO_STRUCT_RED }, { 0x98F, PALETTE_TO_STRUCT_RED },
{ 0x992, PALETTE_TO_STRUCT_RED }, { 0x994, PALETTE_TO_STRUCT_RED }, { 0x991, PALETTE_TO_STRUCT_RED }, { 0x993, PALETTE_TO_STRUCT_RED },
{ 0x10E7, PALETTE_TO_STRUCT_RED }, { 0x10E9, PALETTE_TO_STRUCT_RED }, { 0x10E6, PALETTE_TO_STRUCT_RED }, { 0x10E8, PALETTE_TO_STRUCT_RED },
{ 0x10EB, PALETTE_TO_STRUCT_RED }, { 0x10ED, PALETTE_TO_STRUCT_RED }, { 0x10EA, PALETTE_TO_STRUCT_RED }, { 0x10EC, PALETTE_TO_STRUCT_RED },
{ 0x110F, PALETTE_TO_STRUCT_RED }, { 0x1111, PALETTE_TO_STRUCT_RED }, { 0x110E, PALETTE_TO_STRUCT_RED }, { 0x1110, PALETTE_TO_STRUCT_RED },
{ 0x1113, PALETTE_TO_STRUCT_RED }, { 0x1115, PALETTE_TO_STRUCT_RED }, { 0x1112, PALETTE_TO_STRUCT_RED }, { 0x1114, PALETTE_TO_STRUCT_RED },
};
static const PalSpriteID _bridge_sprite_table_wood_middle[] = {
MN( SPR_BTWDN_RAIL_X_REAR ), MN( SPR_BTWDN_X_FRONT ), MN( SPR_BTWDN_X_PILLAR ), MN( 0x0 ),
MN( SPR_BTWDN_RAIL_Y_REAR ), MN( SPR_BTWDN_Y_FRONT ), MN( SPR_BTWDN_Y_PILLAR ), MN( 0x0 ),
MN( SPR_BTWDN_ROAD_X_REAR ), MN( SPR_BTWDN_X_FRONT ), MN( SPR_BTWDN_X_PILLAR ), MN( 0x0 ),
MN( SPR_BTWDN_ROAD_Y_REAR ), MN( SPR_BTWDN_Y_FRONT ), MN( SPR_BTWDN_Y_PILLAR ), MN( 0x0 ),
MN( SPR_BTWDN_MONO_X_REAR ), MN( SPR_BTWDN_X_FRONT ), MN( SPR_BTWDN_X_PILLAR ), MN( 0x0 ),
MN( SPR_BTWDN_MONO_Y_REAR ), MN( SPR_BTWDN_Y_FRONT ), MN( SPR_BTWDN_Y_PILLAR ), MN( 0x0 ),
MN( SPR_BTWDN_MGLV_X_REAR ), MN( SPR_BTWDN_X_FRONT ), MN( SPR_BTWDN_X_PILLAR ), MN( 0x0 ),
MN( SPR_BTWDN_MGLV_Y_REAR ), MN( SPR_BTWDN_Y_FRONT ), MN( SPR_BTWDN_Y_PILLAR ), MN( 0x0 ),
};
static const PalSpriteID _bridge_sprite_table_wood_heads[] = {
MN( SPR_BTWDN_RAIL_X_SLOPE_UP ), MN( SPR_BTWDN_RAIL_Y_SLOPE_UP ), MN( SPR_BTWDN_RAIL_X_SLOPE_DOWN ), MN( SPR_BTWDN_RAIL_Y_SLOPE_DOWN ),
MN( SPR_BTWDN_RAIL_RAMP_X_DOWN ), MN( SPR_BTWDN_RAIL_RAMP_Y_DOWN ), MN( SPR_BTWDN_RAIL_RAMP_X_UP ), MN( SPR_BTWDN_RAIL_RAMP_Y_UP ),
MN( SPR_BTWDN_ROAD_X_SLOPE_UP ), MN( SPR_BTWDN_ROAD_Y_SLOPE_UP ), MN( SPR_BTWDN_ROAD_X_SLOPE_DOWN ), MN( SPR_BTWDN_ROAD_Y_SLOPE_DOWN ),
MN( SPR_BTWDN_ROAD_RAMP_X_DOWN ), MN( SPR_BTWDN_ROAD_RAMP_Y_DOWN ), MN( SPR_BTWDN_ROAD_RAMP_X_UP ), MN( SPR_BTWDN_ROAD_RAMP_Y_UP ),
MN( SPR_BTWDN_MONO_X_SLOPE_UP ), MN( SPR_BTWDN_MONO_Y_SLOPE_UP ), MN( SPR_BTWDN_MONO_X_SLOPE_DOWN ), MN( SPR_BTWDN_MONO_Y_SLOPE_DOWN ),
MN( SPR_BTWDN_MONO_RAMP_X_DOWN ), MN( SPR_BTWDN_MONO_RAMP_Y_DOWN ), MN( SPR_BTWDN_MONO_RAMP_X_UP ), MN( SPR_BTWDN_MONO_RAMP_Y_UP ),
MN( SPR_BTWDN_MGLV_X_SLOPE_UP ), MN( SPR_BTWDN_MGLV_Y_SLOPE_UP ), MN( SPR_BTWDN_MGLV_X_SLOPE_DOWN ), MN( SPR_BTWDN_MGLV_Y_SLOPE_DOWN ),
MN( SPR_BTWDN_MGLV_RAMP_X_DOWN ), MN( SPR_BTWDN_MGLV_RAMP_Y_DOWN ), MN( SPR_BTWDN_MGLV_RAMP_X_UP ), MN( SPR_BTWDN_MGLV_RAMP_Y_UP ),
};
static const PalSpriteID _bridge_sprite_table_concrete_middle[] = {
MR( SPR_BTCON_RAIL_X ), MR( SPR_BTCON_X_FRONT ), MN( SPR_BTCON_X_PILLAR ), MN( 0x0 ),
MR( SPR_BTCON_RAIL_Y ), MR( SPR_BTCON_Y_FRONT ), MN( SPR_BTCON_Y_PILLAR ), MN( 0x0 ),
MR( SPR_BTCON_ROAD_X ), MR( SPR_BTCON_X_FRONT ), MN( SPR_BTCON_X_PILLAR ), MN( 0x0 ),
MR( SPR_BTCON_ROAD_Y ), MR( SPR_BTCON_Y_FRONT ), MN( SPR_BTCON_Y_PILLAR ), MN( 0x0 ),
MR( SPR_BTCON_MONO_X ), MR( SPR_BTCON_X_FRONT ), MN( SPR_BTCON_X_PILLAR ), MN( 0x0 ),
MR( SPR_BTCON_MONO_Y ), MR( SPR_BTCON_Y_FRONT ), MN( SPR_BTCON_Y_PILLAR ), MN( 0x0 ),
MR( SPR_BTCON_MGLV_X ), MR( SPR_BTCON_X_FRONT ), MN( SPR_BTCON_X_PILLAR ), MN( 0x0 ),
MR( SPR_BTCON_MGLV_Y ), MR( SPR_BTCON_Y_FRONT ), MN( SPR_BTCON_Y_PILLAR ), MN( 0x0 ),
};
static const PalSpriteID _bridge_sprite_table_concrete_heads[] = {
MN( SPR_BTGEN_RAIL_X_SLOPE_UP ), MN( SPR_BTGEN_RAIL_Y_SLOPE_UP ), MN( SPR_BTGEN_RAIL_X_SLOPE_DOWN ), MN( SPR_BTGEN_RAIL_Y_SLOPE_DOWN ),
MN( SPR_BTGEN_RAIL_RAMP_X_DOWN ), MN( SPR_BTGEN_RAIL_RAMP_Y_DOWN ), MN( SPR_BTGEN_RAIL_RAMP_X_UP ), MN( SPR_BTGEN_RAIL_RAMP_Y_UP ),
MR( SPR_BTGEN_ROAD_X_SLOPE_UP ), MR( SPR_BTGEN_ROAD_Y_SLOPE_UP ), MR( SPR_BTGEN_ROAD_X_SLOPE_DOWN ), MR( SPR_BTGEN_ROAD_Y_SLOPE_DOWN ),
MR( SPR_BTGEN_ROAD_RAMP_X_DOWN ), MR( SPR_BTGEN_ROAD_RAMP_Y_DOWN ), MR( SPR_BTGEN_ROAD_RAMP_X_UP ), MR( SPR_BTGEN_ROAD_RAMP_Y_UP ),
MR( SPR_BTGEN_MONO_X_SLOPE_UP ), MR( SPR_BTGEN_MONO_Y_SLOPE_UP ), MR( SPR_BTGEN_MONO_X_SLOPE_DOWN ), MR( SPR_BTGEN_MONO_Y_SLOPE_DOWN ),
MR( SPR_BTGEN_MONO_RAMP_X_DOWN ), MR( SPR_BTGEN_MONO_RAMP_Y_DOWN ), MR( SPR_BTGEN_MONO_RAMP_X_UP ), MR( SPR_BTGEN_MONO_RAMP_Y_UP ),
MR( SPR_BTGEN_MGLV_X_SLOPE_UP ), MR( SPR_BTGEN_MGLV_Y_SLOPE_UP ), MR( SPR_BTGEN_MGLV_X_SLOPE_DOWN ), MR( SPR_BTGEN_MGLV_Y_SLOPE_DOWN ),
MR( SPR_BTGEN_MGLV_RAMP_X_DOWN ), MR( SPR_BTGEN_MGLV_RAMP_Y_DOWN ), MR( SPR_BTGEN_MGLV_RAMP_X_UP ), MR( SPR_BTGEN_MGLV_RAMP_Y_UP ),
};
static const PalSpriteID _bridge_sprite_table_archgirder_middle[] = {
MN( SPR_BTSGA_RAIL_X_REAR ), MN( SPR_BTSGA_X_FRONT ), MN( SPR_BTSGA_X_PILLAR ), MN( 0x0 ),
MN( SPR_BTSGA_RAIL_Y_REAR ), MN( SPR_BTSGA_Y_FRONT ), MN( SPR_BTSGA_Y_PILLAR ), MN( 0x0 ),
MN( SPR_BTSGA_ROAD_X_REAR ), MN( SPR_BTSGA_X_FRONT ), MN( SPR_BTSGA_X_PILLAR ), MN( 0x0 ),
MN( SPR_BTSGA_ROAD_Y_REAR ), MN( SPR_BTSGA_Y_FRONT ), MN( SPR_BTSGA_Y_PILLAR ), MN( 0x0 ),
MN( SPR_BTSGA_MONO_X_REAR ), MN( SPR_BTSGA_X_FRONT ), MN( SPR_BTSGA_X_PILLAR ), MN( 0x0 ),
MN( SPR_BTSGA_MONO_Y_REAR ), MN( SPR_BTSGA_Y_FRONT ), MN( SPR_BTSGA_Y_PILLAR ), MN( 0x0 ),
MN( SPR_BTSGA_MGLV_X_REAR ), MN( SPR_BTSGA_X_FRONT ), MN( SPR_BTSGA_X_PILLAR ), MN( 0x0 ),
MN( SPR_BTSGA_MGLV_Y_REAR ), MN( SPR_BTSGA_Y_FRONT ), MN( SPR_BTSGA_Y_PILLAR ), MN( 0x0 ),
};
static const PalSpriteID _bridge_sprite_table_archgirder_heads[] = {
MN( SPR_BTGEN_RAIL_X_SLOPE_UP ), MN( SPR_BTGEN_RAIL_Y_SLOPE_UP ), MN( SPR_BTGEN_RAIL_X_SLOPE_DOWN ), MN( SPR_BTGEN_RAIL_Y_SLOPE_DOWN ),
MN( SPR_BTGEN_RAIL_RAMP_X_DOWN ), MN( SPR_BTGEN_RAIL_RAMP_Y_DOWN ), MN( SPR_BTGEN_RAIL_RAMP_X_UP ), MN( SPR_BTGEN_RAIL_RAMP_Y_UP ),
MW( SPR_BTGEN_ROAD_X_SLOPE_UP ), MW( SPR_BTGEN_ROAD_Y_SLOPE_UP ), MW( SPR_BTGEN_ROAD_X_SLOPE_DOWN ), MW( SPR_BTGEN_ROAD_Y_SLOPE_DOWN ),
MW( SPR_BTGEN_ROAD_RAMP_X_DOWN ), MW( SPR_BTGEN_ROAD_RAMP_Y_DOWN ), MW( SPR_BTGEN_ROAD_RAMP_X_UP ), MW( SPR_BTGEN_ROAD_RAMP_Y_UP ),
MW( SPR_BTGEN_MONO_X_SLOPE_UP ), MW( SPR_BTGEN_MONO_Y_SLOPE_UP ), MW( SPR_BTGEN_MONO_X_SLOPE_DOWN ), MW( SPR_BTGEN_MONO_Y_SLOPE_DOWN ),
MW( SPR_BTGEN_MONO_RAMP_X_DOWN ), MW( SPR_BTGEN_MONO_RAMP_Y_DOWN ), MW( SPR_BTGEN_MONO_RAMP_X_UP ), MW( SPR_BTGEN_MONO_RAMP_Y_UP ),
MW( SPR_BTGEN_MGLV_X_SLOPE_UP ), MW( SPR_BTGEN_MGLV_Y_SLOPE_UP ), MW( SPR_BTGEN_MGLV_X_SLOPE_DOWN ), MW( SPR_BTGEN_MGLV_Y_SLOPE_DOWN ),
MW( SPR_BTGEN_MGLV_RAMP_X_DOWN ), MW( SPR_BTGEN_MGLV_RAMP_Y_DOWN ), MW( SPR_BTGEN_MGLV_RAMP_X_UP ), MW( SPR_BTGEN_MGLV_RAMP_Y_UP ),
};
static const PalSpriteID _bridge_sprite_table_concrete_suspended_A[] = {
MC( SPR_BTSUS_RAIL_X_REAR_TILE_A ), MC( SPR_BTSUS_X_FRONT_TILE_A ), MC( SPR_BTSUS_X_PILLAR_TILE_A ), MN( 0x0 ),
MC( SPR_BTSUS_RAIL_Y_REAR_TILE_A ), MC( SPR_BTSUS_Y_FRONT_TILE_A ), MC( SPR_BTSUS_Y_PILLAR_TILE_A ), MN( 0x0 ),
MC( SPR_BTSUS_ROAD_X_REAR_TILE_A ), MC( SPR_BTSUS_X_FRONT_TILE_A ), MC( SPR_BTSUS_X_PILLAR_TILE_A ), MN( 0x0 ),
MC( SPR_BTSUS_ROAD_Y_REAR_TILE_A ), MC( SPR_BTSUS_Y_FRONT_TILE_A ), MC( SPR_BTSUS_Y_PILLAR_TILE_A ), MN( 0x0 ),
MC( SPR_BTSUS_MONO_X_REAR_TILE_A ), MC( SPR_BTSUS_X_FRONT_TILE_A ), MC( SPR_BTSUS_X_PILLAR_TILE_A ), MN( 0x0 ),
MC( SPR_BTSUS_MONO_Y_REAR_TILE_A ), MC( SPR_BTSUS_Y_FRONT_TILE_A ), MC( SPR_BTSUS_Y_PILLAR_TILE_A ), MN( 0x0 ),
MC( SPR_BTSUS_MGLV_X_REAR_TILE_A ), MC( SPR_BTSUS_X_FRONT_TILE_A ), MC( SPR_BTSUS_X_PILLAR_TILE_A ), MN( 0x0 ),
MC( SPR_BTSUS_MGLV_Y_REAR_TILE_A ), MC( SPR_BTSUS_Y_FRONT_TILE_A ), MC( SPR_BTSUS_Y_PILLAR_TILE_A ), MN( 0x0 ),
};
static const PalSpriteID _bridge_sprite_table_concrete_suspended_B[] = {
MC( SPR_BTSUS_RAIL_X_REAR_TILE_B ), MC( SPR_BTSUS_X_FRONT_TILE_B ), MC( SPR_BTSUS_X_PILLAR_TILE_B ), MN( 0x0 ),
MC( SPR_BTSUS_RAIL_Y_REAR_TILE_B ), MC( SPR_BTSUS_Y_FRONT_TILE_B ), MC( SPR_BTSUS_Y_PILLAR_TILE_B ), MN( 0x0 ),
MC( SPR_BTSUS_ROAD_X_REAR_TILE_B ), MC( SPR_BTSUS_X_FRONT_TILE_B ), MC( SPR_BTSUS_X_PILLAR_TILE_B ), MN( 0x0 ),
MC( SPR_BTSUS_ROAD_Y_REAR_TILE_B ), MC( SPR_BTSUS_Y_FRONT_TILE_B ), MC( SPR_BTSUS_Y_PILLAR_TILE_B ), MN( 0x0 ),
MC( SPR_BTSUS_MONO_X_REAR_TILE_B ), MC( SPR_BTSUS_X_FRONT_TILE_B ), MC( SPR_BTSUS_X_PILLAR_TILE_B ), MN( 0x0 ),
MC( SPR_BTSUS_MONO_Y_REAR_TILE_B ), MC( SPR_BTSUS_Y_FRONT_TILE_B ), MC( SPR_BTSUS_Y_PILLAR_TILE_B ), MN( 0x0 ),
MC( SPR_BTSUS_MGLV_X_REAR_TILE_B ), MC( SPR_BTSUS_X_FRONT_TILE_B ), MC( SPR_BTSUS_X_PILLAR_TILE_B ), MN( 0x0 ),
MC( SPR_BTSUS_MGLV_Y_REAR_TILE_B ), MC( SPR_BTSUS_Y_FRONT_TILE_B ), MC( SPR_BTSUS_Y_PILLAR_TILE_B ), MN( 0x0 ),
};
static const PalSpriteID _bridge_sprite_table_concrete_suspended_C[] = {
MC( SPR_BTSUS_RAIL_X_REAR_TILE_C ), MC( SPR_BTSUS_X_FRONT_TILE_C ), MC( SPR_BTSUS_X_PILLAR_TILE_C ), MN( 0x0 ),
MC( SPR_BTSUS_RAIL_Y_REAR_TILE_C ), MC( SPR_BTSUS_Y_FRONT_TILE_C ), MC( SPR_BTSUS_Y_PILLAR_TILE_C ), MN( 0x0 ),
MC( SPR_BTSUS_ROAD_X_REAR_TILE_C ), MC( SPR_BTSUS_X_FRONT_TILE_C ), MC( SPR_BTSUS_X_PILLAR_TILE_C ), MN( 0x0 ),
MC( SPR_BTSUS_ROAD_Y_REAR_TILE_C ), MC( SPR_BTSUS_Y_FRONT_TILE_C ), MC( SPR_BTSUS_Y_PILLAR_TILE_C ), MN( 0x0 ),
MC( SPR_BTSUS_MONO_X_REAR_TILE_C ), MC( SPR_BTSUS_X_FRONT_TILE_C ), MC( SPR_BTSUS_X_PILLAR_TILE_C ), MN( 0x0 ),
MC( SPR_BTSUS_MONO_Y_REAR_TILE_C ), MC( SPR_BTSUS_Y_FRONT_TILE_C ), MC( SPR_BTSUS_Y_PILLAR_TILE_C ), MN( 0x0 ),
MC( SPR_BTSUS_MGLV_X_REAR_TILE_C ), MC( SPR_BTSUS_X_FRONT_TILE_C ), MC( SPR_BTSUS_X_PILLAR_TILE_C ), MN( 0x0 ),
MC( SPR_BTSUS_MGLV_Y_REAR_TILE_C ), MC( SPR_BTSUS_Y_FRONT_TILE_C ), MC( SPR_BTSUS_Y_PILLAR_TILE_C ), MN( 0x0 ),
};
static const PalSpriteID _bridge_sprite_table_concrete_suspended_D[] = {
MC( SPR_BTSUS_RAIL_X_REAR_TILE_D ), MC( SPR_BTSUS_X_FRONT_TILE_D ), MC( SPR_BTSUS_X_PILLAR_TILE_D ), MN( 0x0 ),
MC( SPR_BTSUS_RAIL_Y_REAR_TILE_D ), MC( SPR_BTSUS_Y_FRONT_TILE_D ), MC( SPR_BTSUS_Y_PILLAR_TILE_D ), MN( 0x0 ),
MC( SPR_BTSUS_ROAD_X_REAR_TILE_D ), MC( SPR_BTSUS_X_FRONT_TILE_D ), MC( SPR_BTSUS_X_PILLAR_TILE_D ), MN( 0x0 ),
MC( SPR_BTSUS_ROAD_Y_REAR_TILE_D ), MC( SPR_BTSUS_Y_FRONT_TILE_D ), MC( SPR_BTSUS_Y_PILLAR_TILE_D ), MN( 0x0 ),
MC( SPR_BTSUS_MONO_X_REAR_TILE_D ), MC( SPR_BTSUS_X_FRONT_TILE_D ), MC( SPR_BTSUS_X_PILLAR_TILE_D ), MN( 0x0 ),
MC( SPR_BTSUS_MONO_Y_REAR_TILE_D ), MC( SPR_BTSUS_Y_FRONT_TILE_D ), MC( SPR_BTSUS_Y_PILLAR_TILE_D ), MN( 0x0 ),
MC( SPR_BTSUS_MGLV_X_REAR_TILE_D ), MC( SPR_BTSUS_X_FRONT_TILE_D ), MC( SPR_BTSUS_X_PILLAR_TILE_D ), MN( 0x0 ),
MC( SPR_BTSUS_MGLV_Y_REAR_TILE_D ), MC( SPR_BTSUS_Y_FRONT_TILE_D ), MC( SPR_BTSUS_Y_PILLAR_TILE_D ), MN( 0x0 ),
};
static const PalSpriteID _bridge_sprite_table_concrete_suspended_E[] = {
MC( SPR_BTSUS_RAIL_X_REAR_TILE_E ), MC( SPR_BTSUS_X_FRONT_TILE_E ), MC( SPR_BTSUS_X_PILLAR_TILE_E ), MN( 0x0 ),
MC( SPR_BTSUS_RAIL_Y_REAR_TILE_E ), MC( SPR_BTSUS_Y_FRONT_TILE_E ), MC( SPR_BTSUS_Y_PILLAR_TILE_E ), MN( 0x0 ),
MC( SPR_BTSUS_ROAD_X_REAR_TILE_E ), MC( SPR_BTSUS_X_FRONT_TILE_E ), MC( SPR_BTSUS_X_PILLAR_TILE_E ), MN( 0x0 ),
MC( SPR_BTSUS_ROAD_Y_REAR_TILE_E ), MC( SPR_BTSUS_Y_FRONT_TILE_E ), MC( SPR_BTSUS_Y_PILLAR_TILE_E ), MN( 0x0 ),
MC( SPR_BTSUS_MONO_X_REAR_TILE_E ), MC( SPR_BTSUS_X_FRONT_TILE_E ), MC( SPR_BTSUS_X_PILLAR_TILE_E ), MN( 0x0 ),
MC( SPR_BTSUS_MONO_Y_REAR_TILE_E ), MC( SPR_BTSUS_Y_FRONT_TILE_E ), MC( SPR_BTSUS_Y_PILLAR_TILE_E ), MN( 0x0 ),
MC( SPR_BTSUS_MGLV_X_REAR_TILE_E ), MC( SPR_BTSUS_X_FRONT_TILE_E ), MC( SPR_BTSUS_X_PILLAR_TILE_E ), MN( 0x0 ),
MC( SPR_BTSUS_MGLV_Y_REAR_TILE_E ), MC( SPR_BTSUS_Y_FRONT_TILE_E ), MC( SPR_BTSUS_Y_PILLAR_TILE_E ), MN( 0x0 ),
};
static const PalSpriteID _bridge_sprite_table_concrete_suspended_F[] = {
MC( SPR_BTSUS_RAIL_X_REAR_TILE_F ), MC( SPR_BTSUS_X_FRONT ), MN( 0x0 ), MN( 0x0 ),
MC( SPR_BTSUS_RAIL_Y_REAR_TILE_F ), MC( SPR_BTSUS_Y_FRONT ), MN( 0x0 ), MN( 0x0 ),
MC( SPR_BTSUS_ROAD_X_REAR_TILE_F ), MC( SPR_BTSUS_X_FRONT ), MN( 0x0 ), MN( 0x0 ),
MC( SPR_BTSUS_ROAD_Y_REAR_TILE_F ), MC( SPR_BTSUS_Y_FRONT ), MN( 0x0 ), MN( 0x0 ),
MC( SPR_BTSUS_MONO_X_REAR_TILE_F ), MC( SPR_BTSUS_X_FRONT ), MN( 0x0 ), MN( 0x0 ),
MC( SPR_BTSUS_MONO_Y_REAR_TILE_F ), MC( SPR_BTSUS_Y_FRONT ), MN( 0x0 ), MN( 0x0 ),
MC( SPR_BTSUS_MGLV_X_REAR_TILE_F ), MC( SPR_BTSUS_X_FRONT ), MN( 0x0 ), MN( 0x0 ),
MC( SPR_BTSUS_MGLV_Y_REAR_TILE_F ), MC( SPR_BTSUS_Y_FRONT ), MN( 0x0 ), MN( 0x0 ),
};
static const PalSpriteID _bridge_sprite_table_concrete_suspended_heads[] = {
MN( SPR_BTGEN_RAIL_X_SLOPE_UP ), MN( SPR_BTGEN_RAIL_Y_SLOPE_UP ), MN( SPR_BTGEN_RAIL_X_SLOPE_DOWN ), MN( SPR_BTGEN_RAIL_Y_SLOPE_DOWN ),
MN( SPR_BTGEN_RAIL_RAMP_X_DOWN ), MN( SPR_BTGEN_RAIL_RAMP_Y_DOWN ), MN( SPR_BTGEN_RAIL_RAMP_X_UP ), MN( SPR_BTGEN_RAIL_RAMP_Y_UP ),
MC( SPR_BTGEN_ROAD_X_SLOPE_UP ), MC( SPR_BTGEN_ROAD_Y_SLOPE_UP ), MC( SPR_BTGEN_ROAD_X_SLOPE_DOWN ), MC( SPR_BTGEN_ROAD_Y_SLOPE_DOWN ),
MC( SPR_BTGEN_ROAD_RAMP_X_DOWN ), MC( SPR_BTGEN_ROAD_RAMP_Y_DOWN ), MC( SPR_BTGEN_ROAD_RAMP_X_UP ), MC( SPR_BTGEN_ROAD_RAMP_Y_UP ),
MC( SPR_BTGEN_MONO_X_SLOPE_UP ), MC( SPR_BTGEN_MONO_Y_SLOPE_UP ), MC( SPR_BTGEN_MONO_X_SLOPE_DOWN ), MC( SPR_BTGEN_MONO_Y_SLOPE_DOWN ),
MC( SPR_BTGEN_MONO_RAMP_X_DOWN ), MC( SPR_BTGEN_MONO_RAMP_Y_DOWN ), MC( SPR_BTGEN_MONO_RAMP_X_UP ), MC( SPR_BTGEN_MONO_RAMP_Y_UP ),
MC( SPR_BTGEN_MGLV_X_SLOPE_UP ), MC( SPR_BTGEN_MGLV_Y_SLOPE_UP ), MC( SPR_BTGEN_MGLV_X_SLOPE_DOWN ), MC( SPR_BTGEN_MGLV_Y_SLOPE_DOWN ),
MC( SPR_BTGEN_MGLV_RAMP_X_DOWN ), MC( SPR_BTGEN_MGLV_RAMP_Y_DOWN ), MC( SPR_BTGEN_MGLV_RAMP_X_UP ), MC( SPR_BTGEN_MGLV_RAMP_Y_UP ),
};
static const PalSpriteID _bridge_sprite_table_9_0[] = {
{ 0x9F9, PAL_NONE }, { 0x9FD, PAL_NONE }, { 0x9C9, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9FA, PAL_NONE }, { 0x9FE, PAL_NONE }, { 0x9CA, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9FB, PAL_NONE }, { 0x9FD, PAL_NONE }, { 0x9C9, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x9FC, PAL_NONE }, { 0x9FE, PAL_NONE }, { 0x9CA, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x110A, PAL_NONE }, { 0x9FD, PAL_NONE }, { 0x9C9, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x110B, PAL_NONE }, { 0x9FE, PAL_NONE }, { 0x9CA, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x1132, PAL_NONE }, { 0x9FD, PAL_NONE }, { 0x9C9, PAL_NONE }, { 0x0, PAL_NONE },
{ 0x1133, PAL_NONE }, { 0x9FE, PAL_NONE }, { 0x9CA, PAL_NONE }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_10_0[] = {
{ 0xA0B, PAL_NONE }, { 0xA01, PAL_NONE }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA0C, PAL_NONE }, { 0xA02, PAL_NONE }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA11, PAL_NONE }, { 0xA01, PAL_NONE }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA12, PAL_NONE }, { 0xA02, PAL_NONE }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA17, PAL_NONE }, { 0xA01, PAL_NONE }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA18, PAL_NONE }, { 0xA02, PAL_NONE }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA1D, PAL_NONE }, { 0xA01, PAL_NONE }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA1E, PAL_NONE }, { 0xA02, PAL_NONE }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_10_1[] = {
{ 0xA09, PAL_NONE }, { 0x9FF, PAL_NONE }, { 0xA05, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA0E, PAL_NONE }, { 0xA04, PAL_NONE }, { 0xA08, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA0F, PAL_NONE }, { 0x9FF, PAL_NONE }, { 0xA05, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA14, PAL_NONE }, { 0xA04, PAL_NONE }, { 0xA08, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA15, PAL_NONE }, { 0x9FF, PAL_NONE }, { 0xA05, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA1A, PAL_NONE }, { 0xA04, PAL_NONE }, { 0xA08, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA1B, PAL_NONE }, { 0x9FF, PAL_NONE }, { 0xA05, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA20, PAL_NONE }, { 0xA04, PAL_NONE }, { 0xA08, PAL_NONE }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_10_2[] = {
{ 0xA0A, PAL_NONE }, { 0xA00, PAL_NONE }, { 0xA06, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA0D, PAL_NONE }, { 0xA03, PAL_NONE }, { 0xA07, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA10, PAL_NONE }, { 0xA00, PAL_NONE }, { 0xA06, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA13, PAL_NONE }, { 0xA03, PAL_NONE }, { 0xA07, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA16, PAL_NONE }, { 0xA00, PAL_NONE }, { 0xA06, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA19, PAL_NONE }, { 0xA03, PAL_NONE }, { 0xA07, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA1C, PAL_NONE }, { 0xA00, PAL_NONE }, { 0xA06, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA1F, PAL_NONE }, { 0xA03, PAL_NONE }, { 0xA07, PAL_NONE }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_11_0[] = {
{ 0xA0B, PALETTE_TO_STRUCT_YELLOW }, { 0xA01, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA0C, PALETTE_TO_STRUCT_YELLOW }, { 0xA02, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA11, PALETTE_TO_STRUCT_YELLOW }, { 0xA01, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA12, PALETTE_TO_STRUCT_YELLOW }, { 0xA02, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA17, PALETTE_TO_STRUCT_YELLOW }, { 0xA01, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA18, PALETTE_TO_STRUCT_YELLOW }, { 0xA02, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA1D, PALETTE_TO_STRUCT_YELLOW }, { 0xA01, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA1E, PALETTE_TO_STRUCT_YELLOW }, { 0xA02, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_11_1[] = {
{ 0xA09, PALETTE_TO_STRUCT_YELLOW }, { 0x9FF, PALETTE_TO_STRUCT_YELLOW }, { 0xA05, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0xA0E, PALETTE_TO_STRUCT_YELLOW }, { 0xA04, PALETTE_TO_STRUCT_YELLOW }, { 0xA08, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0xA0F, PALETTE_TO_STRUCT_YELLOW }, { 0x9FF, PALETTE_TO_STRUCT_YELLOW }, { 0xA05, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0xA14, PALETTE_TO_STRUCT_YELLOW }, { 0xA04, PALETTE_TO_STRUCT_YELLOW }, { 0xA08, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0xA15, PALETTE_TO_STRUCT_YELLOW }, { 0x9FF, PALETTE_TO_STRUCT_YELLOW }, { 0xA05, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0xA1A, PALETTE_TO_STRUCT_YELLOW }, { 0xA04, PALETTE_TO_STRUCT_YELLOW }, { 0xA08, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0xA1B, PALETTE_TO_STRUCT_YELLOW }, { 0x9FF, PALETTE_TO_STRUCT_YELLOW }, { 0xA05, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0xA20, PALETTE_TO_STRUCT_YELLOW }, { 0xA04, PALETTE_TO_STRUCT_YELLOW }, { 0xA08, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_11_2[] = {
{ 0xA0A, PALETTE_TO_STRUCT_YELLOW }, { 0xA00, PALETTE_TO_STRUCT_YELLOW }, { 0xA06, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0xA0D, PALETTE_TO_STRUCT_YELLOW }, { 0xA03, PALETTE_TO_STRUCT_YELLOW }, { 0xA07, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0xA10, PALETTE_TO_STRUCT_YELLOW }, { 0xA00, PALETTE_TO_STRUCT_YELLOW }, { 0xA06, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0xA13, PALETTE_TO_STRUCT_YELLOW }, { 0xA03, PALETTE_TO_STRUCT_YELLOW }, { 0xA07, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0xA16, PALETTE_TO_STRUCT_YELLOW }, { 0xA00, PALETTE_TO_STRUCT_YELLOW }, { 0xA06, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0xA19, PALETTE_TO_STRUCT_YELLOW }, { 0xA03, PALETTE_TO_STRUCT_YELLOW }, { 0xA07, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0xA1C, PALETTE_TO_STRUCT_YELLOW }, { 0xA00, PALETTE_TO_STRUCT_YELLOW }, { 0xA06, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
{ 0xA1F, PALETTE_TO_STRUCT_YELLOW }, { 0xA03, PALETTE_TO_STRUCT_YELLOW }, { 0xA07, PALETTE_TO_STRUCT_YELLOW }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_12_0[] = {
{ 0xA0B, PALETTE_TO_STRUCT_GREY }, { 0xA01, PALETTE_TO_STRUCT_GREY }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA0C, PALETTE_TO_STRUCT_GREY }, { 0xA02, PALETTE_TO_STRUCT_GREY }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA11, PALETTE_TO_STRUCT_GREY }, { 0xA01, PALETTE_TO_STRUCT_GREY }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA12, PALETTE_TO_STRUCT_GREY }, { 0xA02, PALETTE_TO_STRUCT_GREY }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA17, PALETTE_TO_STRUCT_GREY }, { 0xA01, PALETTE_TO_STRUCT_GREY }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA18, PALETTE_TO_STRUCT_GREY }, { 0xA02, PALETTE_TO_STRUCT_GREY }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA1D, PALETTE_TO_STRUCT_GREY }, { 0xA01, PALETTE_TO_STRUCT_GREY }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
{ 0xA1E, PALETTE_TO_STRUCT_GREY }, { 0xA02, PALETTE_TO_STRUCT_GREY }, { 0x0, PAL_NONE }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_12_1[] = {
{ 0xA09, PALETTE_TO_STRUCT_GREY }, { 0x9FF, PALETTE_TO_STRUCT_GREY }, { 0xA05, PALETTE_TO_STRUCT_GREY }, { 0x0, PAL_NONE },
{ 0xA0E, PALETTE_TO_STRUCT_GREY }, { 0xA04, PALETTE_TO_STRUCT_GREY }, { 0xA08, PALETTE_TO_STRUCT_GREY }, { 0x0, PAL_NONE },
{ 0xA0F, PALETTE_TO_STRUCT_GREY }, { 0x9FF, PALETTE_TO_STRUCT_GREY }, { 0xA05, PALETTE_TO_STRUCT_GREY }, { 0x0, PAL_NONE },
{ 0xA14, PALETTE_TO_STRUCT_GREY }, { 0xA04, PALETTE_TO_STRUCT_GREY }, { 0xA08, PALETTE_TO_STRUCT_GREY }, { 0x0, PAL_NONE },
{ 0xA15, PALETTE_TO_STRUCT_GREY }, { 0x9FF, PALETTE_TO_STRUCT_GREY }, { 0xA05, PALETTE_TO_STRUCT_GREY }, { 0x0, PAL_NONE },
{ 0xA1A, PALETTE_TO_STRUCT_GREY }, { 0xA04, PALETTE_TO_STRUCT_GREY }, { 0xA08, PALETTE_TO_STRUCT_GREY }, { 0x0, PAL_NONE },
{ 0xA1B, PALETTE_TO_STRUCT_GREY }, { 0x9FF, PALETTE_TO_STRUCT_GREY }, { 0xA05, PALETTE_TO_STRUCT_GREY }, { 0x0, PAL_NONE },
{ 0xA20, PALETTE_TO_STRUCT_GREY }, { 0xA04, PALETTE_TO_STRUCT_GREY }, { 0xA08, PALETTE_TO_STRUCT_GREY }, { 0x0, PAL_NONE },
};
static const PalSpriteID _bridge_sprite_table_12_2[] = {
{ 0xA0A, PALETTE_TO_STRUCT_GREY }, { 0xA00, PALETTE_TO_STRUCT_GREY }, { 0xA06, PALETTE_TO_STRUCT_GREY }, { 0x0, PAL_NONE },
{ 0xA0D, PALETTE_TO_STRUCT_GREY }, { 0xA03, PALETTE_TO_STRUCT_GREY }, { 0xA07, PALETTE_TO_STRUCT_GREY }, { 0x0, PAL_NONE },
{ 0xA10, PALETTE_TO_STRUCT_GREY }, { 0xA00, PALETTE_TO_STRUCT_GREY }, { 0xA06, PALETTE_TO_STRUCT_GREY }, { 0x0, PAL_NONE },
{ 0xA13, PALETTE_TO_STRUCT_GREY }, { 0xA03, PALETTE_TO_STRUCT_GREY }, { 0xA07, PALETTE_TO_STRUCT_GREY }, { 0x0, PAL_NONE },
{ 0xA16, PALETTE_TO_STRUCT_GREY }, { 0xA00, PALETTE_TO_STRUCT_GREY }, { 0xA06, PALETTE_TO_STRUCT_GREY }, { 0x0, PAL_NONE },
{ 0xA19, PALETTE_TO_STRUCT_GREY }, { 0xA03, PALETTE_TO_STRUCT_GREY }, { 0xA07, PALETTE_TO_STRUCT_GREY }, { 0x0, PAL_NONE },
{ 0xA1C, PALETTE_TO_STRUCT_GREY }, { 0xA00, PALETTE_TO_STRUCT_GREY }, { 0xA06, PALETTE_TO_STRUCT_GREY }, { 0x0, PAL_NONE },
{ 0xA1F, PALETTE_TO_STRUCT_GREY }, { 0xA03, PALETTE_TO_STRUCT_GREY }, { 0xA07, PALETTE_TO_STRUCT_GREY }, { 0x0, PAL_NONE },
};
static const PalSpriteID * const _bridge_sprite_table_archgirder[] = {
_bridge_sprite_table_archgirder_middle,
_bridge_sprite_table_archgirder_middle,
_bridge_sprite_table_archgirder_middle,
_bridge_sprite_table_archgirder_middle,
_bridge_sprite_table_archgirder_middle,
_bridge_sprite_table_archgirder_middle,
_bridge_sprite_table_archgirder_heads,
};
static const PalSpriteID * const _bridge_sprite_table_4[] = {
_bridge_sprite_table_4_0,
_bridge_sprite_table_4_1,
_bridge_sprite_table_4_2,
_bridge_sprite_table_4_3,
_bridge_sprite_table_4_4,
_bridge_sprite_table_4_5,
_bridge_sprite_table_4_6,
};
static const PalSpriteID * const _bridge_sprite_table_5[] = {
_bridge_sprite_table_5_0,
_bridge_sprite_table_5_1,
_bridge_sprite_table_5_2,
_bridge_sprite_table_5_3,
_bridge_sprite_table_5_4,
_bridge_sprite_table_5_5,
_bridge_sprite_table_5_6,
};
static const PalSpriteID * const _bridge_sprite_table_concrete_suspended[] = {
_bridge_sprite_table_concrete_suspended_A,
_bridge_sprite_table_concrete_suspended_B,
_bridge_sprite_table_concrete_suspended_C,
_bridge_sprite_table_concrete_suspended_D,
_bridge_sprite_table_concrete_suspended_E,
_bridge_sprite_table_concrete_suspended_F,
_bridge_sprite_table_concrete_suspended_heads,
};
static const PalSpriteID * const _bridge_sprite_table_6[] = {
_bridge_sprite_table_6_0,
_bridge_sprite_table_6_1,
_bridge_sprite_table_6_2,
_bridge_sprite_table_6_2,
_bridge_sprite_table_6_2,
_bridge_sprite_table_6_2,
_bridge_sprite_table_6_3,
};
static const PalSpriteID * const _bridge_sprite_table_7[] = {
_bridge_sprite_table_7_0,
_bridge_sprite_table_7_1,
_bridge_sprite_table_7_2,
_bridge_sprite_table_7_2,
_bridge_sprite_table_7_2,
_bridge_sprite_table_7_2,
_bridge_sprite_table_7_3,
};
static const PalSpriteID * const _bridge_sprite_table_8[] = {
_bridge_sprite_table_8_0,
_bridge_sprite_table_8_1,
_bridge_sprite_table_8_2,
_bridge_sprite_table_8_2,
_bridge_sprite_table_8_2,
_bridge_sprite_table_8_2,
_bridge_sprite_table_8_3,
};
static const PalSpriteID * const _bridge_sprite_table_wood[] = {
_bridge_sprite_table_wood_middle,
_bridge_sprite_table_wood_middle,
_bridge_sprite_table_wood_middle,
_bridge_sprite_table_wood_middle,
_bridge_sprite_table_wood_middle,
_bridge_sprite_table_wood_middle,
_bridge_sprite_table_wood_heads,
};
static const PalSpriteID * const _bridge_sprite_table_concrete[] = {
_bridge_sprite_table_concrete_middle,
_bridge_sprite_table_concrete_middle,
_bridge_sprite_table_concrete_middle,
_bridge_sprite_table_concrete_middle,
_bridge_sprite_table_concrete_middle,
_bridge_sprite_table_concrete_middle,
_bridge_sprite_table_concrete_heads,
};
static const PalSpriteID * const _bridge_sprite_table_9[] = {
_bridge_sprite_table_9_0,
_bridge_sprite_table_9_0,
_bridge_sprite_table_9_0,
_bridge_sprite_table_9_0,
_bridge_sprite_table_9_0,
_bridge_sprite_table_9_0,
_bridge_sprite_table_4_6,
};
static const PalSpriteID * const _bridge_sprite_table_10[] = {
_bridge_sprite_table_10_0,
_bridge_sprite_table_10_1,
_bridge_sprite_table_10_2,
_bridge_sprite_table_10_2,
_bridge_sprite_table_10_2,
_bridge_sprite_table_10_2,
_bridge_sprite_table_4_6,
};
static const PalSpriteID * const _bridge_sprite_table_11[] = {
_bridge_sprite_table_11_0,
_bridge_sprite_table_11_1,
_bridge_sprite_table_11_2,
_bridge_sprite_table_11_2,
_bridge_sprite_table_11_2,
_bridge_sprite_table_11_2,
_bridge_sprite_table_5_6,
};
static const PalSpriteID * const _bridge_sprite_table_12[] = {
_bridge_sprite_table_12_0,
_bridge_sprite_table_12_1,
_bridge_sprite_table_12_2,
_bridge_sprite_table_12_2,
_bridge_sprite_table_12_2,
_bridge_sprite_table_12_2,
_bridge_sprite_table_concrete_suspended_heads,
};
static const PalSpriteID * const * const _bridge_sprite_table[MAX_BRIDGES] = {
_bridge_sprite_table_wood,
_bridge_sprite_table_concrete,
_bridge_sprite_table_archgirder,
_bridge_sprite_table_concrete_suspended,
_bridge_sprite_table_4,
_bridge_sprite_table_5,
_bridge_sprite_table_6,
_bridge_sprite_table_7,
_bridge_sprite_table_8,
_bridge_sprite_table_9,
_bridge_sprite_table_10,
_bridge_sprite_table_11,
_bridge_sprite_table_12
};
/** Describes the data that defines each bridge in the game
* @param y year of availablity
* @param mnl minimum length
* @param mxl maximum length
* @param p price
* @param mxs maximum speed allowed
* @param spr sprite to use in purchase GUI
* @param plt palette for the sprite in purchase GUI
* @param dsc description of the bridge in purchase GUI
* @param nrl description of the rail bridge in query tool
* @param nrd description of the road bridge in query tool
*/
#define MBR(y, mnl, mxl, p, mxs, spr, plt, dsc, nrl, nrd) \
{y, mnl, mxl, p, mxs, spr, plt, dsc, { nrl, nrd }, NULL, 0}
const BridgeSpec _orig_bridge[] = {
/*
year of availablity
| minimum length
| | maximum length
| | | price
| | | | maximum speed
| | | | | sprite to use in GUI
| | | | | | palette in GUI
string with description name on rail name on road
| | | */
MBR( 0, 0, 16, 80, 32, 0xA24, PAL_NONE,
STR_5012_WOODEN, STR_501F_WOODEN_RAIL_BRIDGE, STR_5025_WOODEN_ROAD_BRIDGE),
MBR( 0, 0, 2, 112, 48, 0xA26, PALETTE_TO_STRUCT_RED,
STR_5013_CONCRETE, STR_5020_CONCRETE_RAIL_BRIDGE, STR_5026_CONCRETE_ROAD_BRIDGE),
MBR(1930, 0, 5, 144, 64, 0xA25, PAL_NONE,
STR_500F_GIRDER_STEEL, STR_501C_STEEL_GIRDER_RAIL_BRIDGE, STR_5022_STEEL_GIRDER_ROAD_BRIDGE),
MBR( 0, 2, 10, 168, 80, 0xA22, PALETTE_TO_STRUCT_CONCRETE,
STR_5011_SUSPENSION_CONCRETE, STR_501E_REINFORCED_CONCRETE_SUSPENSION, STR_5024_REINFORCED_CONCRETE_SUSPENSION),
MBR(1930, 3, 16, 185, 96, 0xA22, PAL_NONE,
STR_500E_SUSPENSION_STEEL, STR_501B_STEEL_SUSPENSION_RAIL_BRIDGE, STR_5021_STEEL_SUSPENSION_ROAD_BRIDGE),
MBR(1930, 3, 16, 192, 112, 0xA22, PALETTE_TO_STRUCT_YELLOW,
STR_500E_SUSPENSION_STEEL, STR_501B_STEEL_SUSPENSION_RAIL_BRIDGE, STR_5021_STEEL_SUSPENSION_ROAD_BRIDGE),
MBR(1930, 3, 7, 224, 160, 0xA23, PAL_NONE,
STR_5010_CANTILEVER_STEEL, STR_501D_STEEL_CANTILEVER_RAIL_BRIDGE, STR_5023_STEEL_CANTILEVER_ROAD_BRIDGE),
MBR(1930, 3, 8, 232, 208, 0xA23, PALETTE_TO_STRUCT_BROWN,
STR_5010_CANTILEVER_STEEL, STR_501D_STEEL_CANTILEVER_RAIL_BRIDGE, STR_5023_STEEL_CANTILEVER_ROAD_BRIDGE),
MBR(1930, 3, 9, 248, 240, 0xA23, PALETTE_TO_STRUCT_RED,
STR_5010_CANTILEVER_STEEL, STR_501D_STEEL_CANTILEVER_RAIL_BRIDGE, STR_5023_STEEL_CANTILEVER_ROAD_BRIDGE),
MBR(1930, 0, 2, 240, 256, 0xA27, PAL_NONE,
STR_500F_GIRDER_STEEL, STR_501C_STEEL_GIRDER_RAIL_BRIDGE, STR_5022_STEEL_GIRDER_ROAD_BRIDGE),
MBR(1995, 2, 16, 255, 320, 0xA28, PAL_NONE,
STR_5014_TUBULAR_STEEL, STR_5027_TUBULAR_RAIL_BRIDGE, STR_5028_TUBULAR_ROAD_BRIDGE),
MBR(2005, 2, 32, 380, 512, 0xA28, PALETTE_TO_STRUCT_YELLOW,
STR_5014_TUBULAR_STEEL, STR_5027_TUBULAR_RAIL_BRIDGE, STR_5028_TUBULAR_ROAD_BRIDGE),
MBR(2010, 2, 32, 510, 608, 0xA28, PALETTE_TO_STRUCT_GREY,
STR_BRIDGE_TUBULAR_SILICON, STR_5027_TUBULAR_RAIL_BRIDGE, STR_5028_TUBULAR_ROAD_BRIDGE)
};
#undef MBR
#undef MN
#undef MR
#undef MW
#undef MC
| 58,546
|
C++
|
.h
| 711
| 80.299578
| 152
| 0.614451
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,641
|
autorail.h
|
EnergeticBark_OpenTTD-3DS/src/table/autorail.h
|
/* $Id$ */
/** @file autorail.h Highlight/sprite information for autorail. */
/* Rail selection types (directions):
* / \ / \ / \ / \ / \ / \
* / /\ /\ \ /===\ / \ /| \ / |\
* \/ / \ \/ \ / \===/ \| / \ |/
* \ / \ / \ / \ / \ / \ /
* 0 1 2 3 4 5
*/
/* mark invalid tiles red */
#define RED(c) -c
/* table maps each of the six rail directions and tileh combinations to a sprite
* invalid entries are required to make sure that this array can be quickly accessed */
static const int _AutorailTilehSprite[][6] = {
/* type 0 1 2 3 4 5 */
{ 0, 8, 16, 25, 34, 42 }, // tileh = 0
{ 5, 13, RED(22), RED(31), 35, 42 }, // tileh = 1
{ 5, 10, 16, 26, RED(38), RED(46) }, // tileh = 2
{ 5, 9, RED(23), 26, 35, RED(46) }, // tileh = 3
{ 2, 10, RED(19), RED(28), 34, 43 }, // tileh = 4
{ 1, 9, 17, 26, 35, 43 }, // tileh = 5
{ 1, 10, RED(20), 26, RED(38), 43 }, // tileh = 6
{ 1, 9, 17, 26, 35, 43 }, // tileh = 7
{ 2, 13, 17, 25, RED(40), RED(48) }, // tileh = 8
{ 1, 13, 17, RED(32), 35, RED(48) }, // tileh = 9
{ 1, 9, 17, 26, 35, 43 }, // tileh = 10
{ 1, 9, 17, 26, 35, 43 }, // tileh = 11
{ 2, 9, 17, RED(29), RED(40), 43 }, // tileh = 12
{ 1, 9, 17, 26, 35, 43 }, // tileh = 13
{ 1, 9, 17, 26, 35, 43 }, // tileh = 14
{ 0, 1, 2, 3, 4, 5 }, // invalid (15)
{ 0, 1, 2, 3, 4, 5 }, // invalid (16)
{ 0, 1, 2, 3, 4, 5 }, // invalid (17)
{ 0, 1, 2, 3, 4, 5 }, // invalid (18)
{ 0, 1, 2, 3, 4, 5 }, // invalid (19)
{ 0, 1, 2, 3, 4, 5 }, // invalid (20)
{ 0, 1, 2, 3, 4, 5 }, // invalid (21)
{ 0, 1, 2, 3, 4, 5 }, // invalid (22)
{ 6, 11, 17, 27, RED(39), RED(47) }, // tileh = 23
{ 0, 1, 2, 3, 4, 5 }, // invalid (24)
{ 0, 1, 2, 3, 4, 5 }, // invalid (25)
{ 0, 1, 2, 3, 4, 5 }, // invalid (26)
{ 7, 15, RED(24), RED(33), 36, 44 }, // tileh = 27
{ 0, 1, 2, 3, 4, 5 }, // invalid (28)
{ 3, 14, 18, 26, RED(41), RED(49) }, // tileh = 29
{ 4, 12, RED(21), RED(30), 37, 45 } // tileh = 30
};
#undef RED
/* maps each pixel of a tile (16x16) to a selection type
* (0,0) is the top corner, (16,16) the bottom corner */
static const HighLightStyle _autorail_piece[][16] = {
{ HT_DIR_HU, HT_DIR_HU, HT_DIR_HU, HT_DIR_HU, HT_DIR_HU, HT_DIR_HU, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_VR, HT_DIR_VR, HT_DIR_VR, HT_DIR_VR, HT_DIR_VR, HT_DIR_VR },
{ HT_DIR_HU, HT_DIR_HU, HT_DIR_HU, HT_DIR_HU, HT_DIR_HU, HT_DIR_HU, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_VR, HT_DIR_VR, HT_DIR_VR, HT_DIR_VR, HT_DIR_VR, HT_DIR_VR },
{ HT_DIR_HU, HT_DIR_HU, HT_DIR_HU, HT_DIR_HU, HT_DIR_HU, HT_DIR_HU, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_VR, HT_DIR_VR, HT_DIR_VR, HT_DIR_VR, HT_DIR_VR, HT_DIR_VR },
{ HT_DIR_HU, HT_DIR_HU, HT_DIR_HU, HT_DIR_HU, HT_DIR_HU, HT_DIR_HU, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_VR, HT_DIR_VR, HT_DIR_VR, HT_DIR_VR, HT_DIR_VR, HT_DIR_VR },
{ HT_DIR_HU, HT_DIR_HU, HT_DIR_HU, HT_DIR_HU, HT_DIR_HU, HT_DIR_HU, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_VR, HT_DIR_VR, HT_DIR_VR, HT_DIR_VR, HT_DIR_VR, HT_DIR_VR },
{ HT_DIR_HU, HT_DIR_HU, HT_DIR_HU, HT_DIR_HU, HT_DIR_HU, HT_DIR_HU, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_VR, HT_DIR_VR, HT_DIR_VR, HT_DIR_VR, HT_DIR_VR, HT_DIR_VR },
{ HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y },
{ HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_X, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y },
{ HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_X, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y },
{ HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y, HT_DIR_Y },
{ HT_DIR_VL, HT_DIR_VL, HT_DIR_VL, HT_DIR_VL, HT_DIR_VL, HT_DIR_VL, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_HL, HT_DIR_HL, HT_DIR_HL, HT_DIR_HL, HT_DIR_HL, HT_DIR_HL },
{ HT_DIR_VL, HT_DIR_VL, HT_DIR_VL, HT_DIR_VL, HT_DIR_VL, HT_DIR_VL, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_HL, HT_DIR_HL, HT_DIR_HL, HT_DIR_HL, HT_DIR_HL, HT_DIR_HL },
{ HT_DIR_VL, HT_DIR_VL, HT_DIR_VL, HT_DIR_VL, HT_DIR_VL, HT_DIR_VL, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_HL, HT_DIR_HL, HT_DIR_HL, HT_DIR_HL, HT_DIR_HL, HT_DIR_HL },
{ HT_DIR_VL, HT_DIR_VL, HT_DIR_VL, HT_DIR_VL, HT_DIR_VL, HT_DIR_VL, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_HL, HT_DIR_HL, HT_DIR_HL, HT_DIR_HL, HT_DIR_HL, HT_DIR_HL },
{ HT_DIR_VL, HT_DIR_VL, HT_DIR_VL, HT_DIR_VL, HT_DIR_VL, HT_DIR_VL, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_HL, HT_DIR_HL, HT_DIR_HL, HT_DIR_HL, HT_DIR_HL, HT_DIR_HL },
{ HT_DIR_VL, HT_DIR_VL, HT_DIR_VL, HT_DIR_VL, HT_DIR_VL, HT_DIR_VL, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_X, HT_DIR_HL, HT_DIR_HL, HT_DIR_HL, HT_DIR_HL, HT_DIR_HL, HT_DIR_HL }
};
| 5,948
|
C++
|
.h
| 68
| 85.573529
| 176
| 0.454716
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,642
|
unmovable_land.h
|
EnergeticBark_OpenTTD-3DS/src/table/unmovable_land.h
|
/* $Id$ */
/** @file unmovable_land.h Sprites to use and how to display them for unmovable tiles. */
static const DrawTileSeqStruct _draw_tile_transmitterlighthouse_data[] = {
{ 7, 7, 0, 2, 2, 70, {SPR_UNMOVABLE_TRANSMITTER, PAL_NONE}},
{ 4, 4, 0, 7, 7, 61, {SPR_UNMOVABLE_LIGHTHOUSE, PAL_NONE}},
};
#define TILE_SEQ_LINE(sz, img) { 0, 0, 0, 16, 16, sz, {img, PAL_NONE} },
#define TILE_SEQ_END() { (byte)0x80, 0, 0, 0, 0, 0, {0, 0} }
static const DrawTileSeqStruct _unmovable_display_nothing[] = {
TILE_SEQ_END()
};
static const DrawTileSeqStruct _unmovable_display_datas_8[] = {
TILE_SEQ_LINE(20, SPR_MEDIUMHQ_NORTH_WALL | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _unmovable_display_datas_9[] = {
TILE_SEQ_LINE(20, SPR_MEDIUMHQ_EAST_WALL | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _unmovable_display_datas_10[] = {
TILE_SEQ_LINE(20, SPR_MEDIUMHQ_WEST_WALL | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _unmovable_display_datas_12[] = {
TILE_SEQ_LINE(50, SPR_LARGEHQ_NORTH_BUILD | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _unmovable_display_datas_13[] = {
TILE_SEQ_LINE(50, SPR_LARGEHQ_EAST_BUILD | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _unmovable_display_datas_14[] = {
TILE_SEQ_LINE(50, SPR_LARGEHQ_WEST_BUILD | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _unmovable_display_datas_16[] = {
TILE_SEQ_LINE(60, SPR_HUGEHQ_NORTH_BUILD | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _unmovable_display_datas_17[] = {
TILE_SEQ_LINE(60, SPR_HUGEHQ_EAST_BUILD | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _unmovable_display_datas_18[] = {
TILE_SEQ_LINE(60, SPR_HUGEHQ_WEST_BUILD | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
#undef TILE_SEQ_LINE
#undef TILE_SEQ_END
#define TILE_SPRITE_LINE(img, dtss) { {img | (1 << PALETTE_MODIFIER_COLOUR), PAL_NONE}, dtss },
static const DrawTileSprites _unmovable_display_datas[] = {
TILE_SPRITE_LINE(SPR_TINYHQ_NORTH, _unmovable_display_nothing)
TILE_SPRITE_LINE(SPR_TINYHQ_EAST, _unmovable_display_nothing)
TILE_SPRITE_LINE(SPR_TINYHQ_WEST, _unmovable_display_nothing)
TILE_SPRITE_LINE(SPR_TINYHQ_SOUTH, _unmovable_display_nothing)
TILE_SPRITE_LINE(SPR_SMALLHQ_NORTH, _unmovable_display_nothing)
TILE_SPRITE_LINE(SPR_SMALLHQ_EAST, _unmovable_display_nothing)
TILE_SPRITE_LINE(SPR_SMALLHQ_WEST, _unmovable_display_nothing)
TILE_SPRITE_LINE(SPR_SMALLHQ_SOUTH, _unmovable_display_nothing)
TILE_SPRITE_LINE(SPR_MEDIUMHQ_NORTH, _unmovable_display_datas_8)
TILE_SPRITE_LINE(SPR_MEDIUMHQ_EAST, _unmovable_display_datas_9)
TILE_SPRITE_LINE(SPR_MEDIUMHQ_WEST, _unmovable_display_datas_10)
TILE_SPRITE_LINE(SPR_MEDIUMHQ_SOUTH, _unmovable_display_nothing)
TILE_SPRITE_LINE(SPR_LARGEHQ_NORTH_GROUND, _unmovable_display_datas_12)
TILE_SPRITE_LINE(SPR_LARGEHQ_EAST_GROUND, _unmovable_display_datas_13)
TILE_SPRITE_LINE(SPR_LARGEHQ_WEST_GROUND, _unmovable_display_datas_14)
TILE_SPRITE_LINE(SPR_LARGEHQ_SOUTH, _unmovable_display_nothing)
TILE_SPRITE_LINE(SPR_HUGEHQ_NORTH_GROUND, _unmovable_display_datas_16)
TILE_SPRITE_LINE(SPR_HUGEHQ_EAST_GROUND, _unmovable_display_datas_17)
TILE_SPRITE_LINE(SPR_HUGEHQ_WEST_GROUND, _unmovable_display_datas_18)
TILE_SPRITE_LINE(SPR_HUGEHQ_SOUTH, _unmovable_display_nothing)
};
#undef TILE_SPRITE_LINE
const UnmovableSpec _original_unmovable[] = {
{STR_5801_TRANSMITTER, 1, 1},
{STR_5802_LIGHTHOUSE, 1, 1},
{STR_2016_STATUE, 1, 1},
{STR_5805_COMPANY_OWNED_LAND, 10, 2},
{STR_5803_COMPANY_HEADQUARTERS, 1, 1},
};
| 3,930
|
C++
|
.h
| 80
| 47.275
| 95
| 0.713427
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,643
|
railtypes.h
|
EnergeticBark_OpenTTD-3DS/src/table/railtypes.h
|
/* $Id$ */
/** @file railtypes.h
* All the railtype-specific information is stored here.
*/
#ifndef RAILTYPES_H
#define RAILTYPES_H
/** Global Railtype definition
*/
static const RailtypeInfo _original_railtypes[] = {
/** Railway */
{ // Main Sprites
{ SPR_RAIL_TRACK_Y, SPR_RAIL_TRACK_N_S, SPR_RAIL_TRACK_BASE, SPR_RAIL_SINGLE_Y, SPR_RAIL_SINGLE_X,
SPR_RAIL_SINGLE_NORTH, SPR_RAIL_SINGLE_SOUTH, SPR_RAIL_SINGLE_EAST, SPR_RAIL_SINGLE_WEST,
SPR_TRACKS_FOR_SLOPES_RAIL_BASE,
SPR_CROSSING_OFF_X_RAIL,
SPR_TUNNEL_ENTRY_REAR_RAIL
},
/* GUI sprites */
{ 0x4E3, 0x4E4, 0x4E5, 0x4E6,
SPR_IMG_AUTORAIL,
SPR_IMG_DEPOT_RAIL,
SPR_IMG_TUNNEL_RAIL,
SPR_IMG_CONVERT_RAIL
},
{
SPR_CURSOR_NS_TRACK,
SPR_CURSOR_SWNE_TRACK,
SPR_CURSOR_EW_TRACK,
SPR_CURSOR_NWSE_TRACK,
SPR_CURSOR_AUTORAIL,
SPR_CURSOR_RAIL_DEPOT,
SPR_CURSOR_TUNNEL_RAIL,
SPR_CURSOR_CONVERT_RAIL
},
/* strings */
{
STR_100A_RAILROAD_CONSTRUCTION,
STR_1015_RAILROAD_CONSTRUCTION,
STR_881C_NEW_RAIL_VEHICLES,
STR_RAIL_VEHICLES,
STR_8102_RAILROAD_LOCOMOTIVE,
},
/* Offset of snow tiles */
SPR_RAIL_SNOW_OFFSET,
/* Powered railtypes */
RAILTYPES_RAIL | RAILTYPES_ELECTRIC,
/* Compatible railtypes */
RAILTYPES_RAIL | RAILTYPES_ELECTRIC,
/* main offset */
0,
/* bridge offset */
0,
/* custom ground offset */
0,
/* curve speed advantage (multiplier) */
0,
/* flags */
RTFB_NONE,
/* cost multiplier */
8,
/* rail type label */
'RAIL',
},
/** Electrified railway */
{ // Main Sprites
{ SPR_RAIL_TRACK_Y, SPR_RAIL_TRACK_N_S, SPR_RAIL_TRACK_BASE, SPR_RAIL_SINGLE_Y, SPR_RAIL_SINGLE_X,
SPR_RAIL_SINGLE_NORTH, SPR_RAIL_SINGLE_SOUTH, SPR_RAIL_SINGLE_EAST, SPR_RAIL_SINGLE_WEST,
SPR_TRACKS_FOR_SLOPES_RAIL_BASE,
SPR_CROSSING_OFF_X_RAIL,
SPR_TUNNEL_ENTRY_REAR_RAIL
},
/* GUI sprites */
{
SPR_BUILD_NS_ELRAIL,
SPR_BUILD_X_ELRAIL,
SPR_BUILD_EW_ELRAIL,
SPR_BUILD_Y_ELRAIL,
SPR_IMG_AUTOELRAIL,
SPR_IMG_DEPOT_ELRAIL,
SPR_BUILD_TUNNEL_ELRAIL,
SPR_IMG_CONVERT_ELRAIL
},
{
SPR_CURSOR_NS_ELRAIL,
SPR_CURSOR_SWNE_ELRAIL,
SPR_CURSOR_EW_ELRAIL,
SPR_CURSOR_NWSE_ELRAIL,
SPR_CURSOR_AUTOELRAIL,
SPR_CURSOR_ELRAIL_DEPOT,
SPR_CURSOR_TUNNEL_ELRAIL,
SPR_CURSOR_CONVERT_ELRAIL
},
/* strings */
{
STR_TITLE_ELRAIL_CONSTRUCTION,
STR_TOOLB_ELRAIL_CONSTRUCTION,
STR_NEW_ELRAIL_VEHICLES,
STR_ELRAIL_VEHICLES,
STR_8102_RAILROAD_LOCOMOTIVE,
},
/* Offset of snow tiles */
SPR_RAIL_SNOW_OFFSET,
/* Powered railtypes */
RAILTYPES_ELECTRIC,
/* Compatible railtypes */
RAILTYPES_ELECTRIC | RAILTYPES_RAIL,
/* main offset */
0,
/* bridge offset */
0,
/* custom ground offset */
0,
/* curve speed advantage (multiplier) */
0,
/* flags */
RTFB_CATENARY,
/* cost multiplier */
12,
/* rail type label */
'ELRL',
},
/** Monorail */
{ // Main Sprites
{ SPR_MONO_TRACK_Y, SPR_MONO_TRACK_N_S, SPR_MONO_TRACK_BASE, SPR_MONO_SINGLE_Y, SPR_MONO_SINGLE_X,
SPR_MONO_SINGLE_NORTH, SPR_MONO_SINGLE_SOUTH, SPR_MONO_SINGLE_EAST, SPR_MONO_SINGLE_WEST,
SPR_TRACKS_FOR_SLOPES_MONO_BASE,
SPR_CROSSING_OFF_X_MONO,
SPR_TUNNEL_ENTRY_REAR_MONO
},
/* GUI sprites */
{ 0x4E7, 0x4E8, 0x4E9, 0x4EA,
SPR_IMG_AUTOMONO,
SPR_IMG_DEPOT_MONO,
SPR_IMG_TUNNEL_MONO,
SPR_IMG_CONVERT_MONO
},
{
SPR_CURSOR_NS_MONO,
SPR_CURSOR_SWNE_MONO,
SPR_CURSOR_EW_MONO,
SPR_CURSOR_NWSE_MONO,
SPR_CURSOR_AUTOMONO,
SPR_CURSOR_MONO_DEPOT,
SPR_CURSOR_TUNNEL_MONO,
SPR_CURSOR_CONVERT_MONO
},
/* strings */
{
STR_100B_MONORAIL_CONSTRUCTION,
STR_1016_MONORAIL_CONSTRUCTION,
STR_881D_NEW_MONORAIL_VEHICLES,
STR_MONORAIL_VEHICLES,
STR_8106_MONORAIL_LOCOMOTIVE,
},
/* Offset of snow tiles */
SPR_MONO_SNOW_OFFSET,
/* Powered railtypes */
RAILTYPES_MONO,
/* Compatible Railtypes */
RAILTYPES_MONO,
/* main offset */
82,
/* bridge offset */
16,
/* custom ground offset */
1,
/* curve speed advantage (multiplier) */
1,
/* flags */
RTFB_NONE,
/* cost multiplier */
16,
/* rail type label */
'MONO',
},
/** Maglev */
{ // Main sprites
{ SPR_MGLV_TRACK_Y, SPR_MGLV_TRACK_N_S, SPR_MGLV_TRACK_BASE, SPR_MGLV_SINGLE_Y, SPR_MGLV_SINGLE_X,
SPR_MGLV_SINGLE_NORTH, SPR_MGLV_SINGLE_SOUTH, SPR_MGLV_SINGLE_EAST, SPR_MGLV_SINGLE_WEST,
SPR_TRACKS_FOR_SLOPES_MAGLEV_BASE,
SPR_CROSSING_OFF_X_MAGLEV,
SPR_TUNNEL_ENTRY_REAR_MAGLEV
},
/* GUI sprites */
{ 0x4EB, 0x4EC, 0x4EE, 0x4ED,
SPR_IMG_AUTOMAGLEV,
SPR_IMG_DEPOT_MAGLEV,
SPR_IMG_TUNNEL_MAGLEV,
SPR_IMG_CONVERT_MAGLEV
},
{
SPR_CURSOR_NS_MAGLEV,
SPR_CURSOR_SWNE_MAGLEV,
SPR_CURSOR_EW_MAGLEV,
SPR_CURSOR_NWSE_MAGLEV,
SPR_CURSOR_AUTOMAGLEV,
SPR_CURSOR_MAGLEV_DEPOT,
SPR_CURSOR_TUNNEL_MAGLEV,
SPR_CURSOR_CONVERT_MAGLEV
},
/* strings */
{
STR_100C_MAGLEV_CONSTRUCTION,
STR_1017_MAGLEV_CONSTRUCTION,
STR_881E_NEW_MAGLEV_VEHICLES,
STR_MAGLEV_VEHICLES,
STR_8107_MAGLEV_LOCOMOTIVE,
},
/* Offset of snow tiles */
SPR_MGLV_SNOW_OFFSET,
/* Powered railtypes */
RAILTYPES_MAGLEV,
/* Compatible Railtypes */
RAILTYPES_MAGLEV,
/* main offset */
164,
/* bridge offset */
24,
/* custom ground offset */
2,
/* curve speed advantage (multiplier) */
2,
/* flags */
RTFB_NONE,
/* cost multiplier */
24,
/* rail type label */
'MGLV',
},
};
#endif /* RAILTYPES_H */
| 5,488
|
C++
|
.h
| 231
| 20.255411
| 100
| 0.678723
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,644
|
water_land.h
|
EnergeticBark_OpenTTD-3DS/src/table/water_land.h
|
/* $Id$ */
/** @file water_land.h Sprites to use and how to display them for water tiles (depots/shiplifts). */
struct WaterDrawTileStruct {
byte delta_x;
byte delta_y;
byte delta_z;
byte size_x;
byte size_y;
byte size_z;
SpriteID image;
};
#define BEGIN(image) { 0, 0, 0, 0, 0, 0, image }
#define END(y) { 0x80, y, 0, 0, 0, 0, 0 }
static const WaterDrawTileStruct _shipdepot_display_seq_1[] = {
BEGIN(0xFDD),
{ 0, 15, 0, 16, 1, 0x14, 0xFE8 | (1 << PALETTE_MODIFIER_COLOUR) },
END(0)
};
static const WaterDrawTileStruct _shipdepot_display_seq_2[] = {
BEGIN(0xFDD),
{ 0, 0, 0, 16, 1, 0x14, 0xFEA },
{ 0, 15, 0, 16, 1, 0x14, 0xFE6 | (1 << PALETTE_MODIFIER_COLOUR) },
END(0)
};
static const WaterDrawTileStruct _shipdepot_display_seq_3[] = {
BEGIN(0xFDD),
{ 15, 0, 0, 1, 0x10, 0x14, 0xFE9 | (1 << PALETTE_MODIFIER_COLOUR) },
END(0)
};
static const WaterDrawTileStruct _shipdepot_display_seq_4[] = {
BEGIN(0xFDD),
{ 0, 0, 0, 1, 16, 0x14, 0xFEB },
{ 15, 0, 0, 1, 16, 0x14, 0xFE7 | (1 << PALETTE_MODIFIER_COLOUR) },
END(0)
};
static const WaterDrawTileStruct * const _shipdepot_display_seq[] = {
_shipdepot_display_seq_1,
_shipdepot_display_seq_2,
_shipdepot_display_seq_3,
_shipdepot_display_seq_4,
};
static const WaterDrawTileStruct _shiplift_display_seq_0[] = {
BEGIN(1),
{ 0, 0, 0, 0x10, 1, 0x14, 0 + 1 },
{ 0, 0xF, 0, 0x10, 1, 0x14, 4 + 1 },
END(0)
};
static const WaterDrawTileStruct _shiplift_display_seq_1[] = {
BEGIN(0),
{ 0, 0, 0, 1, 0x10, 0x14, 0 },
{ 0xF, 0, 0, 1, 0x10, 0x14, 4 },
END(0)
};
static const WaterDrawTileStruct _shiplift_display_seq_2[] = {
BEGIN(2),
{ 0, 0, 0, 0x10, 1, 0x14, 0 + 2 },
{ 0, 0xF, 0, 0x10, 1, 0x14, 4 + 2 },
END(0)
};
static const WaterDrawTileStruct _shiplift_display_seq_3[] = {
BEGIN(3),
{ 0, 0, 0, 1, 0x10, 0x14, 0 + 3 },
{ 0xF, 0, 0, 1, 0x10, 0x14, 4 + 3 },
END(0)
};
static const WaterDrawTileStruct _shiplift_display_seq_0b[] = {
BEGIN(0xFDD),
{ 0, 0, 0, 0x10, 1, 0x14, 8 + 1 },
{ 0, 0xF, 0, 0x10, 1, 0x14, 12 + 1 },
END(0)
};
static const WaterDrawTileStruct _shiplift_display_seq_1b[] = {
BEGIN(0xFDD),
{ 0, 0, 0, 0x1, 0x10, 0x14, 8 },
{ 0xF, 0, 0, 0x1, 0x10, 0x14, 12 },
END(0)
};
static const WaterDrawTileStruct _shiplift_display_seq_2b[] = {
BEGIN(0xFDD),
{ 0, 0, 0, 0x10, 1, 0x14, 8 + 2 },
{ 0, 0xF, 0, 0x10, 1, 0x14, 12 + 2 },
END(0)
};
static const WaterDrawTileStruct _shiplift_display_seq_3b[] = {
BEGIN(0xFDD),
{ 0, 0, 0, 1, 0x10, 0x14, 8 + 3 },
{ 0xF, 0, 0, 1, 0x10, 0x14, 12 + 3 },
END(0)
};
static const WaterDrawTileStruct _shiplift_display_seq_0t[] = {
BEGIN(0xFDD),
{ 0, 0, 0, 0x10, 1, 0x14, 16 + 1 },
{ 0, 0xF, 0, 0x10, 1, 0x14, 20 + 1 },
END(8)
};
static const WaterDrawTileStruct _shiplift_display_seq_1t[] = {
BEGIN(0xFDD),
{ 0, 0, 0, 0x1, 0x10, 0x14, 16 },
{ 0xF, 0, 0, 0x1, 0x10, 0x14, 20 },
END(8)
};
static const WaterDrawTileStruct _shiplift_display_seq_2t[] = {
BEGIN(0xFDD),
{ 0, 0, 0, 0x10, 1, 0x14, 16 + 2 },
{ 0, 0xF, 0, 0x10, 1, 0x14, 20 + 2 },
END(8)
};
static const WaterDrawTileStruct _shiplift_display_seq_3t[] = {
BEGIN(0xFDD),
{ 0, 0, 0, 1, 0x10, 0x14, 16 + 3 },
{ 0xF, 0, 0, 1, 0x10, 0x14, 20 + 3 },
END(8)
};
static const WaterDrawTileStruct * const _shiplift_display_seq[] = {
_shiplift_display_seq_0,
_shiplift_display_seq_1,
_shiplift_display_seq_2,
_shiplift_display_seq_3,
_shiplift_display_seq_0b,
_shiplift_display_seq_1b,
_shiplift_display_seq_2b,
_shiplift_display_seq_3b,
_shiplift_display_seq_0t,
_shiplift_display_seq_1t,
_shiplift_display_seq_2t,
_shiplift_display_seq_3t,
};
#undef BEGIN
#undef END
| 3,632
|
C++
|
.h
| 129
| 26.310078
| 100
| 0.638114
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,645
|
station_land.h
|
EnergeticBark_OpenTTD-3DS/src/table/station_land.h
|
/* $Id$ */
/** @file station_land.h Sprites to use and how to display them for station tiles. */
/**
* Constructor macro for an image without a palette in a DrawTileSeqStruct array.
* @param dx Offset in x direction
* @param dy Offset in y direction
* @param dz Offset in z direction
* @param sx Size in x direction
* @param sy Size in y direction
* @param sz Size in z direction
* @param img Sprite to draw
*/
#define TILE_SEQ_LINE(dx, dy, dz, sx, sy, sz, img) { dx, dy, dz, sx, sy, sz, {img, PAL_NONE} },
/**
* Constructor macro for an image with a palette in a DrawTileSeqStruct array.
* @param dx Offset in x direction
* @param dy Offset in y direction
* @param dz Offset in z direction
* @param sx Size in x direction
* @param sy Size in y direction
* @param sz Size in z direction
* @param img Sprite to draw
* @param pal Paleltte sprite
*/
#define TILE_SEQ_LINE_PAL(dx, dy, dz, sx, sy, sz, img, pal) { dx, dy, dz, sx, sy, sz, {img, pal} },
/** Constructor macro for a terminating DrawTileSeqStruct entry in an array */
#define TILE_SEQ_END() { (byte)0x80, 0, 0, 0, 0, 0, {0, 0} }
static const DrawTileSeqStruct _station_display_nothing[] = {
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_0[] = {
TILE_SEQ_LINE( 0, 0, 0, 16, 5, 2, SPR_RAIL_PLATFORM_X_REAR | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 0, 11, 0, 16, 5, 2, SPR_RAIL_PLATFORM_X_FRONT | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_1[] = {
TILE_SEQ_LINE( 0, 0, 0, 5, 16, 2, SPR_RAIL_PLATFORM_Y_REAR | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE(11, 0, 0, 5, 16, 2, SPR_RAIL_PLATFORM_Y_FRONT | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_2[] = {
TILE_SEQ_LINE( 0, 0, 0, 16, 5, 2, SPR_RAIL_PLATFORM_BUILDING_X | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 0, 11, 0, 16, 5, 2, SPR_RAIL_PLATFORM_X_FRONT | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_3[] = {
TILE_SEQ_LINE( 0, 0, 0, 5, 16, 2, SPR_RAIL_PLATFORM_BUILDING_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE(11, 0, 0, 5, 16, 2, SPR_RAIL_PLATFORM_Y_FRONT | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_4[] = {
TILE_SEQ_LINE( 0, 0, 0, 16, 5, 7, SPR_RAIL_PLATFORM_PILLARS_X_REAR | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 0, 11, 0, 16, 5, 2, SPR_RAIL_PLATFORM_X_FRONT | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 0, 0, 16, 16, 16, 10, SPR_RAIL_ROOF_STRUCTURE_X_TILE_A | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE_PAL( 0, 0, (byte)0x80, 0, 0, 0, SPR_RAIL_ROOF_GLASS_X_TILE_A | (1 << PALETTE_MODIFIER_TRANSPARENT), PALETTE_TO_TRANSPARENT)
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_5[] = {
TILE_SEQ_LINE( 0, 0, 0, 5, 16, 2, SPR_RAIL_PLATFORM_PILLARS_Y_REAR | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE(11, 0, 0, 5, 16, 2, SPR_RAIL_PLATFORM_Y_FRONT | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 0, 0, 16, 16, 16, 10, SPR_RAIL_ROOF_STRUCTURE_Y_TILE_A | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE_PAL( 0, 0, (byte)0x80, 0, 0, 0, SPR_RAIL_ROOF_GLASS_Y_TILE_A | (1 << PALETTE_MODIFIER_TRANSPARENT), PALETTE_TO_TRANSPARENT)
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_6[] = {
TILE_SEQ_LINE( 0, 0, 0, 16, 5, 2, SPR_RAIL_PLATFORM_X_REAR | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 0, 11, 0, 16, 5, 2, SPR_RAIL_PLATFORM_PILLARS_X_FRONT | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 0, 0, 16, 16, 16, 10, SPR_RAIL_ROOF_STRUCTURE_X_TILE_B | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE_PAL( 0, 0, (byte)0x80, 0, 0, 0, SPR_RAIL_ROOF_GLASS_X_TILE_B | (1 << PALETTE_MODIFIER_TRANSPARENT), PALETTE_TO_TRANSPARENT)
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_7[] = {
TILE_SEQ_LINE( 0, 0, 0, 5, 16, 2, SPR_RAIL_PLATFORM_Y_REAR | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE(11, 0, 0, 5, 16, 2, SPR_RAIL_PLATFORM_PILLARS_Y_FRONT | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 0, 0, 16, 16, 16, 10, SPR_RAIL_ROOF_STRUCTURE_Y_TILE_B | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE_PAL( 0, 0, (byte)0x80, 0, 0, 0, SPR_RAIL_ROOF_GLASS_Y_TILE_B | (1 << PALETTE_MODIFIER_TRANSPARENT), PALETTE_TO_TRANSPARENT)
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_9[] = {
TILE_SEQ_LINE( 0, 0, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences north
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_10[] = {
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR)) // fences west
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_21[] = {
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_22[] = {
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_23[] = {
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_24[] = {
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_25[] = {
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_26[] = {
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_27[] = {
TILE_SEQ_LINE( 2, 0, 0, 11, 16, 40, SPR_AIRPORT_TERMINAL_A | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_28[] = {
TILE_SEQ_LINE( 3, 3, 0, 10, 10, 60, SPR_AIRPORT_TOWER | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_29[] = {
TILE_SEQ_LINE( 0, 1, 0, 14, 14, 30, SPR_AIRPORT_CONCOURSE | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_30[] = {
TILE_SEQ_LINE( 3, 3, 0, 10, 11, 35, SPR_AIRPORT_TERMINAL_B | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_31[] = {
TILE_SEQ_LINE( 0, 3, 0, 16, 11, 40, SPR_AIRPORT_TERMINAL_C | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_32[] = {
TILE_SEQ_LINE(14, 0, 0, 2, 16, 28, SPR_AIRPORT_HANGAR_FRONT | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 0, 0, 0, 2, 16, 28, SPR_AIRPORT_HANGAR_REAR | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_33[] = {
TILE_SEQ_LINE( 7, 11, 0, 3, 3, 14, SPR_AIRPORT_JETWAY_1)
TILE_SEQ_LINE( 0, 0, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_34[] = {
TILE_SEQ_LINE( 2, 7, 0, 3, 3, 14, SPR_AIRPORT_JETWAY_2)
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_35[] = {
TILE_SEQ_LINE( 3, 2, 0, 3, 3, 14, SPR_AIRPORT_JETWAY_3)
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_36[] = {
TILE_SEQ_LINE( 0, 8, 0, 14, 3, 14, SPR_AIRPORT_PASSENGER_TUNNEL)
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_38[] = {
TILE_SEQ_LINE( 0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_39[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_1)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_40[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_2)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_41[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_3)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_42[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_4)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_43[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_5)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_44[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_6)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_45[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_7)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_46[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_8)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_47[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_9)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_48[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_A)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_49[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_B)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_50[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_C)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_51[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 70, SPR_UNMOVABLE_TRANSMITTER)
TILE_SEQ_LINE( 0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_54[] = {
TILE_SEQ_LINE( 0, 0, 0, 15, 15, 30, SPR_AIRFIELD_TERM_C_BUILD | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_55[] = {
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_58[] = {
TILE_SEQ_LINE( 0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 4, 11, 0, 1, 1, 20, SPR_AIRFIELD_WIND_1 | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_59[] = {
TILE_SEQ_LINE( 0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 4, 11, 0, 1, 1, 20, SPR_AIRFIELD_WIND_2 | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_60[] = {
TILE_SEQ_LINE( 0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 4, 11, 0, 1, 1, 20, SPR_AIRFIELD_WIND_3 | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_61[] = {
TILE_SEQ_LINE( 0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 4, 11, 0, 1, 1, 20, SPR_AIRFIELD_WIND_4 | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_62[] = {
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_63[] = {
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_64[] = {
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_65[] = {
TILE_SEQ_LINE(14, 0, 0, 2, 16, 28, SPR_AIRFIELD_HANGAR_FRONT | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 0, 0, 0, 2, 16, 28, SPR_AIRFIELD_HANGAR_REAR | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_66[] = {
TILE_SEQ_LINE( 0, 0, 0, 16, 16, 60, SPR_HELIPORT | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_67[] = {
TILE_SEQ_LINE( 0, 15, 0, 13, 1, 10, SPR_TRUCK_STOP_NE_BUILD_A | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE(13, 0, 0, 3, 16, 10, SPR_TRUCK_STOP_NE_BUILD_B | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 2, 0, 0, 11, 1, 10, SPR_TRUCK_STOP_NE_BUILD_C | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_68[] = {
TILE_SEQ_LINE(15, 3, 0, 1, 13, 10, SPR_TRUCK_STOP_SE_BUILD_A | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 0, 0, 0, 16, 3, 10, SPR_TRUCK_STOP_SE_BUILD_B | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 0, 3, 0, 1, 11, 10, SPR_TRUCK_STOP_SE_BUILD_C | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_69[] = {
TILE_SEQ_LINE( 3, 0, 0, 13, 1, 10, SPR_TRUCK_STOP_SW_BUILD_A | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 0, 0, 0, 3, 16, 10, SPR_TRUCK_STOP_SW_BUILD_B | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 3, 15, 0, 11, 1, 10, SPR_TRUCK_STOP_SW_BUILD_C | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_70[] = {
TILE_SEQ_LINE( 0, 0, 0, 1, 13, 10, SPR_TRUCK_STOP_NW_BUILD_A | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 0, 13, 0, 16, 3, 10, SPR_TRUCK_STOP_NW_BUILD_B | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE(15, 2, 0, 1, 11, 10, SPR_TRUCK_STOP_NW_BUILD_C | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_71[] = {
TILE_SEQ_LINE( 2, 0, 0, 11, 1, 10, SPR_BUS_STOP_NE_BUILD_A | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE(13, 0, 0, 3, 16, 10, SPR_BUS_STOP_NE_BUILD_B | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 0, 13, 0, 13, 3, 10, SPR_BUS_STOP_NE_BUILD_C | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_72[] = {
TILE_SEQ_LINE( 0, 3, 0, 1, 11, 10, SPR_BUS_STOP_SE_BUILD_A | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 0, 0, 0, 16, 3, 10, SPR_BUS_STOP_SE_BUILD_B | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE(13, 3, 0, 3, 13, 10, SPR_BUS_STOP_SE_BUILD_C | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_73[] = {
TILE_SEQ_LINE( 3, 15, 0, 11, 1, 10, SPR_BUS_STOP_SW_BUILD_A | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 0, 0, 0, 3, 16, 10, SPR_BUS_STOP_SW_BUILD_B | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 3, 0, 0, 13, 3, 10, SPR_BUS_STOP_SW_BUILD_C | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_74[] = {
TILE_SEQ_LINE(15, 2, 0, 1, 11, 10, SPR_BUS_STOP_NW_BUILD_A | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 0, 13, 0, 16, 3, 10, SPR_BUS_STOP_NW_BUILD_B | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 0, 0, 0, 3, 13, 10, SPR_BUS_STOP_NW_BUILD_C | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_76[] = {
TILE_SEQ_LINE( 0, 4, 0, 16, 8, 8, SPR_DOCK_SLOPE_NE)
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_77[] = {
TILE_SEQ_LINE( 4, 0, 0, 8, 16, 8, SPR_DOCK_SLOPE_SE)
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_78[] = {
TILE_SEQ_LINE( 0, 4, 0, 16, 8, 8, SPR_DOCK_SLOPE_SW)
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_79[] = {
TILE_SEQ_LINE( 4, 0, 0, 8, 16, 8, SPR_DOCK_SLOPE_NW)
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_80[] = {
TILE_SEQ_LINE( 0, 4, 0, 16, 8, 8, SPR_DOCK_FLAT_X)
TILE_SEQ_END()
};
static const DrawTileSeqStruct _station_display_datas_81[] = {
TILE_SEQ_LINE( 4, 0, 0, 8, 16, 8, SPR_DOCK_FLAT_Y)
TILE_SEQ_END()
};
/* Buoy, which will _always_ drown under the ship */
static const DrawTileSeqStruct _station_display_datas_82[] = {
TILE_SEQ_LINE( 4, -1, 0, 0, 0, 0, SPR_IMG_BOUY)
TILE_SEQ_END()
};
/* control tower with concrete underground and no fence
* concrete underground */
static const DrawTileSeqStruct _station_display_datas_085[] = {
TILE_SEQ_LINE( 3, 3, 0, 10, 10, 60, SPR_AIRPORT_TOWER | (1 << PALETTE_MODIFIER_COLOUR)) // control tower
TILE_SEQ_END()
};
/* new airportdepot, facing west
* concrete underground */
static const DrawTileSeqStruct _station_display_datas_086[] = {
TILE_SEQ_LINE(14, 0, 0, 2, 16, 28, SPR_AIRFIELD_HANGAR_FRONT | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 0, 0, 0, 2, 16, 28, SPR_AIRFIELD_HANGAR_REAR | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* asphalt tile with fences in north
* concrete underground */
static const DrawTileSeqStruct _station_display_datas_087[] = {
TILE_SEQ_LINE( 0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* end of runway */
static const DrawTileSeqStruct _station_display_datas_088[] = {
TILE_SEQ_LINE( 0, 0, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences
TILE_SEQ_END()
};
/* runway tiles */
static const DrawTileSeqStruct _station_display_datas_089[] = {
TILE_SEQ_LINE( 0, 0, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences
TILE_SEQ_END()
};
/* turning radar with concrete underground fences on south -- needs 12 tiles
* concrete underground
*BEGIN */
static const DrawTileSeqStruct _station_display_datas_090[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_1) // turning radar
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR)) // fences
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_091[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_2)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_092[] = {
TILE_SEQ_LINE(7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_3)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_093[] = {
TILE_SEQ_LINE(7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_4)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_094[] = {
TILE_SEQ_LINE(7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_5)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_095[] = {
TILE_SEQ_LINE(7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_6)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_096[] = {
TILE_SEQ_LINE(7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_7)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_097[] = {
TILE_SEQ_LINE(7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_8)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_098[] = {
TILE_SEQ_LINE(7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_9)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_099[] = {
TILE_SEQ_LINE(7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_A)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0100[] = {
TILE_SEQ_LINE(7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_B)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0101[] = {
TILE_SEQ_LINE(7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_C)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* END */
/* turning radar with concrete underground fences on north -- needs 12 tiles
* concrete underground
*BEGIN */
static const DrawTileSeqStruct _station_display_datas_0102[] = {
TILE_SEQ_LINE(7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_1) // turning radar
TILE_SEQ_LINE(0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0103[] = {
TILE_SEQ_LINE(7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_2)
TILE_SEQ_LINE(0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0104[] = {
TILE_SEQ_LINE(7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_3)
TILE_SEQ_LINE(0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0105[] = {
TILE_SEQ_LINE(7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_4)
TILE_SEQ_LINE(0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0106[] = {
TILE_SEQ_LINE(7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_5)
TILE_SEQ_LINE(0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0107[] = {
TILE_SEQ_LINE(7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_6)
TILE_SEQ_LINE(0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0108[] = {
TILE_SEQ_LINE(7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_7)
TILE_SEQ_LINE(0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0109[] = {
TILE_SEQ_LINE(7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_8)
TILE_SEQ_LINE(0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0110[] = {
TILE_SEQ_LINE(7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_9)
TILE_SEQ_LINE(0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0111[] = {
TILE_SEQ_LINE(7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_A)
TILE_SEQ_LINE(0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0112[] = {
TILE_SEQ_LINE(7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_B)
TILE_SEQ_LINE(0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0113[] = {
TILE_SEQ_LINE(7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_C)
TILE_SEQ_LINE(0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* END */
/* helipad for international airport
* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0114[] = {
TILE_SEQ_LINE(10, 6, 0, 0, 0, 0, SPR_AIRPORT_HELIPAD)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR)) // fences bottom
TILE_SEQ_END()
};
/* helipad for commuter airport
* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0115[] = {
TILE_SEQ_LINE(10, 6, 0, 0, 0, 0, SPR_AIRPORT_HELIPAD)
TILE_SEQ_LINE( 0, 0, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences left
TILE_SEQ_END()
};
/* helipad for continental airport
* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0116[] = {
TILE_SEQ_LINE(10, 6, 0, 0, 0, 0, SPR_AIRPORT_HELIPAD)
TILE_SEQ_END()
};
/* asphalt tile with fences in north and south
* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0117[] = {
TILE_SEQ_LINE( 0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* runway tiles with 2 corner fences */
static const DrawTileSeqStruct _station_display_datas_0118[] = {
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR)) // fences west
TILE_SEQ_LINE( 0, 0, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences north
TILE_SEQ_END()
};
/* runway tiles with 2 corner fences */
static const DrawTileSeqStruct _station_display_datas_0119[] = {
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR)) // fences west
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences south
TILE_SEQ_END()
};
/* runway tiles with 2 corner fences */
static const DrawTileSeqStruct _station_display_datas_0120[] = {
TILE_SEQ_LINE( 0, 0, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences north
TILE_SEQ_LINE( 0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR)) // fences east
TILE_SEQ_END()
};
/* runway tiles with 2 corner fences */
static const DrawTileSeqStruct _station_display_datas_0121[] = {
TILE_SEQ_LINE( 0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR)) // fences east
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences south
TILE_SEQ_END()
};
/* ======== new 2x2 helidepot ========
* helipad tiles with 2 corner fences top+right */
static const DrawTileSeqStruct _station_display_datas_0122[] = {
TILE_SEQ_LINE(10, 6, 0, 0, 0, 0, SPR_AIRPORT_HELIPAD)
TILE_SEQ_LINE( 0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR)) // fences east
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences south
TILE_SEQ_END()
};
/* tarmac tiles with 2 corner fences bottom+right */
static const DrawTileSeqStruct _station_display_datas_0123[] = {
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR)) // fences north
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences south
TILE_SEQ_END()
};
/* helidepot office with concrete underground and no fence
* concrete underground, fences top + left */
static const DrawTileSeqStruct _station_display_datas_0124[] = {
TILE_SEQ_LINE( 0, 0, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences left
TILE_SEQ_LINE( 0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR)) // fences east
TILE_SEQ_LINE( 3, 3, 0, 10, 10, 60, SPR_AIRPORT_HELIDEPOT_OFFICE | (1 << PALETTE_MODIFIER_COLOUR)) // helidepot office
TILE_SEQ_END()
};
/* N/S runway plain */
static const DrawTileSeqStruct _station_display_datas_0125[] = {
TILE_SEQ_LINE( 0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR)) // fences east
TILE_SEQ_END()
};
/* N/S runway end */
static const DrawTileSeqStruct _station_display_datas_0126[] = {
TILE_SEQ_LINE( 0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR)) // fences east
TILE_SEQ_END()
};
/* N/S runway plain */
static const DrawTileSeqStruct _station_display_datas_0127[] = {
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR)) // fences bottom
TILE_SEQ_END()
};
/* N/S runway end */
static const DrawTileSeqStruct _station_display_datas_0128[] = {
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR)) // fences bottom
TILE_SEQ_END()
};
/* West facing hangar */
static const DrawTileSeqStruct _station_display_datas_0129[] = {
TILE_SEQ_LINE(14, 0, 0, 2, 16, 28, SPR_NEWHANGAR_W | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 0, 0, 0, 2, 16, 28, SPR_NEWHANGAR_W_WALL | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* North facing hangar */
static const DrawTileSeqStruct _station_display_datas_0130[] = {
TILE_SEQ_LINE(14, 0, 0, 2, 16, 28, SPR_NEWHANGAR_N | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* East facing hangar */
static const DrawTileSeqStruct _station_display_datas_0131[] = {
TILE_SEQ_LINE(14, 0, 0, 2, 16, 28, SPR_NEWHANGAR_E | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* helipad for district airport NS
* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0132[] = {
TILE_SEQ_LINE(10, 6, 0, 0, 0, 0, SPR_AIRPORT_HELIPAD)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR)) // fences bottom
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences right
TILE_SEQ_END()
};
/* helipad for district airport NS
* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0133[] = {
TILE_SEQ_LINE(10, 6, 0, 0, 0, 0, SPR_AIRPORT_HELIPAD)
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences south
TILE_SEQ_END()
};
/* helidepot office with concrete underground and fence north
* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0134[] = {
TILE_SEQ_LINE( 0, 0, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences north
TILE_SEQ_LINE( 3, 3, 0, 10, 10, 60, SPR_AIRPORT_HELIDEPOT_OFFICE | (1 << PALETTE_MODIFIER_COLOUR)) // helidepot office
TILE_SEQ_END()
};
/* helidepot office with concrete underground and fence east
* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0135[] = {
TILE_SEQ_LINE( 0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR)) // fences east
TILE_SEQ_LINE( 3, 3, 0, 10, 10, 60, SPR_AIRPORT_HELIDEPOT_OFFICE | (1 << PALETTE_MODIFIER_COLOUR)) // helidepot office
TILE_SEQ_END()
};
/* helidepot office with concrete underground and fence west
* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0136[] = {
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR)) // fences west
TILE_SEQ_LINE( 3, 3, 0, 10, 10, 60, SPR_AIRPORT_HELIDEPOT_OFFICE | (1 << PALETTE_MODIFIER_COLOUR)) // helidepot office
TILE_SEQ_END()
};
/* helidepot office with concrete underground and fence south
* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0137[] = {
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences south
TILE_SEQ_LINE( 3, 3, 0, 10, 10, 60, SPR_AIRPORT_HELIDEPOT_OFFICE | (1 << PALETTE_MODIFIER_COLOUR)) // helidepot office
TILE_SEQ_END()
};
/* terminal with fence to east */
static const DrawTileSeqStruct _station_display_datas_0138[] = {
TILE_SEQ_LINE( 0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR)) // fences east
TILE_SEQ_END()
};
/* terminal with fence to south */
static const DrawTileSeqStruct _station_display_datas_0139[] = {
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences south
TILE_SEQ_END()
};
/* terminal with fence to north */
static const DrawTileSeqStruct _station_display_datas_0140[] = {
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR)) // fences west
TILE_SEQ_END()
};
/* concrete with fence to east */
static const DrawTileSeqStruct _station_display_datas_0141[] = {
TILE_SEQ_LINE( 0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR)) // fences east
TILE_SEQ_END()
};
/* concrete with fence to south */
static const DrawTileSeqStruct _station_display_datas_0142[] = {
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences south
TILE_SEQ_END()
};
/* helipad for district airport EW
* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0143[] = {
TILE_SEQ_LINE(10, 6, 0, 0, 0, 0, SPR_AIRPORT_HELIPAD)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR)) // fences west
TILE_SEQ_LINE( 0, 0, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences north
TILE_SEQ_END()
};
/* helipad for district airport EW
* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0144[] = {
TILE_SEQ_LINE(10, 6, 0, 0, 0, 0, SPR_AIRPORT_HELIPAD)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR)) // fences west
TILE_SEQ_END()
};
/* turning radar with concrete underground fences on south -- needs 12 tiles
* concrete underground
*BEGIN */
static const DrawTileSeqStruct _station_display_datas_0145[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_1) // turning radar
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences south
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0146[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_2)
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences south
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0147[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_3)
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences south
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0148[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_4)
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences south
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0149[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_5)
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences south
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0150[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_6)
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences south
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0151[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_7)
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences south
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0152[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_8)
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences south
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0153[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_9)
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences south
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0154[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_A)
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences south
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0155[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_B)
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences south
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0156[] = {
TILE_SEQ_LINE( 7, 7, 0, 2, 2, 8, SPR_AIRPORT_RADAR_C)
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences south
TILE_SEQ_END()
};
/* END */
/* helipad for helistation
* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0157[] = {
TILE_SEQ_LINE( 0, 1, 2, 0, 0, 0, SPR_NEWHELIPAD)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR)) // fences west
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences south
TILE_SEQ_END()
};
/* helipad for helistation
* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0158[] = {
TILE_SEQ_LINE( 0, 1, 2, 0, 0, 0, SPR_NEWHELIPAD)
TILE_SEQ_LINE(15, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR)) // fences west
TILE_SEQ_LINE( 0, 0, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences north
TILE_SEQ_END()
};
/* helipad for helistation
* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0159[] = {
TILE_SEQ_LINE( 0, 1, 2, 0, 0, 0, SPR_NEWHELIPAD)
TILE_SEQ_LINE( 0, 0, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences north
TILE_SEQ_END()
};
/* helidepot office with concrete underground - no fence */
static const DrawTileSeqStruct _station_display_datas_0160[] = {
TILE_SEQ_LINE( 3, 3, 0, 10, 10, 60, SPR_AIRPORT_HELIDEPOT_OFFICE | (1 << PALETTE_MODIFIER_COLOUR)) // helidepot office
TILE_SEQ_END()
};
/* concrete underground */
static const DrawTileSeqStruct _station_display_datas_0161[] = {
TILE_SEQ_LINE( 0, 0, 0, 1, 16, 6, SPR_AIRPORT_FENCE_Y | (1 << PALETTE_MODIFIER_COLOUR)) // fences east
TILE_SEQ_LINE( 0, 15, 0, 16, 1, 6, SPR_AIRPORT_FENCE_X | (1 << PALETTE_MODIFIER_COLOUR)) // fences south
TILE_SEQ_END()
};
/* half grass half SPR_AIRPORT_APRON */
static const DrawTileSeqStruct _station_display_datas_0162[] = {
TILE_SEQ_LINE(0, 0, 0, 0, 0, 0, SPR_GRASS_LEFT)
TILE_SEQ_END()
};
/* half grass half SPR_AIRPORT_APRON */
static const DrawTileSeqStruct _station_display_datas_0163[] = {
TILE_SEQ_LINE(0, 0, 0, 0, 0, 0, SPR_GRASS_RIGHT)
TILE_SEQ_END()
};
/* drive-through truck stop X */
static const DrawTileSeqStruct _station_display_datas_0168[] = {
TILE_SEQ_LINE( 0, 0, 0, 16, 3, 16, SPR_TRUCK_STOP_DT_X_W | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 0, 13, 0, 16, 3, 16, SPR_TRUCK_STOP_DT_X_E | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* drive-through truck stop Y */
static const DrawTileSeqStruct _station_display_datas_0169[] = {
TILE_SEQ_LINE(13, 0, 0, 3, 16, 16, SPR_TRUCK_STOP_DT_Y_W | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 0, 0, 0, 3, 16, 16, SPR_TRUCK_STOP_DT_Y_E | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* drive-through bus stop X */
static const DrawTileSeqStruct _station_display_datas_0170[] = {
TILE_SEQ_LINE( 0, 0, 0, 16, 3, 16, SPR_BUS_STOP_DT_X_W | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 0, 13, 0, 16, 3, 16, SPR_BUS_STOP_DT_X_E | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
/* drive-through bus stop Y */
static const DrawTileSeqStruct _station_display_datas_0171[] = {
TILE_SEQ_LINE(13, 0, 0, 3, 16, 16, SPR_BUS_STOP_DT_Y_W | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_LINE( 0, 0, 0, 3, 16, 16, SPR_BUS_STOP_DT_Y_E | (1 << PALETTE_MODIFIER_COLOUR))
TILE_SEQ_END()
};
#undef TILE_SEQ_END
#undef TILE_SEQ_LINE
#undef TILE_SEQ_LINE_PAL
/**
* Constructor macro of a DrawTileSprites structure
* @param img Ground sprite without palette of the tile
* @param dtss Sequence child sprites of the tile
*/
#define TILE_SPRITE_LINE(img, dtss) { {img, PAL_NONE}, dtss },
static const DrawTileSprites _station_display_datas_rail[] = {
TILE_SPRITE_LINE(SPR_RAIL_TRACK_X, _station_display_datas_0)
TILE_SPRITE_LINE(SPR_RAIL_TRACK_Y, _station_display_datas_1)
TILE_SPRITE_LINE(SPR_RAIL_TRACK_X, _station_display_datas_2)
TILE_SPRITE_LINE(SPR_RAIL_TRACK_Y, _station_display_datas_3)
TILE_SPRITE_LINE(SPR_RAIL_TRACK_X, _station_display_datas_4)
TILE_SPRITE_LINE(SPR_RAIL_TRACK_Y, _station_display_datas_5)
TILE_SPRITE_LINE(SPR_RAIL_TRACK_X, _station_display_datas_6)
TILE_SPRITE_LINE(SPR_RAIL_TRACK_Y, _station_display_datas_7)
};
static const DrawTileSprites _station_display_datas_airport[] = {
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_nothing)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_9)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_10)
TILE_SPRITE_LINE(SPR_AIRPORT_AIRCRAFT_STAND, _station_display_nothing)
TILE_SPRITE_LINE(SPR_AIRPORT_TAXIWAY_NS_WEST, _station_display_nothing)
TILE_SPRITE_LINE(SPR_AIRPORT_TAXIWAY_EW_SOUTH, _station_display_nothing)
TILE_SPRITE_LINE(SPR_AIRPORT_TAXIWAY_XING_SOUTH, _station_display_nothing)
TILE_SPRITE_LINE(SPR_AIRPORT_TAXIWAY_XING_WEST, _station_display_nothing)
TILE_SPRITE_LINE(SPR_AIRPORT_TAXIWAY_NS_CTR, _station_display_nothing)
TILE_SPRITE_LINE(SPR_AIRPORT_TAXIWAY_XING_EAST, _station_display_nothing)
TILE_SPRITE_LINE(SPR_AIRPORT_TAXIWAY_NS_EAST, _station_display_nothing)
TILE_SPRITE_LINE(SPR_AIRPORT_TAXIWAY_EW_NORTH, _station_display_nothing)
TILE_SPRITE_LINE(SPR_AIRPORT_TAXIWAY_EW_CTR, _station_display_nothing)
TILE_SPRITE_LINE(SPR_AIRPORT_TAXIWAY_EW_NORTH, _station_display_datas_21)
TILE_SPRITE_LINE(SPR_AIRPORT_RUNWAY_EXIT_A, _station_display_datas_22)
TILE_SPRITE_LINE(SPR_AIRPORT_RUNWAY_EXIT_B, _station_display_datas_23)
TILE_SPRITE_LINE(SPR_AIRPORT_RUNWAY_EXIT_C, _station_display_datas_24)
TILE_SPRITE_LINE(SPR_AIRPORT_RUNWAY_EXIT_D, _station_display_datas_25)
TILE_SPRITE_LINE(SPR_AIRPORT_RUNWAY_END, _station_display_datas_26)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_27)
TILE_SPRITE_LINE(SPR_FLAT_GRASS_TILE, _station_display_datas_28)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_29)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_30)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_31)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_32)
TILE_SPRITE_LINE(SPR_AIRPORT_AIRCRAFT_STAND, _station_display_datas_33)
TILE_SPRITE_LINE(SPR_AIRPORT_AIRCRAFT_STAND, _station_display_datas_34)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_35)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_36)
TILE_SPRITE_LINE(SPR_FLAT_GRASS_TILE, _station_display_nothing)
TILE_SPRITE_LINE(SPR_FLAT_GRASS_TILE, _station_display_datas_38)
TILE_SPRITE_LINE(SPR_FLAT_GRASS_TILE, _station_display_datas_39)
TILE_SPRITE_LINE(SPR_FLAT_GRASS_TILE, _station_display_datas_40)
TILE_SPRITE_LINE(SPR_FLAT_GRASS_TILE, _station_display_datas_41)
TILE_SPRITE_LINE(SPR_FLAT_GRASS_TILE, _station_display_datas_42)
TILE_SPRITE_LINE(SPR_FLAT_GRASS_TILE, _station_display_datas_43)
TILE_SPRITE_LINE(SPR_FLAT_GRASS_TILE, _station_display_datas_44)
TILE_SPRITE_LINE(SPR_FLAT_GRASS_TILE, _station_display_datas_45)
TILE_SPRITE_LINE(SPR_FLAT_GRASS_TILE, _station_display_datas_46)
TILE_SPRITE_LINE(SPR_FLAT_GRASS_TILE, _station_display_datas_47)
TILE_SPRITE_LINE(SPR_FLAT_GRASS_TILE, _station_display_datas_48)
TILE_SPRITE_LINE(SPR_FLAT_GRASS_TILE, _station_display_datas_49)
TILE_SPRITE_LINE(SPR_FLAT_GRASS_TILE, _station_display_datas_50)
TILE_SPRITE_LINE(SPR_FLAT_GRASS_TILE, _station_display_datas_51)
TILE_SPRITE_LINE(SPR_AIRFIELD_TERM_A, _station_display_nothing)
TILE_SPRITE_LINE(SPR_AIRFIELD_TERM_B, _station_display_nothing)
TILE_SPRITE_LINE(SPR_AIRFIELD_TERM_C_GROUND | (1 << PALETTE_MODIFIER_COLOUR), _station_display_datas_54)
TILE_SPRITE_LINE(SPR_AIRFIELD_APRON_A, _station_display_datas_55)
TILE_SPRITE_LINE(SPR_AIRFIELD_APRON_B, _station_display_nothing)
TILE_SPRITE_LINE(SPR_AIRFIELD_APRON_C, _station_display_nothing)
TILE_SPRITE_LINE(SPR_AIRFIELD_APRON_D, _station_display_datas_58)
TILE_SPRITE_LINE(SPR_AIRFIELD_APRON_D, _station_display_datas_59)
TILE_SPRITE_LINE(SPR_AIRFIELD_APRON_D, _station_display_datas_60)
TILE_SPRITE_LINE(SPR_AIRFIELD_APRON_D, _station_display_datas_61)
TILE_SPRITE_LINE(SPR_AIRFIELD_RUNWAY_NEAR_END, _station_display_datas_62)
TILE_SPRITE_LINE(SPR_AIRFIELD_RUNWAY_MIDDLE, _station_display_datas_63)
TILE_SPRITE_LINE(SPR_AIRFIELD_RUNWAY_FAR_END, _station_display_datas_64)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_65)
TILE_SPRITE_LINE(SPR_FLAT_GRASS_TILE, _station_display_datas_66)
TILE_SPRITE_LINE(SPR_AIRPORT_RUNWAY_END, _station_display_nothing)
TILE_SPRITE_LINE(SPR_AIRPORT_RUNWAY_EXIT_B, _station_display_nothing)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_085)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_086)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_087)
TILE_SPRITE_LINE(SPR_AIRPORT_RUNWAY_END, _station_display_datas_088)
TILE_SPRITE_LINE(SPR_AIRPORT_RUNWAY_EXIT_B, _station_display_datas_089)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_090)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_091)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_092)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_093)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_094)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_095)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_096)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_097)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_098)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_099)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0100)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0101)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0102)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0103)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0104)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0105)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0106)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0107)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0108)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0109)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0110)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0111)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0112)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0113)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0114)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0115)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0116)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0117)
TILE_SPRITE_LINE(SPR_AIRPORT_RUNWAY_END, _station_display_datas_0118)
TILE_SPRITE_LINE(SPR_AIRPORT_RUNWAY_END, _station_display_datas_0119)
TILE_SPRITE_LINE(SPR_AIRPORT_RUNWAY_END, _station_display_datas_0120)
TILE_SPRITE_LINE(SPR_AIRPORT_RUNWAY_END, _station_display_datas_0121)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0122)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0123)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0124)
TILE_SPRITE_LINE(SPR_NSRUNWAY1, _station_display_datas_0125)
TILE_SPRITE_LINE(SPR_NSRUNWAY_END, _station_display_datas_0126)
TILE_SPRITE_LINE(SPR_NSRUNWAY1, _station_display_datas_0127)
TILE_SPRITE_LINE(SPR_NSRUNWAY_END, _station_display_datas_0128)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0129)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0130)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0131)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0132)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0133)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0134)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0135)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0136)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0137)
TILE_SPRITE_LINE(SPR_AIRPORT_AIRCRAFT_STAND, _station_display_datas_0138)
TILE_SPRITE_LINE(SPR_AIRPORT_AIRCRAFT_STAND, _station_display_datas_0139)
TILE_SPRITE_LINE(SPR_AIRPORT_AIRCRAFT_STAND, _station_display_datas_0140)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0141)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0142)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0143)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0144)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0145)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0146)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0147)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0148)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0149)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0150)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0151)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0152)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0153)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0154)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0155)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0156)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0157)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0158)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0159)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0160)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0161)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0162)
TILE_SPRITE_LINE(SPR_AIRPORT_APRON, _station_display_datas_0163)
TILE_SPRITE_LINE(SPR_FLAT_GRASS_TILE, _station_display_datas_58)
TILE_SPRITE_LINE(SPR_FLAT_GRASS_TILE, _station_display_datas_59)
TILE_SPRITE_LINE(SPR_FLAT_GRASS_TILE, _station_display_datas_60)
TILE_SPRITE_LINE(SPR_FLAT_GRASS_TILE, _station_display_datas_61)
};
static const DrawTileSprites _station_display_datas_truck[] = {
TILE_SPRITE_LINE(SPR_TRUCK_STOP_NE_GROUND | (1 << PALETTE_MODIFIER_COLOUR), _station_display_datas_67)
TILE_SPRITE_LINE(SPR_TRUCK_STOP_SE_GROUND | (1 << PALETTE_MODIFIER_COLOUR), _station_display_datas_68)
TILE_SPRITE_LINE(SPR_TRUCK_STOP_SW_GROUND | (1 << PALETTE_MODIFIER_COLOUR), _station_display_datas_69)
TILE_SPRITE_LINE(SPR_TRUCK_STOP_NW_GROUND | (1 << PALETTE_MODIFIER_COLOUR), _station_display_datas_70)
TILE_SPRITE_LINE(SPR_ROAD_PAVED_STRAIGHT_X, _station_display_datas_0168)
TILE_SPRITE_LINE(SPR_ROAD_PAVED_STRAIGHT_Y, _station_display_datas_0169)
};
static const DrawTileSprites _station_display_datas_bus[] = {
TILE_SPRITE_LINE(SPR_BUS_STOP_NE_GROUND | (1 << PALETTE_MODIFIER_COLOUR), _station_display_datas_71)
TILE_SPRITE_LINE(SPR_BUS_STOP_SE_GROUND | (1 << PALETTE_MODIFIER_COLOUR), _station_display_datas_72)
TILE_SPRITE_LINE(SPR_BUS_STOP_SW_GROUND | (1 << PALETTE_MODIFIER_COLOUR), _station_display_datas_73)
TILE_SPRITE_LINE(SPR_BUS_STOP_NW_GROUND | (1 << PALETTE_MODIFIER_COLOUR), _station_display_datas_74)
TILE_SPRITE_LINE(SPR_ROAD_PAVED_STRAIGHT_X, _station_display_datas_0170)
TILE_SPRITE_LINE(SPR_ROAD_PAVED_STRAIGHT_Y, _station_display_datas_0171)
};
static const DrawTileSprites _station_display_datas_oilrig[] = {
TILE_SPRITE_LINE(SPR_FLAT_WATER_TILE, _station_display_nothing)
};
static const DrawTileSprites _station_display_datas_dock[] = {
TILE_SPRITE_LINE(SPR_SHORE_BASE + SLOPE_SW, _station_display_datas_76)
TILE_SPRITE_LINE(SPR_SHORE_BASE + SLOPE_NW, _station_display_datas_77)
TILE_SPRITE_LINE(SPR_SHORE_BASE + SLOPE_NE, _station_display_datas_78)
TILE_SPRITE_LINE(SPR_SHORE_BASE + SLOPE_SE, _station_display_datas_79)
TILE_SPRITE_LINE(SPR_FLAT_WATER_TILE, _station_display_datas_80)
TILE_SPRITE_LINE(SPR_FLAT_WATER_TILE, _station_display_datas_81)
};
static const DrawTileSprites _station_display_datas_buoy[] = {
TILE_SPRITE_LINE(SPR_FLAT_WATER_TILE, _station_display_datas_82)
};
#undef TILE_SPRITE_LINE
static const DrawTileSprites *_station_display_datas[] = {
_station_display_datas_rail,
_station_display_datas_airport,
_station_display_datas_truck,
_station_display_datas_bus,
_station_display_datas_oilrig,
_station_display_datas_dock,
_station_display_datas_buoy,
};
| 56,587
|
C++
|
.h
| 1,067
| 51.27179
| 146
| 0.674495
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,646
|
unicode.h
|
EnergeticBark_OpenTTD-3DS/src/table/unicode.h
|
/* $Id$ */
/** @file unicode.h Character mapping for using Unicode characters in OTTD. */
struct DefaultUnicodeMapping {
WChar code; ///< Unicode value
byte key; ///< Character index of sprite
};
enum {
CLRA = 0, ///< Identifier to clear all glyphs at this codepoint
CLRL = 1, ///< Identifier to clear glyphs for large font at this codepoint
};
/* Default unicode mapping table for sprite based glyphs.
* This table allows us use unicode characters even though the glyphs don't
* exist, or are in the wrong place, in the standard sprite fonts.
* This is not used for FreeType rendering */
static DefaultUnicodeMapping _default_unicode_map[] = {
{ 0x00A0, 0x20 }, // Non-breaking space / Up arrow
{ 0x00A4, CLRL }, // Currency sign
{ 0x00A6, CLRL }, // Broken bar
{ 0x00A7, CLRL }, // Section sign
{ 0x00A8, CLRL }, // Diaeresis
{ 0x00A9, CLRL }, // Copyright sign
{ 0x00AA, CLRA }, // Feminine ordinal indicator / Down arrow
{ 0x00AC, CLRA }, // Not sign / Tick mark
{ 0x00AD, 0x20 }, // Soft hyphen / X mark
{ 0x00AF, CLRA }, // Macron / Right arrow
{ 0x00B0, CLRL }, // Degree sign
{ 0x00B1, CLRL }, // Plus-Minus sign
{ 0x00B2, CLRL }, // Superscript 2
{ 0x00B3, CLRL }, // Superscript 3
{ 0x00B4, CLRA }, // Acute accent / Train symbol
{ 0x00B5, CLRA }, // Micro sign / Truck symbol
{ 0x00B6, CLRA }, // Pilcrow sign / Bus symbol
{ 0x00B7, CLRA }, // Middle dot / Aircraft symbol
{ 0x00B8, CLRA }, // Cedilla / Ship symbol
{ 0x00B9, CLRA }, // Superscript 1 / Superscript -1
{ 0x00BA, CLRL }, // Masculine ordinal indicator
{ 0x00BC, CLRA }, // One quarter / Small up arrow
{ 0x00BD, CLRA }, // One half / Small down arrow
{ 0x00BE, CLRL }, // Three quarters
{ 0x00D0, CLRL }, // Capital letter eth
{ 0x00D7, CLRL }, // Multiplication sign
{ 0x00D8, CLRL }, // Capital letter O with stroke
{ 0x00D9, CLRL }, // Capital letter U with grave
{ 0x00DE, CLRL }, // Capital letter thorn
{ 0x00E6, CLRL }, // Small letter ae
{ 0x00F0, CLRL }, // Small letter eth
{ 0x00F7, CLRL }, // Divison sign
{ 0x00F8, CLRL }, // Small letter o with stroke
{ 0x00FE, CLRL }, // Small letter thorn
{ 0x0178, 0x9F }, // Capital letter Y with diaeresis
{ 0x010D, 0x63 }, // Small letter c with caron
};
| 2,235
|
C++
|
.h
| 52
| 41.057692
| 78
| 0.674013
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,647
|
landscape_sprite.h
|
EnergeticBark_OpenTTD-3DS/src/table/landscape_sprite.h
|
/* $Id$ */
/** @file landscape_sprite.h Offsets of sprites to replace for non-temperate landscapes. */
enum {
END = 0xFFFF
};
static const SpriteID _landscape_spriteindexes_1[] = {
0xF67, 0xF9F,
0xAAD, 0xAB0,
0x83A, 0x845,
0xFA0, 0xFC9,
0x43F, 0x45E,
0x566, 0x56D,
0x945, 0x94C,
0x3ED, 0x40C,
0x515, 0x51C,
0x55A, 0x561,
0x534, 0x546,
0x93D, 0x944,
0x955, 0x95C,
0xFDD, 0xFEC,
0x87D, 0x883,
0xA2B, 0xA39,
0x497, 0x4B0,
0x572, 0x575,
0x94D, 0x954,
0x818, 0x81D,
0x3DE, 0x3EB,
0x1212, 0x1212,
END
};
static const SpriteID _landscape_spriteindexes_2[] = {
0xF67, 0xF9F,
0xAAD, 0xAB0,
0xFA0, 0xFC9,
0x43F, 0x45E,
0x566, 0x56D,
0x945, 0x94C,
0x3ED, 0x40C,
0x515, 0x51C,
0x55A, 0x561,
0x547, 0x559,
0x93D, 0x944,
0x955, 0x95C,
0xFDD, 0xFEC,
0x87D, 0x883,
0xA2B, 0xA39,
0x497, 0x4B0,
0x572, 0x575,
0x94D, 0x954,
0x5AE, 0x5AF,
0x118D, 0x11D8,
0x534, 0x546,
0x40D, 0x426,
0x45F, 0x478,
0x4B1, 0x4CA,
0x95D, 0x97C,
0x3DE, 0x3EB,
0x562, 0x565,
0x56E, 0x571,
0x57A, 0x57D,
0x83A, 0x845,
0xFF5, 0xFF5,
0xFF8, 0xFF8,
0x1212, 0x1212,
END
};
static const SpriteID _landscape_spriteindexes_3[] = {
0xF54, 0xF9F,
0xFDD, 0xFE5,
0xFEC, 0xFEC,
0xFA0, 0xFC9,
0x818, 0x81D,
0x521, 0x546,
0x57E, 0x57F,
0x3ED, 0x40C,
0x43F, 0x45E,
0x491, 0x4B0,
0xA48, 0xA48,
0x4FB, 0x50A,
0x55A, 0x561,
0x566, 0x56D,
0x572, 0x579,
0x427, 0x42C,
0x479, 0x47E,
0x4CB, 0x4D0,
0x4EF, 0x4FA,
0xE9D, 0xECC,
0xF3D, 0xF40,
0xB59, 0xB60,
0xE5D, 0xE6C,
0xA49, 0xA59,
0xA63, 0xA68,
0xA5A, 0xA62,
0xA78, 0xA83,
0xA69, 0xA77,
0xA84, 0xAA3,
0xAA7, 0xAAC,
0xA2B, 0xA47,
0x3DE, 0x3EB,
0x47F, 0x488,
0x4D1, 0x4DA,
0x42D, 0x436,
0x515, 0x51C,
0x580, 0x585,
0xC14, 0xCB3,
0xAAD, 0xAB0,
0xAB5, 0xB00,
0xB69, 0xB70,
0xB61, 0xB68,
0xBC9, 0xBD0,
0xBD9, 0xBE0,
0xBA9, 0xBB0,
0xBC1, 0xBC4,
0x2D0, 0x2D0,
0xAA5, 0xAA6,
0x50F, 0x50F,
0x2EA, 0x2EA,
0x2ED, 0x2EE,
0x512, 0x513,
0x4EB, 0x4EE,
0x4E7, 0x4EA,
0x985, 0xA28,
0x10E4, 0x1133,
0x93D, 0x95C,
0x97D, 0x984,
0x7DA, 0x7DA,
0x2E6, 0x2E6,
0x1, 0x1,
0xE54, 0xE54,
0x51F, 0x520,
0x514, 0x514,
0x511, 0x511,
0x322, 0x322,
END
};
| 2,255
|
C++
|
.h
| 135
| 14.777778
| 91
| 0.678014
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,648
|
roadveh_movement.h
|
EnergeticBark_OpenTTD-3DS/src/table/roadveh_movement.h
|
/* $Id$ */
/** @file table/roadveh_movement.h Data about how a road vehicle must drive on a tile */
static const RoadDriveEntry _roadveh_drive_data_0[] = {
{15, 5},
{14, 5},
{13, 5},
{12, 5},
{11, 5},
{10, 5},
{ 9, 5},
{ 8, 5},
{ 7, 5},
{ 6, 5},
{ 5, 5},
{ 4, 5},
{ 3, 5},
{ 2, 5},
{ 1, 5},
{ 0, 5},
{RDE_NEXT_TILE | DIAGDIR_NE, 0}
};
static const RoadDriveEntry _roadveh_drive_data_1[] = {
{5, 0},
{5, 1},
{5, 2},
{5, 3},
{5, 4},
{5, 5},
{5, 6},
{5, 7},
{5, 8},
{5, 9},
{5, 10},
{5, 11},
{5, 12},
{5, 13},
{5, 14},
{5, 15},
{RDE_NEXT_TILE | DIAGDIR_SE, 0}
};
static const RoadDriveEntry _roadveh_drive_data_2[] = {
{5, 0},
{5, 1},
{5, 2},
{4, 3},
{3, 4},
{2, 5},
{1, 5},
{0, 5},
{RDE_NEXT_TILE | DIAGDIR_NE, 0}
};
static const RoadDriveEntry _roadveh_drive_data_3[] = {
{15, 5},
{14, 5},
{13, 5},
{12, 5},
{11, 5},
{10, 5},
{ 9, 6},
{ 8, 7},
{ 7, 8},
{ 6, 9},
{ 5, 10},
{ 5, 11},
{ 5, 12},
{ 5, 13},
{ 5, 14},
{ 5, 15},
{RDE_NEXT_TILE | DIAGDIR_SE, 0}
};
static const RoadDriveEntry _roadveh_drive_data_4[] = {
{ 5, 0},
{ 5, 1},
{ 5, 2},
{ 5, 3},
{ 5, 4},
{ 5, 5},
{ 6, 6},
{ 7, 7},
{ 8, 8},
{ 9, 9},
{10, 9},
{11, 9},
{12, 9},
{13, 9},
{14, 9},
{15, 9},
{RDE_NEXT_TILE | DIAGDIR_SW, 0}
};
static const RoadDriveEntry _roadveh_drive_data_5[] = {
{0, 9},
{1, 9},
{2, 9},
{3, 10},
{4, 11},
{5, 12},
{5, 13},
{5, 14},
{5, 15},
{RDE_NEXT_TILE | DIAGDIR_SE, 0}
};
static const RoadDriveEntry _roadveh_drive_data_6[] = {
{0, 6},
{0, 7},
{0, 8},
{0, 9},
{RDE_TURNED | DIAGDIR_SW, 0}
};
static const RoadDriveEntry _roadveh_drive_data_7[] = {
{6, 15},
{7, 15},
{8, 15},
{9, 15},
{RDE_TURNED | DIAGDIR_NW, 0}
};
static const RoadDriveEntry _roadveh_drive_data_8[] = {
{ 0, 9},
{ 1, 9},
{ 2, 9},
{ 3, 9},
{ 4, 9},
{ 5, 9},
{ 6, 9},
{ 7, 9},
{ 8, 9},
{ 9, 9},
{10, 9},
{11, 9},
{12, 9},
{13, 9},
{14, 9},
{15, 9},
{RDE_NEXT_TILE | DIAGDIR_SW, 0}
};
static const RoadDriveEntry _roadveh_drive_data_9[] = {
{9, 15},
{9, 14},
{9, 13},
{9, 12},
{9, 11},
{9, 10},
{9, 9},
{9, 8},
{9, 7},
{9, 6},
{9, 5},
{9, 4},
{9, 3},
{9, 2},
{9, 1},
{9, 0},
{RDE_NEXT_TILE | DIAGDIR_NW, 0}
};
static const RoadDriveEntry _roadveh_drive_data_10[] = {
{0, 9},
{1, 9},
{2, 9},
{3, 9},
{4, 9},
{5, 9},
{6, 8},
{7, 7},
{8, 6},
{9, 5},
{9, 4},
{9, 3},
{9, 2},
{9, 1},
{9, 0},
{RDE_NEXT_TILE | DIAGDIR_NW, 0}
};
static const RoadDriveEntry _roadveh_drive_data_11[] = {
{ 9, 15},
{ 9, 14},
{ 9, 13},
{10, 12},
{11, 11},
{12, 10},
{13, 9},
{14, 9},
{15, 9},
{RDE_NEXT_TILE | DIAGDIR_SW, 0}
};
static const RoadDriveEntry _roadveh_drive_data_12[] = {
{15, 5},
{14, 5},
{13, 5},
{12, 4},
{11, 3},
{10, 2},
{ 9, 1},
{ 9, 0},
{RDE_NEXT_TILE | DIAGDIR_NW, 0}
};
static const RoadDriveEntry _roadveh_drive_data_13[] = {
{9, 15},
{9, 14},
{9, 13},
{9, 12},
{9, 11},
{9, 10},
{8, 9},
{7, 8},
{6, 7},
{5, 6},
{4, 5},
{3, 5},
{2, 5},
{1, 5},
{0, 5},
{RDE_NEXT_TILE | DIAGDIR_NE, 0}
};
static const RoadDriveEntry _roadveh_drive_data_14[] = {
{15, 8},
{15, 7},
{15, 6},
{15, 5},
{RDE_TURNED | DIAGDIR_NE, 0}
};
static const RoadDriveEntry _roadveh_drive_data_15[] = {
{8, 0},
{7, 0},
{6, 0},
{5, 0},
{RDE_TURNED | DIAGDIR_SE, 0}
};
static const RoadDriveEntry _roadveh_drive_data_16[] = {
{15, 9},
{14, 9},
{13, 9},
{12, 9},
{11, 9},
{10, 9},
{ 9, 9},
{ 8, 9},
{ 7, 9},
{ 6, 9},
{ 5, 9},
{ 4, 9},
{ 3, 9},
{ 2, 9},
{ 1, 9},
{ 0, 9},
{RDE_NEXT_TILE | DIAGDIR_NE, 0}
};
static const RoadDriveEntry _roadveh_drive_data_17[] = {
{9, 0},
{9, 1},
{9, 2},
{9, 3},
{9, 4},
{9, 5},
{9, 6},
{9, 7},
{9, 8},
{9, 9},
{9, 10},
{9, 11},
{9, 12},
{9, 13},
{9, 14},
{9, 15},
{RDE_NEXT_TILE | DIAGDIR_SE, 0}
};
static const RoadDriveEntry _roadveh_drive_data_18[] = {
{9, 0},
{9, 1},
{9, 2},
{9, 3},
{9, 4},
{9, 5},
{8, 6},
{7, 7},
{6, 8},
{5, 9},
{4, 9},
{3, 9},
{2, 9},
{1, 9},
{0, 9},
{RDE_NEXT_TILE | DIAGDIR_NE, 0}
};
static const RoadDriveEntry _roadveh_drive_data_19[] = {
{15, 9},
{14, 9},
{13, 9},
{12, 10},
{11, 11},
{10, 12},
{ 9, 13},
{ 9, 14},
{ 9, 15},
{RDE_NEXT_TILE | DIAGDIR_SE, 0}
};
static const RoadDriveEntry _roadveh_drive_data_20[] = {
{ 9, 0},
{ 9, 1},
{10, 2},
{11, 3},
{12, 4},
{13, 5},
{14, 5},
{15, 5},
{RDE_NEXT_TILE | DIAGDIR_SW, 0}
};
static const RoadDriveEntry _roadveh_drive_data_21[] = {
{0, 5},
{1, 5},
{2, 5},
{3, 5},
{4, 5},
{5, 6},
{6, 7},
{7, 8},
{8, 9},
{9, 10},
{9, 11},
{9, 12},
{9, 13},
{9, 14},
{9, 15},
{RDE_NEXT_TILE | DIAGDIR_SE, 0}
};
static const RoadDriveEntry _roadveh_drive_data_22[] = {
{0, 8},
{0, 7},
{0, 6},
{0, 5},
{RDE_TURNED | DIAGDIR_SW, 0}
};
static const RoadDriveEntry _roadveh_drive_data_23[] = {
{8, 15},
{7, 15},
{6, 15},
{5, 15},
{RDE_TURNED | DIAGDIR_NW, 0}
};
static const RoadDriveEntry _roadveh_drive_data_24[] = {
{ 0, 5},
{ 1, 5},
{ 2, 5},
{ 3, 5},
{ 4, 5},
{ 5, 5},
{ 6, 5},
{ 7, 5},
{ 8, 5},
{ 9, 5},
{10, 5},
{11, 5},
{12, 5},
{13, 5},
{14, 5},
{15, 5},
{RDE_NEXT_TILE | DIAGDIR_SW, 0}
};
static const RoadDriveEntry _roadveh_drive_data_25[] = {
{5, 15},
{5, 14},
{5, 13},
{5, 12},
{5, 11},
{5, 10},
{5, 9},
{5, 8},
{5, 7},
{5, 6},
{5, 5},
{5, 4},
{5, 3},
{5, 2},
{5, 1},
{5, 0},
{RDE_NEXT_TILE | DIAGDIR_NW, 0}
};
static const RoadDriveEntry _roadveh_drive_data_26[] = {
{0, 5},
{1, 5},
{2, 5},
{3, 4},
{4, 3},
{5, 2},
{5, 1},
{5, 0},
{RDE_NEXT_TILE | DIAGDIR_NW, 0}
};
static const RoadDriveEntry _roadveh_drive_data_27[] = {
{ 5, 15},
{ 5, 14},
{ 5, 13},
{ 5, 12},
{ 5, 11},
{ 5, 10},
{ 6, 9},
{ 7, 8},
{ 8, 7},
{ 9, 6},
{10, 5},
{11, 5},
{12, 5},
{13, 5},
{14, 5},
{15, 5},
{RDE_NEXT_TILE | DIAGDIR_SW, 0}
};
static const RoadDriveEntry _roadveh_drive_data_28[] = {
{15, 9},
{14, 9},
{13, 9},
{12, 9},
{11, 9},
{10, 9},
{ 9, 9},
{ 8, 8},
{ 7, 7},
{ 6, 6},
{ 5, 5},
{ 5, 4},
{ 5, 3},
{ 5, 2},
{ 5, 1},
{ 5, 0},
{RDE_NEXT_TILE | DIAGDIR_NW, 0}
};
static const RoadDriveEntry _roadveh_drive_data_29[] = {
{5, 15},
{5, 14},
{5, 13},
{5, 12},
{4, 11},
{3, 10},
{2, 9},
{1, 9},
{0, 9},
{RDE_NEXT_TILE | DIAGDIR_NE, 0}
};
static const RoadDriveEntry _roadveh_drive_data_30[] = {
{15, 6},
{15, 7},
{15, 8},
{15, 9},
{RDE_TURNED | DIAGDIR_NE, 0}
};
static const RoadDriveEntry _roadveh_drive_data_31[] = {
{6, 0},
{7, 0},
{8, 0},
{9, 0},
{RDE_TURNED | DIAGDIR_SE, 0}
};
static const RoadDriveEntry _roadveh_drive_data_32[] = {
{15, 5},
{14, 5},
{13, 6},
{13, 7},
{13, 8},
{13, 9},
{13, 10},
{13, 11},
{12, 12},
{11, 12},
{10, 12},
{ 9, 12},
{ 8, 12},
{ 7, 12},
{ 6, 12},
{ 5, 11},
{ 5, 10},
{ 5, 9},
{ 5, 8},
{ 5, 7},
{ 5, 6},
{ 5, 7},
{ 5, 8},
{ 5, 9},
{ 5, 10},
{ 5, 11},
{ 6, 12},
{ 7, 12},
{ 8, 12},
{ 9, 12},
{10, 12},
{11, 12},
{12, 12},
{13, 11},
{13, 10},
{14, 9},
{15, 9},
{RDE_NEXT_TILE | DIAGDIR_SW, 0}
};
static const RoadDriveEntry _roadveh_drive_data_33[] = {
{ 5, 0},
{ 5, 1},
{ 6, 2},
{ 7, 2},
{ 8, 2},
{ 9, 2},
{10, 2},
{11, 2},
{12, 3},
{12, 4},
{12, 5},
{12, 6},
{12, 7},
{12, 8},
{12, 9},
{11, 10},
{10, 10},
{ 9, 10},
{ 8, 10},
{ 7, 10},
{ 6, 10},
{ 7, 10},
{ 8, 10},
{ 9, 10},
{10, 10},
{11, 10},
{12, 9},
{12, 8},
{12, 7},
{12, 6},
{12, 5},
{12, 4},
{12, 3},
{11, 2},
{10, 2},
{ 9, 1},
{ 9, 0},
{RDE_NEXT_TILE | DIAGDIR_NW, 0}
};
static const RoadDriveEntry _roadveh_drive_data_34[] = {
{15, 5},
{14, 5},
{13, 6},
{13, 7},
{13, 8},
{13, 9},
{13, 10},
{13, 11},
{12, 12},
{11, 12},
{10, 12},
{ 9, 11},
{ 9, 10},
{ 9, 9},
{ 9, 8},
{ 9, 7},
{ 9, 6},
{ 9, 7},
{ 9, 8},
{ 9, 9},
{ 9, 10},
{ 9, 11},
{10, 12},
{11, 12},
{12, 12},
{13, 11},
{13, 10},
{14, 9},
{15, 9},
{RDE_NEXT_TILE | DIAGDIR_SW, 0}
};
static const RoadDriveEntry _roadveh_drive_data_35[] = {
{ 5, 0},
{ 5, 1},
{ 6, 2},
{ 7, 2},
{ 8, 2},
{ 9, 2},
{10, 2},
{11, 2},
{12, 3},
{12, 4},
{12, 5},
{11, 6},
{10, 6},
{ 9, 6},
{ 8, 6},
{ 7, 6},
{ 6, 6},
{ 7, 6},
{ 8, 6},
{ 9, 6},
{10, 6},
{11, 6},
{12, 5},
{12, 4},
{12, 3},
{11, 2},
{10, 2},
{ 9, 1},
{ 9, 0},
{RDE_NEXT_TILE | DIAGDIR_NW, 0}
};
static const RoadDriveEntry _roadveh_drive_data_40[] = {
{ 0, 9},
{ 1, 9},
{ 2, 8},
{ 2, 7},
{ 2, 6},
{ 2, 5},
{ 2, 4},
{ 3, 3},
{ 4, 3},
{ 5, 3},
{ 6, 3},
{ 7, 3},
{ 8, 3},
{ 9, 3},
{10, 4},
{10, 5},
{10, 6},
{10, 7},
{10, 8},
{10, 9},
{10, 8},
{10, 7},
{10, 6},
{10, 5},
{10, 4},
{ 9, 3},
{ 8, 3},
{ 7, 3},
{ 6, 3},
{ 5, 3},
{ 4, 3},
{ 3, 3},
{ 2, 4},
{ 1, 5},
{ 0, 5},
{RDE_NEXT_TILE | DIAGDIR_NE, 0}
};
static const RoadDriveEntry _roadveh_drive_data_41[] = {
{9, 15},
{9, 14},
{8, 13},
{7, 13},
{6, 13},
{5, 13},
{4, 13},
{3, 12},
{3, 11},
{3, 10},
{3, 9},
{3, 8},
{3, 7},
{3, 6},
{4, 5},
{5, 5},
{6, 5},
{7, 5},
{8, 5},
{9, 5},
{8, 5},
{7, 5},
{6, 5},
{5, 5},
{4, 5},
{3, 6},
{3, 7},
{3, 8},
{3, 9},
{3, 10},
{3, 11},
{3, 12},
{4, 13},
{5, 14},
{5, 15},
{RDE_NEXT_TILE | DIAGDIR_SE, 0}
};
static const RoadDriveEntry _roadveh_drive_data_42[] = {
{0, 9},
{1, 9},
{2, 8},
{2, 7},
{2, 6},
{2, 5},
{2, 4},
{3, 3},
{4, 3},
{5, 3},
{6, 4},
{6, 5},
{6, 6},
{6, 7},
{6, 8},
{6, 9},
{6, 8},
{6, 7},
{6, 6},
{6, 5},
{6, 4},
{5, 3},
{4, 3},
{3, 3},
{2, 4},
{1, 5},
{0, 5},
{RDE_NEXT_TILE | DIAGDIR_NE, 0}
};
static const RoadDriveEntry _roadveh_drive_data_43[] = {
{9, 15},
{9, 14},
{8, 13},
{7, 13},
{6, 13},
{5, 13},
{4, 13},
{3, 12},
{3, 11},
{3, 10},
{4, 9},
{5, 9},
{6, 9},
{7, 9},
{8, 9},
{9, 9},
{8, 9},
{7, 9},
{6, 9},
{5, 9},
{4, 9},
{3, 10},
{3, 11},
{3, 12},
{4, 13},
{5, 14},
{5, 15},
{RDE_NEXT_TILE | DIAGDIR_SE, 0}
};
static const RoadDriveEntry _roadveh_drive_data_48[] = {
{15, 9},
{14, 9},
{13, 10},
{13, 11},
{12, 12},
{11, 12},
{10, 12},
{ 9, 12},
{ 8, 12},
{ 7, 12},
{ 6, 12},
{ 5, 11},
{ 5, 10},
{ 5, 9},
{ 5, 8},
{ 5, 7},
{ 5, 6},
{ 5, 7},
{ 5, 8},
{ 5, 9},
{ 5, 10},
{ 5, 11},
{ 6, 12},
{ 7, 12},
{ 8, 12},
{ 9, 12},
{10, 12},
{11, 12},
{12, 12},
{13, 11},
{13, 10},
{13, 9},
{13, 8},
{13, 7},
{13, 6},
{14, 5},
{15, 5},
{RDE_NEXT_TILE | DIAGDIR_SW, 0}
};
static const RoadDriveEntry _roadveh_drive_data_49[] = {
{ 9, 0},
{ 9, 1},
{10, 2},
{11, 2},
{12, 3},
{12, 4},
{12, 5},
{12, 6},
{12, 7},
{12, 8},
{12, 9},
{11, 10},
{10, 10},
{ 9, 10},
{ 8, 10},
{ 7, 10},
{ 6, 10},
{ 7, 10},
{ 8, 10},
{ 9, 10},
{10, 10},
{11, 10},
{12, 9},
{12, 8},
{12, 7},
{12, 6},
{12, 5},
{12, 4},
{12, 3},
{11, 2},
{10, 2},
{ 9, 2},
{ 8, 2},
{ 7, 2},
{ 6, 2},
{ 5, 1},
{ 5, 0},
{RDE_NEXT_TILE | DIAGDIR_NW, 0}
};
static const RoadDriveEntry _roadveh_drive_data_50[] = {
{15, 9},
{14, 9},
{13, 10},
{13, 11},
{12, 12},
{11, 12},
{10, 12},
{ 9, 11},
{ 9, 10},
{ 9, 9},
{ 9, 8},
{ 9, 7},
{ 9, 6},
{ 9, 7},
{ 9, 8},
{ 9, 9},
{ 9, 10},
{ 9, 11},
{10, 12},
{11, 12},
{12, 12},
{13, 11},
{13, 10},
{13, 9},
{13, 8},
{13, 7},
{13, 6},
{14, 5},
{15, 5},
{RDE_NEXT_TILE | DIAGDIR_SW, 0}
};
static const RoadDriveEntry _roadveh_drive_data_51[] = {
{ 9, 0},
{ 9, 1},
{10, 2},
{11, 2},
{12, 3},
{12, 4},
{12, 5},
{11, 6},
{10, 6},
{ 9, 6},
{ 8, 6},
{ 7, 6},
{ 6, 6},
{ 7, 6},
{ 8, 6},
{ 9, 6},
{10, 6},
{11, 6},
{12, 5},
{12, 4},
{12, 3},
{11, 2},
{10, 2},
{ 9, 2},
{ 8, 2},
{ 7, 2},
{ 6, 2},
{ 5, 1},
{ 5, 0},
{RDE_NEXT_TILE | DIAGDIR_NW, 0}
};
static const RoadDriveEntry _roadveh_drive_data_56[] = {
{ 0, 5},
{ 1, 5},
{ 2, 4},
{ 3, 3},
{ 4, 3},
{ 5, 3},
{ 6, 3},
{ 7, 3},
{ 8, 3},
{ 9, 3},
{10, 4},
{10, 5},
{10, 6},
{10, 7},
{10, 8},
{10, 9},
{10, 8},
{10, 7},
{10, 6},
{10, 5},
{10, 4},
{ 9, 3},
{ 8, 3},
{ 7, 3},
{ 6, 3},
{ 5, 3},
{ 4, 3},
{ 3, 3},
{ 2, 4},
{ 2, 5},
{ 2, 6},
{ 2, 7},
{ 2, 8},
{ 1, 9},
{ 0, 9},
{RDE_NEXT_TILE | DIAGDIR_NE, 0}
};
static const RoadDriveEntry _roadveh_drive_data_57[] = {
{5, 15},
{5, 14},
{4, 13},
{3, 12},
{3, 11},
{3, 10},
{3, 9},
{3, 8},
{3, 7},
{3, 6},
{4, 5},
{5, 5},
{6, 5},
{7, 5},
{8, 5},
{9, 5},
{8, 5},
{7, 5},
{6, 5},
{5, 5},
{4, 5},
{3, 6},
{3, 7},
{3, 8},
{3, 9},
{3, 10},
{3, 11},
{3, 12},
{4, 13},
{5, 13},
{6, 13},
{7, 13},
{8, 13},
{9, 14},
{9, 15},
{RDE_NEXT_TILE | DIAGDIR_SE, 0}
};
static const RoadDriveEntry _roadveh_drive_data_58[] = {
{0, 5},
{1, 5},
{2, 4},
{3, 3},
{4, 3},
{5, 3},
{6, 4},
{6, 5},
{6, 6},
{6, 7},
{6, 8},
{6, 9},
{6, 8},
{6, 7},
{6, 6},
{6, 5},
{6, 4},
{5, 3},
{4, 3},
{3, 3},
{2, 4},
{2, 5},
{2, 6},
{2, 7},
{2, 8},
{1, 9},
{0, 9},
{RDE_NEXT_TILE | DIAGDIR_NE, 0}
};
static const RoadDriveEntry _roadveh_drive_data_59[] = {
{5, 15},
{5, 14},
{4, 13},
{3, 12},
{3, 11},
{3, 10},
{4, 9},
{5, 9},
{6, 9},
{7, 9},
{8, 9},
{9, 9},
{8, 9},
{7, 9},
{6, 9},
{5, 9},
{4, 9},
{3, 10},
{3, 11},
{3, 12},
{4, 13},
{5, 13},
{6, 13},
{7, 13},
{8, 13},
{9, 14},
{9, 15},
{RDE_NEXT_TILE | DIAGDIR_SE, 0}
};
static const RoadDriveEntry * const _road_road_drive_data[] = {
_roadveh_drive_data_0,
_roadveh_drive_data_1,
_roadveh_drive_data_2,
_roadveh_drive_data_3,
_roadveh_drive_data_4,
_roadveh_drive_data_5,
_roadveh_drive_data_6,
_roadveh_drive_data_7,
_roadveh_drive_data_8,
_roadveh_drive_data_9,
_roadveh_drive_data_10,
_roadveh_drive_data_11,
_roadveh_drive_data_12,
_roadveh_drive_data_13,
_roadveh_drive_data_14,
_roadveh_drive_data_15,
_roadveh_drive_data_16,
_roadveh_drive_data_17,
_roadveh_drive_data_18,
_roadveh_drive_data_19,
_roadveh_drive_data_20,
_roadveh_drive_data_21,
_roadveh_drive_data_22,
_roadveh_drive_data_23,
_roadveh_drive_data_24,
_roadveh_drive_data_25,
_roadveh_drive_data_26,
_roadveh_drive_data_27,
_roadveh_drive_data_28,
_roadveh_drive_data_29,
_roadveh_drive_data_30,
_roadveh_drive_data_31,
_roadveh_drive_data_32,
_roadveh_drive_data_33,
_roadveh_drive_data_34,
_roadveh_drive_data_35,
NULL,
NULL,
NULL,
NULL,
_roadveh_drive_data_40,
_roadveh_drive_data_41,
_roadveh_drive_data_42,
_roadveh_drive_data_43,
NULL,
NULL,
NULL,
NULL,
_roadveh_drive_data_48,
_roadveh_drive_data_49,
_roadveh_drive_data_50,
_roadveh_drive_data_51,
NULL,
NULL,
NULL,
NULL,
_roadveh_drive_data_56,
_roadveh_drive_data_57,
_roadveh_drive_data_58,
_roadveh_drive_data_59,
NULL,
NULL,
NULL,
NULL,
};
static const RoadDriveEntry _roadveh_tram_turn_ne_0[] = {
{15, 5},
{14, 5},
{13, 5},
{12, 5},
{11, 5},
{10, 5},
{ 9, 5},
{ 8, 5},
{ 7, 5},
{ 6, 5},
{ 5, 5},
{ 4, 5},
{ 3, 5},
{ 2, 5},
{ 1, 5},
{ 0, 5},
{ 0, 6},
{ 0, 7},
{ 0, 8},
{ 0, 9},
{RDE_TURNED | DIAGDIR_SW, 0},
{ 1, 9},
{ 2, 9},
{ 3, 9},
{ 4, 9},
{ 5, 9},
{ 6, 9},
{ 7, 9},
{ 8, 9},
{ 9, 9},
{10, 9},
{11, 9},
{12, 9},
{13, 9},
{14, 9},
{15, 9},
{RDE_NEXT_TILE | DIAGDIR_SW, 0}
};
static const RoadDriveEntry _roadveh_tram_turn_ne_1[] = {
{15, 9},
{14, 9},
{13, 9},
{12, 9},
{11, 9},
{10, 9},
{ 9, 9},
{ 8, 9},
{ 7, 9},
{ 6, 9},
{ 5, 9},
{ 4, 9},
{ 3, 9},
{ 2, 9},
{ 1, 9},
{ 0, 9},
{ 0, 8},
{ 0, 7},
{ 0, 6},
{ 0, 5},
{RDE_TURNED | DIAGDIR_SW, 0},
{ 1, 5},
{ 2, 5},
{ 3, 5},
{ 4, 5},
{ 5, 5},
{ 6, 5},
{ 7, 5},
{ 8, 5},
{ 9, 5},
{10, 5},
{11, 5},
{12, 5},
{13, 5},
{14, 5},
{15, 5},
{RDE_NEXT_TILE | DIAGDIR_SW, 0}
};
static const RoadDriveEntry _roadveh_tram_turn_se_0[] = {
{5, 0},
{5, 1},
{5, 2},
{5, 3},
{5, 4},
{5, 5},
{5, 6},
{5, 7},
{5, 8},
{5, 9},
{5, 10},
{5, 11},
{5, 12},
{5, 13},
{5, 14},
{5, 15},
{6, 15},
{7, 15},
{8, 15},
{9, 15},
{RDE_TURNED | DIAGDIR_NW, 0},
{9, 14},
{9, 13},
{9, 12},
{9, 11},
{9, 10},
{9, 9},
{9, 8},
{9, 7},
{9, 6},
{9, 5},
{9, 4},
{9, 3},
{9, 2},
{9, 1},
{9, 0},
{RDE_NEXT_TILE | DIAGDIR_NW, 0}
};
static const RoadDriveEntry _roadveh_tram_turn_se_1[] = {
{9, 0},
{9, 1},
{9, 2},
{9, 3},
{9, 4},
{9, 5},
{9, 6},
{9, 7},
{9, 8},
{9, 9},
{9, 10},
{9, 11},
{9, 12},
{9, 13},
{9, 14},
{9, 15},
{8, 15},
{7, 15},
{6, 15},
{5, 15},
{RDE_TURNED | DIAGDIR_NW, 0},
{5, 14},
{5, 13},
{5, 12},
{5, 11},
{5, 10},
{5, 9},
{5, 8},
{5, 7},
{5, 6},
{5, 5},
{5, 4},
{5, 3},
{5, 2},
{5, 1},
{5, 0},
{RDE_NEXT_TILE | DIAGDIR_NW, 0}
};
static const RoadDriveEntry _roadveh_tram_turn_sw_0[] = {
{ 0, 9},
{ 1, 9},
{ 2, 9},
{ 3, 9},
{ 4, 9},
{ 5, 9},
{ 6, 9},
{ 7, 9},
{ 8, 9},
{ 9, 9},
{10, 9},
{11, 9},
{12, 9},
{13, 9},
{14, 9},
{15, 9},
{15, 8},
{15, 7},
{15, 6},
{15, 5},
{RDE_TURNED | DIAGDIR_NE, 0},
{14, 5},
{13, 5},
{12, 5},
{11, 5},
{10, 5},
{ 9, 5},
{ 8, 5},
{ 7, 5},
{ 6, 5},
{ 5, 5},
{ 4, 5},
{ 3, 5},
{ 2, 5},
{ 1, 5},
{ 0, 5},
{RDE_NEXT_TILE | DIAGDIR_NE, 0}
};
static const RoadDriveEntry _roadveh_tram_turn_sw_1[] = {
{ 0, 5},
{ 1, 5},
{ 2, 5},
{ 3, 5},
{ 4, 5},
{ 5, 5},
{ 6, 5},
{ 7, 5},
{ 8, 5},
{ 9, 5},
{10, 5},
{11, 5},
{12, 5},
{13, 5},
{14, 5},
{15, 5},
{15, 6},
{15, 7},
{15, 8},
{15, 9},
{RDE_TURNED | DIAGDIR_NE, 0},
{14, 9},
{13, 9},
{12, 9},
{11, 9},
{10, 9},
{ 9, 9},
{ 8, 9},
{ 7, 9},
{ 6, 9},
{ 5, 9},
{ 4, 9},
{ 3, 9},
{ 2, 9},
{ 1, 9},
{ 0, 9},
{RDE_NEXT_TILE | DIAGDIR_NE, 0}
};
static const RoadDriveEntry _roadveh_tram_turn_nw_0[] = {
{9, 15},
{9, 14},
{9, 13},
{9, 12},
{9, 11},
{9, 10},
{9, 9},
{9, 8},
{9, 7},
{9, 6},
{9, 5},
{9, 4},
{9, 3},
{9, 2},
{9, 1},
{9, 0},
{8, 0},
{7, 0},
{6, 0},
{5, 0},
{RDE_TURNED | DIAGDIR_SE, 0},
{5, 1},
{5, 2},
{5, 3},
{5, 4},
{5, 5},
{5, 6},
{5, 7},
{5, 8},
{5, 9},
{5, 10},
{5, 11},
{5, 12},
{5, 13},
{5, 14},
{5, 15},
{RDE_NEXT_TILE | DIAGDIR_SE, 0}
};
static const RoadDriveEntry _roadveh_tram_turn_nw_1[] = {
{5, 15},
{5, 14},
{5, 13},
{5, 12},
{5, 11},
{5, 10},
{5, 9},
{5, 8},
{5, 7},
{5, 6},
{5, 5},
{5, 4},
{5, 3},
{5, 2},
{5, 1},
{5, 0},
{6, 0},
{7, 0},
{8, 0},
{9, 0},
{RDE_TURNED | DIAGDIR_SE, 0},
{9, 1},
{9, 2},
{9, 3},
{9, 4},
{9, 5},
{9, 6},
{9, 7},
{9, 8},
{9, 9},
{9, 10},
{9, 11},
{9, 12},
{9, 13},
{9, 14},
{9, 15},
{RDE_NEXT_TILE | DIAGDIR_SE, 0}
};
static const RoadDriveEntry * const _road_tram_drive_data[] = {
_roadveh_drive_data_0,
_roadveh_drive_data_1,
_roadveh_drive_data_2,
_roadveh_drive_data_3,
_roadveh_drive_data_4,
_roadveh_drive_data_5,
_roadveh_tram_turn_ne_0,
_roadveh_tram_turn_se_0,
_roadveh_drive_data_8,
_roadveh_drive_data_9,
_roadveh_drive_data_10,
_roadveh_drive_data_11,
_roadveh_drive_data_12,
_roadveh_drive_data_13,
_roadveh_tram_turn_sw_0,
_roadveh_tram_turn_nw_0,
_roadveh_drive_data_16,
_roadveh_drive_data_17,
_roadveh_drive_data_18,
_roadveh_drive_data_19,
_roadveh_drive_data_20,
_roadveh_drive_data_21,
_roadveh_tram_turn_ne_1,
_roadveh_tram_turn_se_1,
_roadveh_drive_data_24,
_roadveh_drive_data_25,
_roadveh_drive_data_26,
_roadveh_drive_data_27,
_roadveh_drive_data_28,
_roadveh_drive_data_29,
_roadveh_tram_turn_sw_1,
_roadveh_tram_turn_nw_1,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
NULL,
};
static const RoadDriveEntry * const * const _road_drive_data[2] = {
_road_road_drive_data,
_road_tram_drive_data,
};
| 19,707
|
C++
|
.h
| 1,459
| 11.581905
| 88
| 0.463453
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,649
|
files.h
|
EnergeticBark_OpenTTD-3DS/src/table/files.h
|
/* $Id$ */
/** @file files.h MD5 checksum information and names of the original and extra data files. */
/*
* MD5 sums of graphics files
*
* DOS -
*
* TRG1.GRF 9311676280e5b14077a8ee41c1b42192
* TRGC.GRF ed446637e034104c5559b32c18afe78d
* TRGH.GRF ee6616fb0e6ef6b24892c58c93d86fc9
* TRGI.GRF da6a6c9dcc451eec88d79211437b76a8
* TRGT.GRF e30e8a398ae86c03dc534a8ac7dfb3b6 (German: fcde1d7e8a74197d72a62695884b909e)
* SAMPLE.CAT 422ea3dd074d2859bb51639a6e0e85da
*
* WINDOWS -
*
* TRG1R.GRF b04ce593d8c5016e07473a743d7d3358
* TRGCR.GRF 3668f410c761a050b5e7095a2b14879b
* TRGHR.GRF 06bf2b7a31766f048baac2ebe43457b1
* TRGIR.GRF 0c2484ff6be49fc63a83be6ab5c38f32
* TRGTR.GRF de53650517fe661ceaa3138c6edb0eb8
* SAMPLE.CAT 9212e81e72badd4bbe1eaeae66458e10
*/
static MD5File _sound_sets[] = {
{ "SAMPLE.CAT", {0x42, 0x2e, 0xa3, 0xdd, 0x07, 0x4d, 0x28, 0x59, 0xbb, 0x51, 0x63, 0x9a, 0x6e, 0x0e, 0x85, 0xda}, NULL },
{ "SAMPLE.CAT", {0x92, 0x12, 0xe8, 0x1e, 0x72, 0xba, 0xdd, 0x4b, 0xbe, 0x1e, 0xae, 0xae, 0x66, 0x45, 0x8e, 0x10}, NULL },
};
| 1,054
|
C++
|
.h
| 27
| 37.074074
| 122
| 0.777126
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,650
|
oldloader.h
|
EnergeticBark_OpenTTD-3DS/src/saveload/oldloader.h
|
/* $Id$ */
/** @file oldloader.h Declarations of strctures and function used in loader of old savegames */
#ifndef OLDLOADER_H
#define OLDLOADER_H
#include "saveload.h"
enum {
BUFFER_SIZE = 4096,
OLD_MAP_SIZE = 256 * 256,
};
struct LoadgameState {
FILE *file;
uint chunk_size;
bool decoding;
byte decode_char;
uint buffer_count;
uint buffer_cur;
byte buffer[BUFFER_SIZE];
uint total_read;
bool failed;
};
/* OldChunk-Type */
enum OldChunkType {
OC_SIMPLE = 0,
OC_NULL = 1,
OC_CHUNK = 2,
OC_ASSERT = 3,
/* 4 bits allocated (16 max) */
OC_TTD = 1 << 4, ///< chunk is valid ONLY for TTD savegames
OC_TTO = 1 << 5, ///< -//- TTO (default is neither of these)
/* 4 bits allocated */
OC_VAR_I8 = 1 << 8,
OC_VAR_U8 = 2 << 8,
OC_VAR_I16 = 3 << 8,
OC_VAR_U16 = 4 << 8,
OC_VAR_I32 = 5 << 8,
OC_VAR_U32 = 6 << 8,
OC_VAR_I64 = 7 << 8,
OC_VAR_U64 = 8 << 8,
/* 8 bits allocated (256 max) */
OC_FILE_I8 = 1 << 16,
OC_FILE_U8 = 2 << 16,
OC_FILE_I16 = 3 << 16,
OC_FILE_U16 = 4 << 16,
OC_FILE_I32 = 5 << 16,
OC_FILE_U32 = 6 << 16,
/* 8 bits allocated (256 max) */
OC_INT8 = OC_VAR_I8 | OC_FILE_I8,
OC_UINT8 = OC_VAR_U8 | OC_FILE_U8,
OC_INT16 = OC_VAR_I16 | OC_FILE_I16,
OC_UINT16 = OC_VAR_U16 | OC_FILE_U16,
OC_INT32 = OC_VAR_I32 | OC_FILE_I32,
OC_UINT32 = OC_VAR_U32 | OC_FILE_U32,
OC_TILE = OC_VAR_U32 | OC_FILE_U16,
/**
* Dereference the pointer once before writing to it,
* so we do not have to use big static arrays.
*/
OC_DEREFERENCE_POINTER = 1 << 31,
OC_END = 0 ///< End of the whole chunk, all 32 bits set to zero
};
DECLARE_ENUM_AS_BIT_SET(OldChunkType);
typedef bool OldChunkProc(LoadgameState *ls, int num);
struct OldChunks {
OldChunkType type; ///< Type of field
uint32 amount; ///< Amount of fields
void *ptr; ///< Pointer where to save the data (may only be set if offset is 0)
uint offset; ///< Offset from basepointer (may only be set if ptr is NULL)
OldChunkProc *proc; ///< Pointer to function that is called with OC_CHUNK
};
/* If it fails, check lines above.. */
assert_compile(sizeof(TileIndex) == 4);
extern uint _bump_assert_value;
byte ReadByte(LoadgameState *ls);
bool LoadChunk(LoadgameState *ls, void *base, const OldChunks *chunks);
bool LoadTTDMain(LoadgameState *ls);
bool LoadTTOMain(LoadgameState *ls);
static inline uint16 ReadUint16(LoadgameState *ls)
{
byte x = ReadByte(ls);
return x | ReadByte(ls) << 8;
}
static inline uint32 ReadUint32(LoadgameState *ls)
{
uint16 x = ReadUint16(ls);
return x | ReadUint16(ls) << 16;
}
/* Help:
* - OCL_SVAR: load 'type' to offset 'offset' in a struct of type 'base', which must also
* be given via base in LoadChunk() as real pointer
* - OCL_VAR: load 'type' to a global var
* - OCL_END: every struct must end with this
* - OCL_NULL: read 'amount' of bytes and send them to /dev/null or something
* - OCL_CHUNK: load an other proc to load a part of the savegame, 'amount' times
* - OCL_ASSERT: to check if we are really at the place we expect to be.. because old savegames are too binary to be sure ;)
*/
#define OCL_SVAR(type, base, offset) { type, 1, NULL, (uint)cpp_offsetof(base, offset), NULL }
#define OCL_VAR(type, amount, pointer) { type, amount, pointer, 0, NULL }
#define OCL_END() { OC_END, 0, NULL, 0, NULL }
#define OCL_CNULL(type, amount) { OC_NULL | type, amount, NULL, 0, NULL }
#define OCL_CCHUNK(type, amount, proc) { OC_CHUNK | type, amount, NULL, 0, proc }
#define OCL_ASSERT(type, size) { OC_ASSERT | type, 1, NULL, size, NULL }
#define OCL_NULL(amount) OCL_CNULL((OldChunkType)0, amount)
#define OCL_CHUNK(amount, proc) OCL_CCHUNK((OldChunkType)0, amount, proc)
#endif /* OLDLOADER_H */
| 4,091
|
C++
|
.h
| 104
| 37.413462
| 125
| 0.610255
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,651
|
saveload.h
|
EnergeticBark_OpenTTD-3DS/src/saveload/saveload.h
|
/* $Id$ */
/** @file saveload.h Functions/types related to saving and loading games. */
#ifndef SAVELOAD_H
#define SAVELOAD_H
#include "../fileio_type.h"
#ifdef SIZE_MAX
#undef SIZE_MAX
#endif
#define SIZE_MAX ((size_t)-1)
enum SaveOrLoadResult {
SL_OK = 0, ///< completed successfully
SL_ERROR = 1, ///< error that was caught before internal structures were modified
SL_REINIT = 2, ///< error that was caught in the middle of updating game state, need to clear it. (can only happen during load)
};
enum SaveOrLoadMode {
SL_INVALID = -1,
SL_LOAD = 0,
SL_SAVE = 1,
SL_OLD_LOAD = 2,
SL_PNG = 3,
SL_BMP = 4,
};
enum SavegameType {
SGT_TTD, ///< TTD savegame (can be detected incorrectly)
SGT_TTDP1, ///< TTDP savegame ( -//- ) (data at NW border)
SGT_TTDP2, ///< TTDP savegame in new format (data at SE border)
SGT_OTTD, ///< OTTD savegame
SGT_TTO, ///< TTO savegame
SGT_INVALID = 0xFF ///< broken savegame (used internally)
};
void GenerateDefaultSaveName(char *buf, const char *last);
void SetSaveLoadError(uint16 str);
const char *GetSaveLoadErrorString();
SaveOrLoadResult SaveOrLoad(const char *filename, int mode, Subdirectory sb);
void WaitTillSaved();
void DoExitSave();
typedef void ChunkSaveLoadProc();
typedef void AutolengthProc(void *arg);
struct ChunkHandler {
uint32 id;
ChunkSaveLoadProc *save_proc;
ChunkSaveLoadProc *load_proc;
uint32 flags;
};
struct NullStruct {
byte null;
};
enum SLRefType {
REF_ORDER = 0,
REF_VEHICLE = 1,
REF_STATION = 2,
REF_TOWN = 3,
REF_VEHICLE_OLD = 4,
REF_ROADSTOPS = 5,
REF_ENGINE_RENEWS = 6,
REF_CARGO_PACKET = 7,
REF_ORDERLIST = 8,
};
#define SL_MAX_VERSION 255
enum {
INC_VEHICLE_COMMON = 0,
};
enum {
CH_RIFF = 0,
CH_ARRAY = 1,
CH_SPARSE_ARRAY = 2,
CH_TYPE_MASK = 3,
CH_LAST = 8,
CH_AUTO_LENGTH = 16,
CH_PRI_0 = 0 << 4,
CH_PRI_1 = 1 << 4,
CH_PRI_2 = 2 << 4,
CH_PRI_3 = 3 << 4,
CH_PRI_SHL = 4,
CH_NUM_PRI_LEVELS = 4,
};
/** VarTypes is the general bitmasked magic type that tells us
* certain characteristics about the variable it refers to. For example
* SLE_FILE_* gives the size(type) as it would be in the savegame and
* SLE_VAR_* the size(type) as it is in memory during runtime. These are
* the first 8 bits (0-3 SLE_FILE, 4-7 SLE_VAR).
* Bits 8-15 are reserved for various flags as explained below */
enum VarTypes {
/* 4 bits allocated a maximum of 16 types for NumberType */
SLE_FILE_I8 = 0,
SLE_FILE_U8 = 1,
SLE_FILE_I16 = 2,
SLE_FILE_U16 = 3,
SLE_FILE_I32 = 4,
SLE_FILE_U32 = 5,
SLE_FILE_I64 = 6,
SLE_FILE_U64 = 7,
SLE_FILE_STRINGID = 8, ///< StringID offset into strings-array
SLE_FILE_STRING = 9,
/* 6 more possible file-primitives */
/* 4 bits allocated a maximum of 16 types for NumberType */
SLE_VAR_BL = 0 << 4,
SLE_VAR_I8 = 1 << 4,
SLE_VAR_U8 = 2 << 4,
SLE_VAR_I16 = 3 << 4,
SLE_VAR_U16 = 4 << 4,
SLE_VAR_I32 = 5 << 4,
SLE_VAR_U32 = 6 << 4,
SLE_VAR_I64 = 7 << 4,
SLE_VAR_U64 = 8 << 4,
SLE_VAR_NULL = 9 << 4, ///< useful to write zeros in savegame.
SLE_VAR_STRB = 10 << 4, ///< string (with pre-allocated buffer)
SLE_VAR_STRBQ = 11 << 4, ///< string enclosed in quotes (with pre-allocated buffer)
SLE_VAR_STR = 12 << 4, ///< string pointer
SLE_VAR_STRQ = 13 << 4, ///< string pointer enclosed in quotes
SLE_VAR_NAME = 14 << 4, ///< old custom name to be converted to a char pointer
/* 1 more possible memory-primitives */
/* Shortcut values */
SLE_VAR_CHAR = SLE_VAR_I8,
/* Default combinations of variables. As savegames change, so can variables
* and thus it is possible that the saved value and internal size do not
* match and you need to specify custom combo. The defaults are listed here */
SLE_BOOL = SLE_FILE_I8 | SLE_VAR_BL,
SLE_INT8 = SLE_FILE_I8 | SLE_VAR_I8,
SLE_UINT8 = SLE_FILE_U8 | SLE_VAR_U8,
SLE_INT16 = SLE_FILE_I16 | SLE_VAR_I16,
SLE_UINT16 = SLE_FILE_U16 | SLE_VAR_U16,
SLE_INT32 = SLE_FILE_I32 | SLE_VAR_I32,
SLE_UINT32 = SLE_FILE_U32 | SLE_VAR_U32,
SLE_INT64 = SLE_FILE_I64 | SLE_VAR_I64,
SLE_UINT64 = SLE_FILE_U64 | SLE_VAR_U64,
SLE_CHAR = SLE_FILE_I8 | SLE_VAR_CHAR,
SLE_STRINGID = SLE_FILE_STRINGID | SLE_VAR_U16,
SLE_STRINGBUF = SLE_FILE_STRING | SLE_VAR_STRB,
SLE_STRINGBQUOTE = SLE_FILE_STRING | SLE_VAR_STRBQ,
SLE_STRING = SLE_FILE_STRING | SLE_VAR_STR,
SLE_STRINGQUOTE = SLE_FILE_STRING | SLE_VAR_STRQ,
SLE_NAME = SLE_FILE_STRINGID | SLE_VAR_NAME,
/* Shortcut values */
SLE_UINT = SLE_UINT32,
SLE_INT = SLE_INT32,
SLE_STRB = SLE_STRINGBUF,
SLE_STRBQ = SLE_STRINGBQUOTE,
SLE_STR = SLE_STRING,
SLE_STRQ = SLE_STRINGQUOTE,
/* 8 bits allocated for a maximum of 8 flags
* Flags directing saving/loading of a variable */
SLF_SAVE_NO = 1 << 8, ///< do not save with savegame, basically client-based
SLF_CONFIG_NO = 1 << 9, ///< do not save to config file
SLF_NETWORK_NO = 1 << 10, ///< do not synchronize over network (but it is saved if SSF_SAVE_NO is not set)
/* 5 more possible flags */
};
typedef uint32 VarType;
enum SaveLoadTypes {
SL_VAR = 0,
SL_REF = 1,
SL_ARR = 2,
SL_STR = 3,
SL_LST = 4,
/* non-normal save-load types */
SL_WRITEBYTE = 8,
SL_VEH_INCLUDE = 9,
SL_END = 15
};
typedef byte SaveLoadType;
/** SaveLoad type struct. Do NOT use this directly but use the SLE_ macros defined just below! */
struct SaveLoad {
bool global; ///< should we load a global variable or a non-global one
SaveLoadType cmd; ///< the action to take with the saved/loaded type, All types need different action
VarType conv; ///< type of the variable to be saved, int
uint16 length; ///< (conditional) length of the variable (eg. arrays) (max array size is 65536 elements)
uint16 version_from; ///< save/load the variable starting from this savegame version
uint16 version_to; ///< save/load the variable until this savegame version
/* NOTE: This element either denotes the address of the variable for a global
* variable, or the offset within a struct which is then bound to a variable
* during runtime. Decision on which one to use is controlled by the function
* that is called to save it. address: global=true, offset: global=false */
void *address; ///< address of variable OR offset of variable in the struct (max offset is 65536)
};
/* Same as SaveLoad but global variables are used (for better readability); */
typedef SaveLoad SaveLoadGlobVarList;
/* Simple variables, references (pointers) and arrays */
#define SLE_GENERAL(cmd, base, variable, type, length, from, to) {false, cmd, type, length, from, to, (void*)cpp_offsetof(base, variable)}
#define SLE_CONDVAR(base, variable, type, from, to) SLE_GENERAL(SL_VAR, base, variable, type, 0, from, to)
#define SLE_CONDREF(base, variable, type, from, to) SLE_GENERAL(SL_REF, base, variable, type, 0, from, to)
#define SLE_CONDARR(base, variable, type, length, from, to) SLE_GENERAL(SL_ARR, base, variable, type, length, from, to)
#define SLE_CONDSTR(base, variable, type, length, from, to) SLE_GENERAL(SL_STR, base, variable, type, length, from, to)
#define SLE_CONDLST(base, variable, type, from, to) SLE_GENERAL(SL_LST, base, variable, type, 0, from, to)
#define SLE_VAR(base, variable, type) SLE_CONDVAR(base, variable, type, 0, SL_MAX_VERSION)
#define SLE_REF(base, variable, type) SLE_CONDREF(base, variable, type, 0, SL_MAX_VERSION)
#define SLE_ARR(base, variable, type, length) SLE_CONDARR(base, variable, type, length, 0, SL_MAX_VERSION)
#define SLE_STR(base, variable, type, length) SLE_CONDSTR(base, variable, type, length, 0, SL_MAX_VERSION)
#define SLE_LST(base, variable, type) SLE_CONDLST(base, variable, type, 0, SL_MAX_VERSION)
#define SLE_CONDNULL(length, from, to) SLE_CONDARR(NullStruct, null, SLE_FILE_U8 | SLE_VAR_NULL | SLF_CONFIG_NO, length, from, to)
/* Translate values ingame to different values in the savegame and vv */
#define SLE_WRITEBYTE(base, variable, value) SLE_GENERAL(SL_WRITEBYTE, base, variable, 0, 0, value, value)
/* The same as the ones at the top, only the offset is given directly; used for unions */
#define SLE_GENERALX(cmd, offset, type, length, param1, param2) {false, cmd, type, length, param1, param2, (void*)(offset)}
#define SLE_CONDVARX(offset, type, from, to) SLE_GENERALX(SL_VAR, offset, type, 0, from, to)
#define SLE_CONDARRX(offset, type, length, from, to) SLE_GENERALX(SL_ARR, offset, type, length, from, to)
#define SLE_CONDREFX(offset, type, from, to) SLE_GENERALX(SL_REF, offset, type, 0, from, to)
#define SLE_VARX(offset, type) SLE_CONDVARX(offset, type, 0, SL_MAX_VERSION)
#define SLE_REFX(offset, type) SLE_CONDREFX(offset, type, 0, SL_MAX_VERSION)
#define SLE_WRITEBYTEX(offset, something) SLE_GENERALX(SL_WRITEBYTE, offset, 0, 0, something, 0)
#define SLE_VEH_INCLUDEX() SLE_GENERALX(SL_VEH_INCLUDE, 0, 0, 0, 0, SL_MAX_VERSION)
/* End marker */
#define SLE_END() {false, SL_END, 0, 0, 0, 0, NULL}
/* Simple variables, references (pointers) and arrays, but for global variables */
#define SLEG_GENERAL(cmd, variable, type, length, from, to) {true, cmd, type, length, from, to, (void*)&variable}
#define SLEG_CONDVAR(variable, type, from, to) SLEG_GENERAL(SL_VAR, variable, type, 0, from, to)
#define SLEG_CONDREF(variable, type, from, to) SLEG_GENERAL(SL_REF, variable, type, 0, from, to)
#define SLEG_CONDARR(variable, type, length, from, to) SLEG_GENERAL(SL_ARR, variable, type, length, from, to)
#define SLEG_CONDSTR(variable, type, length, from, to) SLEG_GENERAL(SL_STR, variable, type, length, from, to)
#define SLEG_CONDLST(variable, type, from, to) SLEG_GENERAL(SL_LST, variable, type, 0, from, to)
#define SLEG_VAR(variable, type) SLEG_CONDVAR(variable, type, 0, SL_MAX_VERSION)
#define SLEG_REF(variable, type) SLEG_CONDREF(variable, type, 0, SL_MAX_VERSION)
#define SLEG_ARR(variable, type) SLEG_CONDARR(variable, type, lengthof(variable), 0, SL_MAX_VERSION)
#define SLEG_STR(variable, type) SLEG_CONDSTR(variable, type, lengthof(variable), 0, SL_MAX_VERSION)
#define SLEG_LST(variable, type) SLEG_CONDLST(variable, type, 0, SL_MAX_VERSION)
#define SLEG_CONDNULL(length, from, to) {true, SL_ARR, SLE_FILE_U8 | SLE_VAR_NULL | SLF_CONFIG_NO, length, from, to, (void*)NULL}
#define SLEG_END() {true, SL_END, 0, 0, 0, 0, NULL}
/** Checks if the savegame is below major.minor.
*/
static inline bool CheckSavegameVersionOldStyle(uint16 major, byte minor)
{
extern uint16 _sl_version;
extern byte _sl_minor_version;
return (_sl_version < major) || (_sl_version == major && _sl_minor_version < minor);
}
/** Checks if the savegame is below version.
*/
static inline bool CheckSavegameVersion(uint16 version)
{
extern uint16 _sl_version;
return _sl_version < version;
}
/** Checks if some version from/to combination falls within the range of the
* active savegame version */
static inline bool SlIsObjectCurrentlyValid(uint16 version_from, uint16 version_to)
{
extern const uint16 SAVEGAME_VERSION;
if (SAVEGAME_VERSION < version_from || SAVEGAME_VERSION > version_to) return false;
return true;
}
/* Get the NumberType of a setting. This describes the integer type
* as it is represented in memory
* @param type VarType holding information about the variable-type
* @return return the SLE_VAR_* part of a variable-type description */
static inline VarType GetVarMemType(VarType type)
{
return type & 0xF0; // GB(type, 4, 4) << 4;
}
/* Get the FileType of a setting. This describes the integer type
* as it is represented in a savegame/file
* @param type VarType holding information about the variable-type
* @param return the SLE_FILE_* part of a variable-type description */
static inline VarType GetVarFileType(VarType type)
{
return type & 0xF; // GB(type, 0, 4);
}
/** Get the address of the variable. Which one to pick depends on the object
* pointer. If it is NULL we are dealing with global variables so the address
* is taken. If non-null only the offset is stored in the union and we need
* to add this to the address of the object */
static inline void *GetVariableAddress(const void *object, const SaveLoad *sld)
{
return (byte*)(sld->global ? NULL : object) + (ptrdiff_t)sld->address;
}
int64 ReadValue(const void *ptr, VarType conv);
void WriteValue(void *ptr, VarType conv, int64 val);
void SlSetArrayIndex(uint index);
int SlIterateArray();
void SlAutolength(AutolengthProc *proc, void *arg);
size_t SlGetFieldLength();
void SlSetLength(size_t length);
size_t SlCalcObjMemberLength(const void *object, const SaveLoad *sld);
size_t SlCalcObjLength(const void *object, const SaveLoad *sld);
byte SlReadByte();
void SlWriteByte(byte b);
void SlGlobList(const SaveLoadGlobVarList *sldg);
void SlArray(void *array, size_t length, VarType conv);
void SlObject(void *object, const SaveLoad *sld);
bool SlObjectMember(void *object, const SaveLoad *sld);
extern char _savegame_format[8];
#endif /* SAVELOAD_H */
| 13,186
|
C++
|
.h
| 280
| 45.325
| 138
| 0.700467
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,652
|
saveload_internal.h
|
EnergeticBark_OpenTTD-3DS/src/saveload/saveload_internal.h
|
/* $Id$ */
/** @file saveload_internal.h Declaration of functions used in more save/load files */
#ifndef SAVELOAD_INTERNAL_H
#define SAVELOAD_INTERNAL_H
#include "../strings_type.h"
#include "../company_manager_face.h"
#include "../order_base.h"
#include "../engine_type.h"
#include "saveload.h"
void InitializeOldNames();
StringID RemapOldStringID(StringID s);
char *CopyFromOldName(StringID id);
void ResetOldNames();
void FixOldWaypoints();
void AfterLoadWaypoints();
void AfterLoadVehicles(bool part_of_load);
void AfterLoadStations();
void UpdateHousesAndTowns();
void UpdateOldAircraft();
void SaveViewportBeforeSaveGame();
void ResetViewportAfterLoadGame();
void ConvertOldMultiheadToNew();
void ConnectMultiheadedTrains();
Engine *GetTempDataEngine(EngineID index);
void CopyTempEngineData();
extern int32 _saved_scrollpos_x;
extern int32 _saved_scrollpos_y;
extern SavegameType _savegame_type;
extern uint32 _ttdp_version;
CompanyManagerFace ConvertFromOldCompanyManagerFace(uint32 face);
Order UnpackOldOrder(uint16 packed);
#endif /* SAVELOAD_INTERNAL_H */
| 1,084
|
C++
|
.h
| 32
| 32.40625
| 86
| 0.814851
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,653
|
network_udp.h
|
EnergeticBark_OpenTTD-3DS/src/network/network_udp.h
|
/* $Id$ */
/** @file network_udp.h Sending and receiving UDP messages. */
#ifndef NETWORK_UDP_H
#define NETWORK_UDP_H
#ifdef ENABLE_NETWORK
void NetworkUDPInitialize();
void NetworkUDPSearchGame();
void NetworkUDPQueryMasterServer();
void NetworkUDPQueryServer(NetworkAddress address, bool manually = false);
void NetworkUDPAdvertise();
void NetworkUDPRemoveAdvertise();
void NetworkUDPShutdown();
#endif /* ENABLE_NETWORK */
#endif /* NETWORK_UDP_H */
| 459
|
C++
|
.h
| 14
| 31.357143
| 74
| 0.794989
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,654
|
network_gui.h
|
EnergeticBark_OpenTTD-3DS/src/network/network_gui.h
|
/* $Id$ */
/** @file network_gui.h GUIs related to networking. */
#ifndef NETWORK_GUI_H
#define NETWORK_GUI_H
#ifdef ENABLE_NETWORK
#include "../window_type.h"
#include "network_type.h"
void ShowNetworkNeedPassword(NetworkPasswordType npt);
void ShowNetworkGiveMoneyWindow(CompanyID company);
void ShowNetworkChatQueryWindow(DestType type, int dest);
void ShowJoinStatusWindow();
void ShowNetworkGameWindow();
void ShowClientList();
void ShowNetworkCompanyPasswordWindow(Window *parent);
/** Company information stored at the client side */
struct NetworkCompanyInfo : NetworkCompanyStats {
char company_name[NETWORK_COMPANY_NAME_LENGTH]; ///< Company name
Year inaugurated_year; ///< What year the company started in
Money company_value; ///< The company value
Money money; ///< The amount of money the company has
Money income; ///< How much did the company earned last year
uint16 performance; ///< What was his performance last month?
bool use_password; ///< Is there a password
char clients[NETWORK_CLIENTS_LENGTH]; ///< The clients that control this company (Name1, name2, ..)
};
NetworkCompanyInfo *GetLobbyCompanyInfo(CompanyID company);
#else /* ENABLE_NETWORK */
/* Network function stubs when networking is disabled */
static inline void ShowNetworkChatQueryWindow(byte desttype, int dest) {}
static inline void ShowClientList() {}
static inline void ShowNetworkGameWindow() {}
static inline void ShowNetworkCompanyPasswordWindow(Window *parent) {}
#endif /* ENABLE_NETWORK */
#endif /* NETWORK_GUI_H */
| 1,723
|
C++
|
.h
| 34
| 49.088235
| 110
| 0.697078
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,655
|
network_base.h
|
EnergeticBark_OpenTTD-3DS/src/network/network_base.h
|
/* $Id$ */
/** @file network_base.h Base core network types and some helper functions to access them. */
#ifndef NETWORK_BASE_H
#define NETWORK_BASE_H
#ifdef ENABLE_NETWORK
#include "network_type.h"
#include "../oldpool.h"
DECLARE_OLD_POOL(NetworkClientInfo, NetworkClientInfo, NCI_BITS_PER_POOL_BLOCK, MAX_CLIENT_SLOTS >> NCI_BITS_PER_POOL_BLOCK);
struct NetworkClientInfo : PoolItem<NetworkClientInfo, ClientIndex, &_NetworkClientInfo_pool> {
ClientID client_id; ///< Client identifier (same as ClientState->client_id)
char client_name[NETWORK_CLIENT_NAME_LENGTH]; ///< Name of the client
byte client_lang; ///< The language of the client
CompanyID client_playas; ///< As which company is this client playing (CompanyID)
uint32 client_ip; ///< IP-address of the client (so he can be banned)
Date join_date; ///< Gamedate the client has joined
char unique_id[NETWORK_UNIQUE_ID_LENGTH]; ///< Every play sends an unique id so we can indentify him
NetworkClientInfo(ClientID client_id = INVALID_CLIENT_ID) : client_id(client_id) {}
~NetworkClientInfo() { client_id = INVALID_CLIENT_ID; }
inline bool IsValid() const { return client_id != INVALID_CLIENT_ID; }
};
static inline bool IsValidNetworkClientInfoIndex(ClientIndex index)
{
return (uint)index < GetNetworkClientInfoPoolSize() && GetNetworkClientInfo(index)->IsValid();
}
#define FOR_ALL_CLIENT_INFOS_FROM(d, start) for (d = GetNetworkClientInfo(start); d != NULL; d = (d->index + 1U < GetNetworkClientInfoPoolSize()) ? GetNetworkClientInfo(d->index + 1U) : NULL) if (d->IsValid())
#define FOR_ALL_CLIENT_INFOS(d) FOR_ALL_CLIENT_INFOS_FROM(d, 0)
#endif /* ENABLE_NETWORK */
#endif /* NETWORK_BASE_H */
| 1,830
|
C++
|
.h
| 28
| 63.571429
| 209
| 0.686767
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,656
|
network_server.h
|
EnergeticBark_OpenTTD-3DS/src/network/network_server.h
|
/* $Id$ */
/** @file network_server.h Server part of the network protocol. */
#ifndef NETWORK_SERVER_H
#define NETWORK_SERVER_H
#ifdef ENABLE_NETWORK
DEF_SERVER_SEND_COMMAND(PACKET_SERVER_MAP);
DEF_SERVER_SEND_COMMAND_PARAM(PACKET_SERVER_ERROR_QUIT)(NetworkClientSocket *cs, ClientID client_id, NetworkErrorCode errorno);
DEF_SERVER_SEND_COMMAND_PARAM(PACKET_SERVER_ERROR)(NetworkClientSocket *cs, NetworkErrorCode error);
DEF_SERVER_SEND_COMMAND(PACKET_SERVER_SHUTDOWN);
DEF_SERVER_SEND_COMMAND(PACKET_SERVER_NEWGAME);
DEF_SERVER_SEND_COMMAND_PARAM(PACKET_SERVER_RCON)(NetworkClientSocket *cs, uint16 colour, const char *command);
DEF_SERVER_SEND_COMMAND_PARAM(PACKET_SERVER_MOVE)(NetworkClientSocket *cs, uint16 client_id, CompanyID company_id);
bool NetworkServer_ReadPackets(NetworkClientSocket *cs);
void NetworkServer_Tick(bool send_frame);
#else /* ENABLE_NETWORK */
/* Network function stubs when networking is disabled */
static inline void NetworkServerMonthlyLoop() {}
static inline void NetworkServerYearlyLoop() {}
#endif /* ENABLE_NETWORK */
#endif /* NETWORK_SERVER_H */
| 1,095
|
C++
|
.h
| 20
| 53.3
| 127
| 0.803002
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,657
|
network_func.h
|
EnergeticBark_OpenTTD-3DS/src/network/network_func.h
|
/* $Id$ */
/** @file network_func.h Network functions used by other parts of OpenTTD. */
#ifndef NETWORK_FUNC_H
#define NETWORK_FUNC_H
#ifdef ENABLE_NETWORK
#include "core/address.h"
#include "network_type.h"
#include "../console_type.h"
#include "../gfx_type.h"
extern NetworkServerGameInfo _network_game_info;
extern NetworkCompanyState *_network_company_states;
extern ClientID _network_own_client_id;
extern ClientID _redirect_console_to_client;
extern bool _network_need_advertise;
extern uint32 _network_last_advertise_frame;
extern uint8 _network_reconnect;
extern char *_network_host_list[10];
extern char *_network_ban_list[25];
byte NetworkSpectatorCount();
void NetworkUpdateClientName();
bool NetworkCompanyHasClients(CompanyID company);
bool NetworkChangeCompanyPassword(byte argc, char *argv[]);
void NetworkReboot();
void NetworkDisconnect();
void NetworkGameLoop();
void NetworkUDPGameLoop();
void NetworkUDPCloseAll();
void ParseConnectionString(const char **company, const char **port, char *connection_string);
void NetworkStartDebugLog(NetworkAddress address);
void NetworkPopulateCompanyStats(NetworkCompanyStats *stats);
void NetworkUpdateClientInfo(ClientID client_id);
void NetworkClientConnectGame(NetworkAddress address);
void NetworkClientRequestMove(CompanyID company, const char *pass = "");
void NetworkClientSendRcon(const char *password, const char *command);
void NetworkClientSendChat(NetworkAction action, DestType type, int dest, const char *msg, int64 data = 0);
void NetworkClientSetPassword(const char *password);
bool NetworkClientPreferTeamChat(const NetworkClientInfo *cio);
bool NetworkCompanyIsPassworded(CompanyID company_id);
bool NetworkMaxCompaniesReached();
bool NetworkMaxSpectatorsReached();
void NetworkPrintClients();
/*** Commands ran by the server ***/
void NetworkServerMonthlyLoop();
void NetworkServerYearlyLoop();
void NetworkServerChangeOwner(Owner current_owner, Owner new_owner);
void NetworkServerSendConfigUpdate();
void NetworkServerShowStatusToConsole();
bool NetworkServerStart();
void NetworkServerUpdateCompanyPassworded(CompanyID company_id, bool passworded);
bool NetworkServerChangeClientName(ClientID client_id, const char *new_name);
NetworkClientInfo *NetworkFindClientInfoFromIndex(ClientIndex index);
NetworkClientInfo *NetworkFindClientInfoFromClientID(ClientID client_id);
NetworkClientInfo *NetworkFindClientInfoFromIP(const char *ip);
const char *GetClientIP(const NetworkClientInfo *ci);
void NetworkServerDoMove(ClientID client_id, CompanyID company_id);
void NetworkServerSendRcon(ClientID client_id, ConsoleColour colour_code, const char *string);
void NetworkServerSendError(ClientID client_id, NetworkErrorCode error);
void NetworkServerSendChat(NetworkAction action, DestType type, int dest, const char *msg, ClientID from_id, int64 data = 0);
void NetworkServerKickClient(ClientID client_id);
void NetworkServerBanIP(const char *banip);
void NetworkInitChatMessage();
void CDECL NetworkAddChatMessage(TextColour colour, uint8 duration, const char *message, ...);
void NetworkUndrawChatMessage();
void NetworkChatMessageDailyLoop();
#endif /* ENABLE_NETWORK */
#endif /* NETWORK_FUNC_H */
| 3,191
|
C++
|
.h
| 66
| 47.136364
| 125
| 0.834137
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,658
|
network_type.h
|
EnergeticBark_OpenTTD-3DS/src/network/network_type.h
|
/* $Id$ */
/** @file network_type.h Types used for networking. */
#ifndef NETWORK_TYPE_H
#define NETWORK_TYPE_H
#ifdef ENABLE_NETWORK
#include "../company_type.h"
#include "../economy_type.h"
#include "core/config.h"
#include "core/game.h"
enum {
/** How many clients can we have */
MAX_CLIENTS = 255,
/** The number of bits per pool client block */
NCI_BITS_PER_POOL_BLOCK = 3, // => 8 items per block
/**
* The number of slots; must be a multiple of (1 << NCI_BITS_PER_POOL_BLOCK)
* and be at least 1 more than MAX_CLIENTS. It must furthermore be less than
* or equal to 256 as client indices (sent over the network) are 8 bits.
* It needs 1 more for the dedicated server.
*/
MAX_CLIENT_SLOTS = 256,
/** Maximum number of internet interfaces supported. */
MAX_INTERFACES = 9,
/** How many vehicle/station types we put over the network */
NETWORK_VEHICLE_TYPES = 5,
NETWORK_STATION_TYPES = 5,
};
/** 'Unique' identifier to be given to clients */
enum ClientID {
INVALID_CLIENT_ID = 0, ///< Client is not part of anything
CLIENT_ID_SERVER = 1, ///< Servers always have this ID
CLIENT_ID_FIRST = 2, ///< The first client ID
};
/** Indices into the client tables */
typedef uint8 ClientIndex;
/** Simple calculated statistics of a company */
struct NetworkCompanyStats {
uint16 num_vehicle[NETWORK_VEHICLE_TYPES]; ///< How many vehicles are there of this type?
uint16 num_station[NETWORK_STATION_TYPES]; ///< How many stations are there of this type?
bool ai; ///< Is this company an AI
};
/** Some state information of a company, especially for servers */
struct NetworkCompanyState {
char password[NETWORK_PASSWORD_LENGTH]; ///< The password for the company
uint16 months_empty; ///< How many months the company is empty
};
struct NetworkClientInfo;
enum NetworkPasswordType {
NETWORK_GAME_PASSWORD,
NETWORK_COMPANY_PASSWORD,
};
enum DestType {
DESTTYPE_BROADCAST, ///< Send message/notice to all clients (All)
DESTTYPE_TEAM, ///< Send message/notice to everyone playing the same company (Team)
DESTTYPE_CLIENT, ///< Send message/notice to only a certain client (Private)
};
/** Actions that can be used for NetworkTextMessage */
enum NetworkAction {
NETWORK_ACTION_JOIN,
NETWORK_ACTION_LEAVE,
NETWORK_ACTION_SERVER_MESSAGE,
NETWORK_ACTION_CHAT,
NETWORK_ACTION_CHAT_COMPANY,
NETWORK_ACTION_CHAT_CLIENT,
NETWORK_ACTION_GIVE_MONEY,
NETWORK_ACTION_NAME_CHANGE,
NETWORK_ACTION_COMPANY_SPECTATOR,
NETWORK_ACTION_COMPANY_JOIN,
NETWORK_ACTION_COMPANY_NEW,
};
/** Messages the server can give */
enum NetworkServerMessage {
NETWORK_SERVER_MESSAGE_GAME_PAUSED_PLAYERS, ///< Game paused (not enough players)
NETWORK_SERVER_MESSAGE_GAME_UNPAUSED_PLAYERS, ///< Game unpaused (enough players)
NETWORK_SERVER_MESSAGE_GAME_PAUSED_CONNECT, ///< Game paused (connecting client)
NETWORK_SERVER_MESSAGE_GAME_UNPAUSED_CONNECT, ///< Game unpaused (client connected)
NETWORK_SERVER_MESSAGE_GAME_UNPAUSED_CONNECT_FAIL, ///< Game unpaused (client failed to connect)
NETWORK_SERVER_MESSAGE_END
};
enum NetworkErrorCode {
NETWORK_ERROR_GENERAL, // Try to use this one like never
/* Signals from clients */
NETWORK_ERROR_DESYNC,
NETWORK_ERROR_SAVEGAME_FAILED,
NETWORK_ERROR_CONNECTION_LOST,
NETWORK_ERROR_ILLEGAL_PACKET,
NETWORK_ERROR_NEWGRF_MISMATCH,
/* Signals from servers */
NETWORK_ERROR_NOT_AUTHORIZED,
NETWORK_ERROR_NOT_EXPECTED,
NETWORK_ERROR_WRONG_REVISION,
NETWORK_ERROR_NAME_IN_USE,
NETWORK_ERROR_WRONG_PASSWORD,
NETWORK_ERROR_COMPANY_MISMATCH, // Happens in CLIENT_COMMAND
NETWORK_ERROR_KICKED,
NETWORK_ERROR_CHEATER,
NETWORK_ERROR_FULL,
};
#endif /* ENABLE_NETWORK */
#endif /* NETWORK_TYPE_H */
| 3,790
|
C++
|
.h
| 100
| 36.01
| 97
| 0.731534
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,659
|
network_client.h
|
EnergeticBark_OpenTTD-3DS/src/network/network_client.h
|
/* $Id$ */
/** @file network_client.h Client part of the network protocol. */
#ifndef NETWORK_CLIENT_H
#define NETWORK_CLIENT_H
#ifdef ENABLE_NETWORK
DEF_CLIENT_SEND_COMMAND(PACKET_CLIENT_GAME_INFO);
DEF_CLIENT_SEND_COMMAND(PACKET_CLIENT_COMPANY_INFO);
DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_COMMAND)(const CommandPacket *cp);
DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_ERROR)(NetworkErrorCode errorno);
DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_QUIT)();
DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_CHAT)(NetworkAction action, DestType desttype, int dest, const char *msg, int64 data);
DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_PASSWORD)(NetworkPasswordType type, const char *password);
DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_SET_PASSWORD)(const char *password);
DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_SET_NAME)(const char *name);
DEF_CLIENT_SEND_COMMAND(PACKET_CLIENT_ACK);
DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_RCON)(const char *pass, const char *command);
DEF_CLIENT_SEND_COMMAND_PARAM(PACKET_CLIENT_MOVE)(CompanyID company, const char *pass);
NetworkRecvStatus NetworkClient_ReadPackets(NetworkClientSocket *cs);
void NetworkClient_Connected();
#endif /* ENABLE_NETWORK */
#endif /* NETWORK_CLIENT_H */
| 1,240
|
C++
|
.h
| 21
| 57.714286
| 130
| 0.80198
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,661
|
network_gamelist.h
|
EnergeticBark_OpenTTD-3DS/src/network/network_gamelist.h
|
/* $Id$ */
/** @file network_gamelist.h Handling of the list of games. */
#ifndef NETWORK_GAMELIST_H
#define NETWORK_GAMELIST_H
#include "network_type.h"
/** Structure with information shown in the game list (GUI) */
struct NetworkGameList {
NetworkGameInfo info; ///< The game information of this server
uint32 ip; ///< The IP of the game server
uint16 port; ///< The port of the game server
bool online; ///< False if the server did not respond (default status)
bool manually; ///< True if the server was added manually
uint8 retries; ///< Number of retries (to stop requerying)
NetworkGameList *next; ///< Next pointer to make a linked game list
};
/** Game list of this client */
extern NetworkGameList *_network_game_list;
void NetworkGameListAddItemDelayed(NetworkGameList *item);
NetworkGameList *NetworkGameListAddItem(uint32 ip, uint16 port);
void NetworkGameListRemoveItem(NetworkGameList *remove);
void NetworkGameListRequery();
#endif /* NETWORK_GAMELIST_H */
| 1,035
|
C++
|
.h
| 22
| 45.409091
| 81
| 0.728628
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,662
|
network_internal.h
|
EnergeticBark_OpenTTD-3DS/src/network/network_internal.h
|
/* $Id$ */
/** @file network_internal.h Variables and function used internally. */
#ifndef NETWORK_INTERNAL_H
#define NETWORK_INTERNAL_H
#ifdef ENABLE_NETWORK
#include "network.h"
#include "network_func.h"
#include "network_base.h"
#include "core/os_abstraction.h"
#include "core/core.h"
#include "core/config.h"
#include "core/packet.h"
#include "core/tcp_game.h"
#include "../command_type.h"
/**
* If this line is enable, every frame will have a sync test
* this is not needed in normal games. Normal is like 1 sync in 100
* frames. You can enable this if you have a lot of desyncs on a certain
* game.
* Remember: both client and server have to be compiled with this
* option enabled to make it to work. If one of the two has it disabled
* nothing will happen.
*/
//#define ENABLE_NETWORK_SYNC_EVERY_FRAME
/**
* In theory sending 1 of the 2 seeds is enough to check for desyncs
* so in theory, this next define can be left off.
*/
//#define NETWORK_SEND_DOUBLE_SEED
enum MapPacket {
MAP_PACKET_START,
MAP_PACKET_NORMAL,
MAP_PACKET_END,
};
enum NetworkJoinStatus {
NETWORK_JOIN_STATUS_CONNECTING,
NETWORK_JOIN_STATUS_AUTHORIZING,
NETWORK_JOIN_STATUS_WAITING,
NETWORK_JOIN_STATUS_DOWNLOADING,
NETWORK_JOIN_STATUS_PROCESSING,
NETWORK_JOIN_STATUS_REGISTERING,
NETWORK_JOIN_STATUS_GETTING_COMPANY_INFO,
};
/** Language ids for server_lang and client_lang. Do NOT modify the order. */
enum NetworkLanguage {
NETLANG_ANY = 0,
NETLANG_ENGLISH,
NETLANG_GERMAN,
NETLANG_FRENCH,
NETLANG_BRAZILIAN,
NETLANG_BULGARIAN,
NETLANG_CHINESE,
NETLANG_CZECH,
NETLANG_DANISH,
NETLANG_DUTCH,
NETLANG_ESPERANTO,
NETLANG_FINNISH,
NETLANG_HUNGARIAN,
NETLANG_ICELANDIC,
NETLANG_ITALIAN,
NETLANG_JAPANESE,
NETLANG_KOREAN,
NETLANG_LITHUANIAN,
NETLANG_NORWEGIAN,
NETLANG_POLISH,
NETLANG_PORTUGUESE,
NETLANG_ROMANIAN,
NETLANG_RUSSIAN,
NETLANG_SLOVAK,
NETLANG_SLOVENIAN,
NETLANG_SPANISH,
NETLANG_SWEDISH,
NETLANG_TURKISH,
NETLANG_UKRAINIAN,
NETLANG_AFRIKAANS,
NETLANG_CROATIAN,
NETLANG_CATALAN,
NETLANG_ESTONIAN,
NETLANG_GALICIAN,
NETLANG_GREEK,
NETLANG_LATVIAN,
NETLANG_COUNT
};
extern uint32 _frame_counter_server; // The frame_counter of the server, if in network-mode
extern uint32 _frame_counter_max; // To where we may go with our clients
extern uint32 _frame_counter;
extern uint32 _last_sync_frame; // Used in the server to store the last time a sync packet was sent to clients.
/* networking settings */
extern uint32 _broadcast_list[MAX_INTERFACES + 1];
extern uint32 _network_server_bind_ip;
extern uint32 _sync_seed_1, _sync_seed_2;
extern uint32 _sync_frame;
extern bool _network_first_time;
/* Vars needed for the join-GUI */
extern NetworkJoinStatus _network_join_status;
extern uint8 _network_join_waiting;
extern uint32 _network_join_bytes;
extern uint32 _network_join_bytes_total;
extern uint8 _network_reconnect;
extern bool _network_udp_server;
extern uint16 _network_udp_broadcast;
extern uint8 _network_advertise_retries;
extern CompanyMask _network_company_passworded;
void NetworkTCPQueryServer(NetworkAddress address);
void NetworkAddServer(const char *b);
void NetworkRebuildHostList();
void UpdateNetworkGameWindow(bool unselect);
bool IsNetworkCompatibleVersion(const char *version);
/* From network_command.cpp */
/**
* Everything we need to know about a command to be able to execute it.
*/
struct CommandPacket : CommandContainer {
CommandPacket *next; ///< the next command packet (if in queue)
CompanyByte company; ///< company that is executing the command
uint32 frame; ///< the frame in which this packet is executed
bool my_cmd; ///< did the command originate from "me"
};
void NetworkAddCommandQueue(CommandPacket cp, NetworkClientSocket *cs = NULL);
void NetworkExecuteLocalCommandQueue();
void NetworkFreeLocalCommandQueue();
/* from network.c */
void NetworkCloseClient(NetworkClientSocket *cs);
void NetworkTextMessage(NetworkAction action, ConsoleColour colour, bool self_send, const char *name, const char *str = "", int64 data = 0);
void NetworkGetClientName(char *clientname, size_t size, const NetworkClientSocket *cs);
uint NetworkCalculateLag(const NetworkClientSocket *cs);
byte NetworkGetCurrentLanguageIndex();
NetworkClientSocket *NetworkFindClientStateFromClientID(ClientID client_id);
StringID GetNetworkErrorMsg(NetworkErrorCode err);
bool NetworkFindName(char new_name[NETWORK_CLIENT_NAME_LENGTH]);
/* Macros to make life a bit more easier */
#define DEF_CLIENT_RECEIVE_COMMAND(type) NetworkRecvStatus NetworkPacketReceive_ ## type ## _command(Packet *p)
#define DEF_CLIENT_SEND_COMMAND(type) void NetworkPacketSend_ ## type ## _command()
#define DEF_CLIENT_SEND_COMMAND_PARAM(type) void NetworkPacketSend_ ## type ## _command
#define DEF_SERVER_RECEIVE_COMMAND(type) void NetworkPacketReceive_ ## type ## _command(NetworkClientSocket *cs, Packet *p)
#define DEF_SERVER_SEND_COMMAND(type) void NetworkPacketSend_ ## type ## _command(NetworkClientSocket *cs)
#define DEF_SERVER_SEND_COMMAND_PARAM(type) void NetworkPacketSend_ ## type ## _command
#define SEND_COMMAND(type) NetworkPacketSend_ ## type ## _command
#define RECEIVE_COMMAND(type) NetworkPacketReceive_ ## type ## _command
#endif /* ENABLE_NETWORK */
#endif /* NETWORK_INTERNAL_H */
| 5,288
|
C++
|
.h
| 141
| 35.836879
| 140
| 0.786985
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,663
|
network.h
|
EnergeticBark_OpenTTD-3DS/src/network/network.h
|
/* $Id$ */
/** @file network.h Basic functions/variables used all over the place. */
#ifndef NETWORK_H
#define NETWORK_H
#include "../company_type.h"
#ifdef ENABLE_NETWORK
void NetworkStartUp();
void NetworkShutDown();
void NetworkDrawChatMessage();
extern bool _networking; ///< are we in networking mode?
extern bool _network_server; ///< network-server is active
extern bool _network_available; ///< is network mode available?
extern bool _network_dedicated; ///< are we a dedicated server?
extern bool _is_network_server; ///< Does this client wants to be a network-server?
#else /* ENABLE_NETWORK */
/* Network function stubs when networking is disabled */
static inline void NetworkStartUp() {}
static inline void NetworkShutDown() {}
static inline void NetworkDrawChatMessage() {}
#define _networking 0
#define _network_server 0
#define _network_available 0
#define _network_dedicated 0
#define _is_network_server 0
#endif /* ENABLE_NETWORK */
/** As which company do we play? */
extern CompanyID _network_playas;
#endif /* NETWORK_H */
| 1,071
|
C++
|
.h
| 28
| 36.821429
| 84
| 0.748788
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,665
|
core.h
|
EnergeticBark_OpenTTD-3DS/src/network/core/core.h
|
/* $Id$ */
/**
* @file core.h Base for all network types (UDP and TCP)
*/
#ifndef NETWORK_CORE_H
#define NETWORK_CORE_H
#ifdef ENABLE_NETWORK
#include "os_abstraction.h"
#include "../../newgrf_config.h"
bool NetworkCoreInitialize();
void NetworkCoreShutdown();
/** Status of a network client; reasons why a client has quit */
enum NetworkRecvStatus {
NETWORK_RECV_STATUS_OKAY, ///< Everything is okay
NETWORK_RECV_STATUS_DESYNC, ///< A desync did occur
NETWORK_RECV_STATUS_NEWGRF_MISMATCH, ///< We did not have the required NewGRFs
NETWORK_RECV_STATUS_SAVEGAME, ///< Something went wrong (down)loading the savegame
NETWORK_RECV_STATUS_CONN_LOST, ///< The conection is 'just' lost
NETWORK_RECV_STATUS_MALFORMED_PACKET, ///< We apparently send a malformed packet
NETWORK_RECV_STATUS_SERVER_ERROR, ///< The server told us we made an error
NETWORK_RECV_STATUS_SERVER_FULL, ///< The server is full
NETWORK_RECV_STATUS_SERVER_BANNED, ///< The server has banned us
NETWORK_RECV_STATUS_CLOSE_QUERY, ///< Done quering the server
};
/** Forward declaration due to circular dependencies */
struct Packet;
/**
* SocketHandler for all network sockets in OpenTTD.
*/
class NetworkSocketHandler {
public:
/* TODO: make socket & has_quit protected once the TCP stuff
*is in a real class too */
bool has_quit; ///< Whether the current client has quit/send a bad packet
SOCKET sock; ///< The socket currently connected to
public:
/** Create a new unbound socket */
NetworkSocketHandler(SOCKET s = INVALID_SOCKET) { this->sock = s; this->has_quit = false; }
/** Close the socket when distructing the socket handler */
virtual ~NetworkSocketHandler() { this->Close(); }
/** Really close the socket */
virtual void Close() {}
/**
* Close the current connection; for TCP this will be mostly equivalent
* to Close(), but for UDP it just means the packet has to be dropped.
* @return new status of the connection.
*/
virtual NetworkRecvStatus CloseConnection() { this->has_quit = true; return NETWORK_RECV_STATUS_OKAY; }
/**
* Whether this socket is currently bound to a socket.
* @return true when the socket is bound, false otherwise
*/
bool IsConnected() const { return this->sock != INVALID_SOCKET; }
/**
* Whether the current client connected to the socket has quit.
* In the case of UDP, for example, once a client quits (send bad
* data), the socket in not closed; only the packet is dropped.
* @return true when the current client has quit, false otherwise
*/
bool HasClientQuit() const { return this->has_quit; }
void Send_GRFIdentifier(Packet *p, const GRFIdentifier *grf);
void Recv_GRFIdentifier(Packet *p, GRFIdentifier *grf);
void Send_CompanyInformation(Packet *p, const struct Company *c, const struct NetworkCompanyStats *stats);
};
#endif /* ENABLE_NETWORK */
#endif /* NETWORK_CORE_H */
| 2,913
|
C++
|
.h
| 66
| 42.015152
| 107
| 0.724832
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,666
|
address.h
|
EnergeticBark_OpenTTD-3DS/src/network/core/address.h
|
/* $Id$ */
/** @file core/address.h Wrapper for network addresses. */
#ifndef NETWORK_ADDRESS_H
#define NETWORK_ADDRESS_H
#ifdef ENABLE_NETWORK
#include "os_abstraction.h"
/**
* Wrapper for (un)resolved network addresses; there's no reason to transform
* a numeric IP to a string and then back again to pass it to functions. It
* furthermore allows easier delaying of the hostname lookup.
*/
class NetworkAddress {
private:
bool resolved; ///< Has the IP address been resolved
char *hostname; ///< The hostname, NULL if there isn't one
uint32 ip; ///< The resolved IP address
uint16 port; ///< The port associated with the address
public:
/**
* Create a network address based on a resolved IP and port
* @param ip the resolved ip
* @param port the port
*/
NetworkAddress(in_addr_t ip, uint16 port) :
resolved(true),
hostname(NULL),
ip(ip),
port(port)
{
}
/**
* Create a network address based on a unresolved host and port
* @param ip the unresolved hostname
* @param port the port
*/
NetworkAddress(const char *hostname, uint16 port) :
resolved(false),
hostname(strdup(hostname)),
ip(0),
port(port)
{
}
/**
* Make a clone of another address
* @param address the address to clone
*/
NetworkAddress(const NetworkAddress &address) :
resolved(address.resolved),
hostname(address.hostname == NULL ? NULL : strdup(address.hostname)),
ip(address.ip),
port(address.port)
{
}
/** Clean up our mess */
~NetworkAddress()
{
free(hostname);
}
/**
* Get the hostname; in case it wasn't given the
* IPv4 dotted representation is given.
* @return the hostname
*/
const char *GetHostname() const;
/**
* Get the IP address. If the IP has not been resolved yet this will resolve
* it possibly blocking this function for a while
* @return the IP address
*/
uint32 GetIP();
/**
* Get the port
* @return the port
*/
uint16 GetPort() const
{
return this->port;
}
/**
* Check whether the IP address has been resolved already
* @return true iff the port has been resolved
*/
bool IsResolved() const
{
return this->resolved;
}
};
#endif /* ENABLE_NETWORK */
#endif /* NETWORK_ADDRESS_H */
| 2,202
|
C++
|
.h
| 89
| 22.280899
| 77
| 0.707956
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,667
|
host.h
|
EnergeticBark_OpenTTD-3DS/src/network/core/host.h
|
/* $Id$ */
/**
* @file host.h Resolving of hostnames/IPs
*/
#ifndef NETWORK_CORE_HOST_H
void NetworkFindBroadcastIPs(uint32 *broadcast, int limit);
uint32 NetworkResolveHost(const char *hostname);
#endif /* NETWORK_CORE_HOST_H */
| 236
|
C++
|
.h
| 8
| 27.75
| 59
| 0.75
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,668
|
tcp.h
|
EnergeticBark_OpenTTD-3DS/src/network/core/tcp.h
|
/* $Id$ */
/**
* @file tcp.h Basic functions to receive and send TCP packets.
*/
#ifndef NETWORK_CORE_TCP_H
#define NETWORK_CORE_TCP_H
#ifdef ENABLE_NETWORK
#include "os_abstraction.h"
#include "address.h"
#include "core.h"
#include "packet.h"
/** Base socket handler for all TCP sockets */
class NetworkTCPSocketHandler : public NetworkSocketHandler {
private:
Packet *packet_queue; ///< Packets that are awaiting delivery
Packet *packet_recv; ///< Partially received packet
public:
bool writable; ///< Can we write to this socket?
virtual NetworkRecvStatus CloseConnection();
void Send_Packet(Packet *packet);
bool Send_Packets();
bool IsPacketQueueEmpty();
Packet *Recv_Packet(NetworkRecvStatus *status);
NetworkTCPSocketHandler(SOCKET s = INVALID_SOCKET);
~NetworkTCPSocketHandler();
};
/**
* "Helper" class for creating TCP connections in a non-blocking manner
*/
class TCPConnecter {
private:
class ThreadObject *thread; ///< Thread used to create the TCP connection
bool connected; ///< Whether we succeeded in making the connection
bool aborted; ///< Whether we bailed out (i.e. connection making failed)
bool killed; ///< Whether we got killed
SOCKET sock; ///< The socket we're connecting with
/** The actual connection function */
void Connect();
/**
* Entry point for the new threads.
* @param param the TCPConnecter instance to call Connect on.
*/
static void ThreadEntry(void *param);
protected:
/** Address we're connecting to */
NetworkAddress address;
public:
/**
* Create a new connecter for the given address
* @param address the (un)resolved address to connect to
*/
TCPConnecter(const NetworkAddress &address);
/** Silence the warnings */
virtual ~TCPConnecter() {}
/**
* Callback when the connection succeeded.
* @param s the socket that we opened
*/
virtual void OnConnect(SOCKET s) {}
/**
* Callback for when the connection attempt failed.
*/
virtual void OnFailure() {}
/**
* Check whether we need to call the callback, i.e. whether we
* have connected or aborted and call the appropriate callback
* for that. It's done this way to ease on the locking that
* would otherwise be needed everywhere.
*/
static void CheckCallbacks();
/** Kill all connection attempts. */
static void KillAll();
};
#endif /* ENABLE_NETWORK */
#endif /* NETWORK_CORE_TCP_H */
| 2,442
|
C++
|
.h
| 75
| 30.386667
| 87
| 0.718484
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,669
|
tcp_game.h
|
EnergeticBark_OpenTTD-3DS/src/network/core/tcp_game.h
|
/* $Id$ */
/**
* @file tcp_game.h Basic functions to receive and send TCP packets for game purposes.
*/
#ifndef NETWORK_CORE_TCP_GAME_H
#define NETWORK_CORE_TCP_GAME_H
#ifdef ENABLE_NETWORK
#include "os_abstraction.h"
#include "tcp.h"
#include "packet.h"
/**
* Enum with all types of UDP packets.
* The order of the first 4 packets MUST not be changed, as
* it protects old clients from joining newer servers
* (because SERVER_ERROR is the respond to a wrong revision)
*/
enum {
PACKET_SERVER_FULL,
PACKET_SERVER_BANNED,
PACKET_CLIENT_JOIN,
PACKET_SERVER_ERROR,
PACKET_CLIENT_COMPANY_INFO,
PACKET_SERVER_COMPANY_INFO,
PACKET_SERVER_CLIENT_INFO,
PACKET_SERVER_NEED_PASSWORD,
PACKET_CLIENT_PASSWORD,
PACKET_SERVER_WELCOME,
PACKET_CLIENT_GETMAP,
PACKET_SERVER_WAIT,
PACKET_SERVER_MAP,
PACKET_CLIENT_MAP_OK,
PACKET_SERVER_JOIN,
PACKET_SERVER_FRAME,
PACKET_SERVER_SYNC,
PACKET_CLIENT_ACK,
PACKET_CLIENT_COMMAND,
PACKET_SERVER_COMMAND,
PACKET_CLIENT_CHAT,
PACKET_SERVER_CHAT,
PACKET_CLIENT_SET_PASSWORD,
PACKET_CLIENT_SET_NAME,
PACKET_CLIENT_QUIT,
PACKET_CLIENT_ERROR,
PACKET_SERVER_QUIT,
PACKET_SERVER_ERROR_QUIT,
PACKET_SERVER_SHUTDOWN,
PACKET_SERVER_NEWGAME,
PACKET_SERVER_RCON,
PACKET_CLIENT_RCON,
PACKET_SERVER_CHECK_NEWGRFS,
PACKET_CLIENT_NEWGRFS_CHECKED,
PACKET_SERVER_MOVE,
PACKET_CLIENT_MOVE,
PACKET_SERVER_COMPANY_UPDATE,
PACKET_SERVER_CONFIG_UPDATE,
PACKET_END ///< Must ALWAYS be on the end of this list!! (period)
};
/** Packet that wraps a command */
struct CommandPacket;
/** Status of a client */
enum ClientStatus {
STATUS_INACTIVE, ///< The client is not connected nor active
STATUS_AUTHORIZING,///< The client is authorizing
STATUS_AUTH, ///< The client is authorized
STATUS_MAP_WAIT, ///< The client is waiting as someone else is downloading the map
STATUS_MAP, ///< The client is downloading the map
STATUS_DONE_MAP, ///< The client has downloaded the map
STATUS_PRE_ACTIVE, ///< The client is catching up the delayed frames
STATUS_ACTIVE, ///< The client is active within in the game
};
class NetworkClientSocket;
DECLARE_OLD_POOL(NetworkClientSocket, NetworkClientSocket, NCI_BITS_PER_POOL_BLOCK, MAX_CLIENT_SLOTS >> NCI_BITS_PER_POOL_BLOCK);
/** Base socket handler for all TCP sockets */
class NetworkClientSocket : public PoolItem<NetworkClientSocket, ClientIndex, &_NetworkClientSocket_pool>, public NetworkTCPSocketHandler {
/* TODO: rewrite into a proper class */
private:
NetworkClientInfo *info; ///< Client info related to this socket
public:
ClientID client_id; ///< Client identifier
uint32 last_frame; ///< Last frame we have executed
uint32 last_frame_server; ///< Last frame the server has executed
byte lag_test; ///< Byte used for lag-testing the client
ClientStatus status; ///< Status of this client
CommandPacket *command_queue; ///< The command-queue awaiting delivery
NetworkRecvStatus CloseConnection();
NetworkClientSocket(ClientID client_id = INVALID_CLIENT_ID);
~NetworkClientSocket();
inline bool IsValid() const { return this->IsConnected(); }
inline void SetInfo(NetworkClientInfo *info) { assert(info != NULL && this->info == NULL); this->info = info; }
inline NetworkClientInfo *GetInfo() const { return this->info; }
const char *Recv_Command(Packet *p, CommandPacket *cp);
void Send_Command(Packet *p, const CommandPacket *cp);
};
static inline bool IsValidNetworkClientSocketIndex(ClientIndex index)
{
return (uint)index < GetNetworkClientSocketPoolSize() && GetNetworkClientSocket(index)->IsValid();
}
#define FOR_ALL_CLIENT_SOCKETS_FROM(d, start) for (d = GetNetworkClientSocket(start); d != NULL; d = (d->index + 1U < GetNetworkClientSocketPoolSize()) ? GetNetworkClientSocket(d->index + 1U) : NULL) if (d->IsValid())
#define FOR_ALL_CLIENT_SOCKETS(d) FOR_ALL_CLIENT_SOCKETS_FROM(d, 0)
#endif /* ENABLE_NETWORK */
#endif /* NETWORK_CORE_TCP_GAME_H */
| 3,964
|
C++
|
.h
| 101
| 37.356436
| 217
| 0.753838
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,670
|
game.h
|
EnergeticBark_OpenTTD-3DS/src/network/core/game.h
|
/* $Id$ */
/**
* @file game.h Information about a game that is sent between a
* game server, game client and masterserver.
*/
#ifndef NETWORK_CORE_GAME_H
#define NETWORK_CORE_GAME_H
#ifdef ENABLE_NETWORK
#include "config.h"
#include "../../newgrf_config.h"
#include "../../date_type.h"
/**
* This is the struct used by both client and server
* some fields will be empty on the client (like game_password) by default
* and only filled with data a client enters.
*/
struct NetworkServerGameInfo {
byte clients_on; ///< Current count of clients on server
Date start_date; ///< When the game started
char map_name[NETWORK_NAME_LENGTH]; ///< Map which is played ["random" for a randomized map]
};
struct NetworkGameInfo : NetworkServerGameInfo {
byte game_info_version; ///< Version of the game info
char server_name[NETWORK_NAME_LENGTH]; ///< Server name
char hostname[NETWORK_HOSTNAME_LENGTH]; ///< Hostname of the server (if any)
char server_revision[NETWORK_REVISION_LENGTH]; ///< The version number the server is using (e.g.: 'r304' or 0.5.0)
bool version_compatible; ///< Can we connect to this server or not? (based on server_revision)
bool compatible; ///< Can we connect to this server or not? (based on server_revision _and_ grf_match
byte server_lang; ///< Language of the server (we should make a nice table for this)
bool use_password; ///< Is this server passworded?
byte clients_max; ///< Max clients allowed on server
byte companies_on; ///< How many started companies do we have
byte companies_max; ///< Max companies allowed on server
byte spectators_on; ///< How many spectators do we have?
byte spectators_max; ///< Max spectators allowed on server
Date game_date; ///< Current date
uint16 map_width; ///< Map width
uint16 map_height; ///< Map height
byte map_set; ///< Graphical set
bool dedicated; ///< Is this a dedicated server?
GRFConfig *grfconfig; ///< List of NewGRF files used
};
#endif /* ENABLE_NETWORK */
#endif /* NETWORK_CORE_GAME_H */
| 2,569
|
C++
|
.h
| 44
| 56.545455
| 133
| 0.563766
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,671
|
udp.h
|
EnergeticBark_OpenTTD-3DS/src/network/core/udp.h
|
/* $Id$ */
/**
* @file udp.h Basic functions to receive and send UDP packets.
*
*
* *** Requesting game information from a server ***
*
* This describes the on-the-wire structure of the request and reply
* packet of the NetworkGameInfo (see game.h) data.
*
* --- Points of attention ---
* - all > 1 byte integral values are written in little endian,
* unless specified otherwise.
* Thus, 0x01234567 would be sent as {0x67, 0x45, 0x23, 0x01}.
* - all sent strings are of variable length and terminated by a '\0'.
* Thus, the length of the strings is not sent.
* - years that are leap years in the 'days since X' to 'date' calculations:
* (year % 4 == 0) and ((year % 100 != 0) or (year % 400 == 0))
*
* --- Request ---
* Bytes: Description:
* 2 size of the whole packet, in this case 3
* 1 type of packet, in this case PACKET_UDP_CLIENT_FIND_SERVER (0)
* This packet would look like: { 0x03, 0x00, 0x00 }
*
* --- Reply ---
* Version: Bytes: Description:
* all 2 size of the whole packet
* all 1 type of packet, in this case PACKET_UDP_SERVER_RESPONSE (1)
* all 1 the version of this packet's structure
*
* 4+ 1 number of GRFs attached (n)
* 4+ n * 20 unique identifier for GRF files. Constists of:
* - one 4 byte variable with the GRF ID
* - 16 bytes (sent sequentially) for the MD5 checksum
* of the GRF
*
* 3+ 4 current game date in days since 1-1-0 (DMY)
* 3+ 4 game introduction date in days since 1-1-0 (DMY)
*
* 2+ 1 maximum number of companies allowed on the server
* 2+ 1 number of companies on the server
* 2+ 1 maximum number of spectators allowed on the server
*
* 1+ var string with the name of the server
* 1+ var string with the revision of the server
* 1+ 1 the language run on the server
* (0 = any, 1 = English, 2 = German, 3 = French)
* 1+ 1 whether the server uses a password (0 = no, 1 = yes)
* 1+ 1 maximum number of clients allowed on the server
* 1+ 1 number of clients on the server
* 1+ 1 number of spectators on the server
* 1 & 2 2 current game date in days since 1-1-1920 (DMY)
* 1 & 2 2 game introduction date in days since 1-1-1920 (DMY)
* 1+ var string with the name of the map
* 1+ 2 width of the map in tiles
* 1+ 2 height of the map in tiles
* 1+ 1 type of map:
* (0 = temperate, 1 = arctic, 2 = desert, 3 = toyland)
* 1+ 1 whether the server is dedicated (0 = no, 1 = yes)
*/
#ifndef NETWORK_CORE_UDP_H
#define NETWORK_CORE_UDP_H
#ifdef ENABLE_NETWORK
#include "os_abstraction.h"
#include "core.h"
#include "game.h"
#include "packet.h"
#include "../../debug.h"
/** Enum with all types of UDP packets. The order MUST not be changed **/
enum PacketUDPType {
PACKET_UDP_CLIENT_FIND_SERVER, ///< Queries a game server for game information
PACKET_UDP_SERVER_RESPONSE, ///< Reply of the game server with game information
PACKET_UDP_CLIENT_DETAIL_INFO, ///< Queries a game server about details of the game, such as companies
PACKET_UDP_SERVER_DETAIL_INFO, ///< Reply of the game server about details of the game, such as companies
PACKET_UDP_SERVER_REGISTER, ///< Packet to register itself to the master server
PACKET_UDP_MASTER_ACK_REGISTER, ///< Packet indicating registration has succedeed
PACKET_UDP_CLIENT_GET_LIST, ///< Request for serverlist from master server
PACKET_UDP_MASTER_RESPONSE_LIST, ///< Response from master server with server ip's + port's
PACKET_UDP_SERVER_UNREGISTER, ///< Request to be removed from the server-list
PACKET_UDP_CLIENT_GET_NEWGRFS, ///< Requests the name for a list of GRFs (GRF_ID and MD5)
PACKET_UDP_SERVER_NEWGRFS, ///< Sends the list of NewGRF's requested.
PACKET_UDP_END ///< Must ALWAYS be on the end of this list!! (period)
};
#define DECLARE_UDP_RECEIVE_COMMAND(type) virtual void NetworkPacketReceive_## type ##_command(Packet *p, const struct sockaddr_in *)
#define DEF_UDP_RECEIVE_COMMAND(cls, type) void cls ##NetworkUDPSocketHandler::NetworkPacketReceive_ ## type ## _command(Packet *p, const struct sockaddr_in *client_addr)
/** Base socket handler for all UDP sockets */
class NetworkUDPSocketHandler : public NetworkSocketHandler {
protected:
NetworkRecvStatus CloseConnection();
/* Declare all possible packets here. If it can be received by the
* a specific handler, it has to be implemented. */
DECLARE_UDP_RECEIVE_COMMAND(PACKET_UDP_CLIENT_FIND_SERVER);
DECLARE_UDP_RECEIVE_COMMAND(PACKET_UDP_SERVER_RESPONSE);
DECLARE_UDP_RECEIVE_COMMAND(PACKET_UDP_CLIENT_DETAIL_INFO);
DECLARE_UDP_RECEIVE_COMMAND(PACKET_UDP_SERVER_DETAIL_INFO);
DECLARE_UDP_RECEIVE_COMMAND(PACKET_UDP_SERVER_REGISTER);
DECLARE_UDP_RECEIVE_COMMAND(PACKET_UDP_MASTER_ACK_REGISTER);
DECLARE_UDP_RECEIVE_COMMAND(PACKET_UDP_CLIENT_GET_LIST);
DECLARE_UDP_RECEIVE_COMMAND(PACKET_UDP_MASTER_RESPONSE_LIST);
DECLARE_UDP_RECEIVE_COMMAND(PACKET_UDP_SERVER_UNREGISTER);
DECLARE_UDP_RECEIVE_COMMAND(PACKET_UDP_CLIENT_GET_NEWGRFS);
DECLARE_UDP_RECEIVE_COMMAND(PACKET_UDP_SERVER_NEWGRFS);
void HandleUDPPacket(Packet *p, const struct sockaddr_in *client_addr);
/**
* Function that is called for every GRFConfig that is read when receiving
* a NetworkGameInfo. Only grfid and md5sum are set, the rest is zero. This
* function must set all appropriate fields. This GRF is later appended to
* the grfconfig list of the NetworkGameInfo.
* @param config the GRF to handle
*/
virtual void HandleIncomingNetworkGameInfoGRFConfig(GRFConfig *config) { NOT_REACHED(); }
public:
/** On destructing of this class, the socket needs to be closed */
virtual ~NetworkUDPSocketHandler() { this->Close(); }
bool Listen(uint32 host, uint16 port, bool broadcast);
void Close();
void SendPacket(Packet *p, const struct sockaddr_in *recv);
void ReceivePackets();
void Send_NetworkGameInfo(Packet *p, const NetworkGameInfo *info);
void Recv_NetworkGameInfo(Packet *p, NetworkGameInfo *info);
};
#endif /* ENABLE_NETWORK */
#endif /* NETWORK_CORE_UDP_H */
| 6,399
|
C++
|
.h
| 124
| 49.604839
| 170
| 0.677636
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,672
|
os_abstraction.h
|
EnergeticBark_OpenTTD-3DS/src/network/core/os_abstraction.h
|
/* $Id$ */
/**
* @file os_abstraction.h Network stuff has many things that needs to be
* included and/or implemented by default.
* All those things are in this file.
*/
#ifndef NETWORK_CORE_OS_ABSTRACTION_H
#define NETWORK_CORE_OS_ABSTRACTION_H
/* Include standard stuff per OS */
#ifdef ENABLE_NETWORK
/* Windows stuff */
#if defined(WIN32) || defined(WIN64)
#include <winsock2.h>
#include <ws2tcpip.h>
#include <windows.h>
#if !(defined(__MINGW32__) || defined(__CYGWIN__))
/* Windows has some different names for some types */
typedef SSIZE_T ssize_t;
typedef int socklen_t;
#endif
#define GET_LAST_ERROR() WSAGetLastError()
#define EWOULDBLOCK WSAEWOULDBLOCK
/* Windows has some different names for some types */
typedef unsigned long in_addr_t;
#endif /* WIN32 */
/* UNIX stuff */
#if defined(UNIX) && !defined(__OS2__)
# define SOCKET int
# define INVALID_SOCKET -1
# if !defined(__MORPHOS__) && !defined(__AMIGA__)
# define ioctlsocket ioctl
# if !defined(BEOS_NET_SERVER)
# define closesocket close
# endif
# define GET_LAST_ERROR() (errno)
# endif
/* Need this for FIONREAD on solaris */
# define BSD_COMP
/* Includes needed for UNIX-like systems */
# include <unistd.h>
# include <sys/ioctl.h>
# if defined(__BEOS__) && defined(BEOS_NET_SERVER)
# include <be/net/socket.h>
# include <be/kernel/OS.h> /* snooze() */
# include <be/net/netdb.h>
typedef unsigned long in_addr_t;
# define INADDR_NONE INADDR_BROADCAST
# else
# include <sys/socket.h>
# include <netinet/in.h>
# include <netinet/tcp.h>
# include <arpa/inet.h>
# include <net/if.h>
/* According to glibc/NEWS, <ifaddrs.h> appeared in glibc-2.3. */
# if !defined(__sgi__) && !defined(SUNOS) && !defined(__MORPHOS__) && !defined(__BEOS__) && !defined(__INNOTEK_LIBC__) \
&& !(defined(__GLIBC__) && (__GLIBC__ <= 2) && (__GLIBC_MINOR__ <= 2)) && !defined(__dietlibc__) && !defined(HPUX)
/* If for any reason ifaddrs.h does not exist on your system, comment out
* the following two lines and an alternative way will be used to fetch
* the list of IPs from the system. */
# include <ifaddrs.h>
# define HAVE_GETIFADDRS
# endif
# if !defined(INADDR_NONE)
# define INADDR_NONE 0xffffffff
# endif
# if defined(__BEOS__) && !defined(BEOS_NET_SERVER)
/* needed on Zeta */
# include <sys/sockio.h>
# endif
# endif /* BEOS_NET_SERVER */
# if !defined(__BEOS__) && defined(__GLIBC__) && (__GLIBC__ <= 2) && (__GLIBC_MINOR__ <= 1)
typedef uint32_t in_addr_t;
# endif
# include <errno.h>
# include <sys/time.h>
# include <netdb.h>
#endif /* UNIX */
#ifdef __BEOS__
typedef int socklen_t;
#endif
#if defined(PSP)
# include <sys/socket.h>
# include <netinet/in.h>
# include <arpa/inet.h>
# include <pspnet.h>
# include <pspnet_inet.h>
# include <pspnet_apctl.h>
# include <pspnet_resolver.h>
# include <errno.h>
# include <unistd.h>
# include <sys/select.h>
# include <sys/time.h>
# include <sys/fd_set.h>
# define TCP_NODELAY 1
# define SO_NONBLOCK 0x1009
# define SOCKET int
# define INVALID_SOCKET -1
# define INADDR_NONE 0xffffffff
# define closesocket close
# define GET_LAST_ERROR() sceNetInetGetErrno()
#endif /* PSP */
/* OS/2 stuff */
#if defined(__OS2__)
# define SOCKET int
# define INVALID_SOCKET -1
# define ioctlsocket ioctl
# define closesocket close
# define GET_LAST_ERROR() (sock_errno())
/* Includes needed for OS/2 systems */
# include <types.h>
# include <unistd.h>
# include <sys/ioctl.h>
# include <sys/socket.h>
# include <netinet/in.h>
# include <netinet/tcp.h>
# include <arpa/inet.h>
# include <net/if.h>
# include <errno.h>
# include <sys/time.h>
# include <netdb.h>
# include <nerrno.h>
# define INADDR_NONE 0xffffffff
typedef int socklen_t;
#if !defined(__INNOTEK_LIBC__)
typedef unsigned long in_addr_t;
#endif /* __INNOTEK_LIBC__ */
#endif /* OS/2 */
/* MorphOS and Amiga stuff */
#if defined(__MORPHOS__) || defined(__AMIGA__)
# include <exec/types.h>
# include <proto/exec.h> /* required for Open/CloseLibrary() */
/* MorphOS defines his network functions with UBYTE arrays while we
* use char arrays. This gives tons of unneeded warnings */
# define UBYTE char
# if defined(__MORPHOS__)
# include <sys/filio.h> /* FIO* defines */
# include <sys/sockio.h> /* SIO* defines */
# include <netinet/in.h>
# else /* __AMIGA__ */
# include <proto/socket.h>
# endif
/* Make the names compatible */
# define closesocket(s) CloseSocket(s)
# define GET_LAST_ERROR() Errno()
# define ioctlsocket(s, request, status) IoctlSocket((LONG)s, (ULONG)request, (char*)status)
# define ioctl ioctlsocket
typedef unsigned int in_addr_t;
typedef long socklen_t;
extern struct Library *SocketBase;
# ifdef __AMIGA__
/* for usleep() implementation */
extern struct Device *TimerBase;
extern struct MsgPort *TimerPort;
extern struct timerequest *TimerRequest;
# endif
#endif /* __MORPHOS__ || __AMIGA__ */
static inline bool SetNonBlocking(SOCKET d)
{
#ifdef WIN32
u_long nonblocking = 1;
#else
int nonblocking = 1;
#endif
#if (defined(__BEOS__) && defined(BEOS_NET_SERVER)) || defined(PSP)
return setsockopt(d, SOL_SOCKET, SO_NONBLOCK, &nonblocking, sizeof(nonblocking)) == 0;
#else
return ioctlsocket(d, FIONBIO, &nonblocking) == 0;
#endif
}
static inline bool SetNoDelay(SOCKET d)
{
/* XXX should this be done at all? */
#if !defined(BEOS_NET_SERVER) /* not implemented on BeOS net_server */
int b = 1;
/* The (const char*) cast is needed for windows */
return setsockopt(d, IPPROTO_TCP, TCP_NODELAY, (const char*)&b, sizeof(b)) == 0;
#else
return true;
#endif
}
#endif /* ENABLE_NETWORK */
#endif /* NETWORK_CORE_OS_ABSTRACTION_H */
| 5,664
|
C++
|
.h
| 182
| 29.758242
| 121
| 0.692688
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,673
|
tcp_content.h
|
EnergeticBark_OpenTTD-3DS/src/network/core/tcp_content.h
|
/* $Id$ */
/**
* @file tcp_content.h Basic functions to receive and send TCP packets to/from the content server.
*/
#ifndef NETWORK_CORE_CONTENT_H
#define NETWORK_CORE_CONTENT_H
#ifdef ENABLE_NETWORK
#include "os_abstraction.h"
#include "tcp.h"
#include "packet.h"
#include "../../debug.h"
/** The values in the enum are important; they are used as database 'keys' */
enum ContentType {
CONTENT_TYPE_BEGIN = 1, ///< Helper to mark the begin of the types
CONTENT_TYPE_BASE_GRAPHICS = 1, ///< The content consists of base graphics
CONTENT_TYPE_NEWGRF = 2, ///< The content consists of a NewGRF
CONTENT_TYPE_AI = 3, ///< The content consists of an AI
CONTENT_TYPE_AI_LIBRARY = 4, ///< The content consists of an AI library
CONTENT_TYPE_SCENARIO = 5, ///< The content consists of a scenario
CONTENT_TYPE_HEIGHTMAP = 6, ///< The content consists of a heightmap
CONTENT_TYPE_END, ///< Helper to mark the end of the types
};
/** Enum with all types of TCP content packets. The order MUST not be changed **/
enum PacketContentType {
PACKET_CONTENT_CLIENT_INFO_LIST, ///< Queries the content server for a list of info of a given content type
PACKET_CONTENT_CLIENT_INFO_ID, ///< Queries the content server for information about a list of internal IDs
PACKET_CONTENT_CLIENT_INFO_EXTID, ///< Queries the content server for information about a list of external IDs
PACKET_CONTENT_CLIENT_INFO_EXTID_MD5, ///< Queries the content server for information about a list of external IDs and MD5
PACKET_CONTENT_SERVER_INFO, ///< Reply of content server with information about content
PACKET_CONTENT_CLIENT_CONTENT, ///< Request a content file given an internal ID
PACKET_CONTENT_SERVER_CONTENT, ///< Reply with the content of the given ID
PACKET_CONTENT_END ///< Must ALWAYS be on the end of this list!! (period)
};
#define DECLARE_CONTENT_RECEIVE_COMMAND(type) virtual bool NetworkPacketReceive_## type ##_command(Packet *p)
#define DEF_CONTENT_RECEIVE_COMMAND(cls, type) bool cls ##NetworkContentSocketHandler::NetworkPacketReceive_ ## type ## _command(Packet *p)
enum ContentID {
INVALID_CONTENT_ID = UINT32_MAX
};
/** Container for all important information about a piece of content. */
struct ContentInfo {
enum State {
UNSELECTED, ///< The content has not been selected
SELECTED, ///< The content has been manually selected
AUTOSELECTED, ///< The content has been selected as dependency
ALREADY_HERE, ///< The content is already at the client side
DOES_NOT_EXIST, ///< The content does not exist in the content system
INVALID ///< The content's invalid
};
ContentType type; ///< Type of content
ContentID id; ///< Unique (server side) ID for the content
uint32 filesize; ///< Size of the file
char filename[48]; ///< Filename (for the .tar.gz; only valid on download)
char name[32]; ///< Name of the content
char version[16]; ///< Version of the content
char url[96]; ///< URL related to the content
char description[512]; ///< Description of the content
uint32 unique_id; ///< Unique ID; either GRF ID or shortname
byte md5sum[16]; ///< The MD5 checksum
uint8 dependency_count; ///< Number of dependencies
ContentID *dependencies; ///< Malloced array of dependencies (unique server side ids)
uint8 tag_count; ///< Number of tags
char (*tags)[32]; ///< Malloced array of tags (strings)
State state; ///< Whether the content info is selected (for download)
bool upgrade; ///< This item is an upgrade
/** Clear everything in the struct */
ContentInfo();
/** Free everything allocated */
~ContentInfo();
/**
* Get the size of the data as send over the network.
* @return the size.
*/
size_t Size() const;
/**
* Is the state either selected or autoselected?
* @return true iff that's the case
*/
bool IsSelected() const;
/**
* Is the information from this content info valid?
* @return true iff it's valid
*/
bool IsValid() const;
};
/** Base socket handler for all Content TCP sockets */
class NetworkContentSocketHandler : public NetworkTCPSocketHandler {
protected:
struct sockaddr_in client_addr; ///< The address we're connected to.
virtual void Close();
/**
* Client requesting a list of content info:
* byte type
* uint32 openttd version
*/
DECLARE_CONTENT_RECEIVE_COMMAND(PACKET_CONTENT_CLIENT_INFO_LIST);
/**
* Client requesting a list of content info:
* uint16 count of ids
* uint32 id (count times)
*/
DECLARE_CONTENT_RECEIVE_COMMAND(PACKET_CONTENT_CLIENT_INFO_ID);
/**
* Client requesting a list of content info based on an external
* 'unique' id; GRF ID for NewGRFS, shortname and for base
* graphics and AIs.
* Scenarios and AI libraries are not supported
* uint8 count of requests
* for each request:
* uint8 type
* unique id (uint32)
*/
DECLARE_CONTENT_RECEIVE_COMMAND(PACKET_CONTENT_CLIENT_INFO_EXTID);
/**
* Client requesting a list of content info based on an external
* 'unique' id; GRF ID + MD5 checksum for NewGRFS, shortname and
* xor-ed MD5 checsums for base graphics and AIs.
* Scenarios and AI libraries are not supported
* uint8 count of requests
* for each request:
* uint8 type
* unique id (uint32)
* md5 (16 bytes)
*/
DECLARE_CONTENT_RECEIVE_COMMAND(PACKET_CONTENT_CLIENT_INFO_EXTID_MD5);
/**
* Server sending list of content info:
* byte type (invalid ID == does not exist)
* uint32 id
* uint32 file_size
* string name (max 32 characters)
* string version (max 16 characters)
* uint32 unique id
* uint8 md5sum (16 bytes)
* uint8 dependency count
* uint32 unique id of dependency (dependency count times)
* uint8 tag count
* string tag (max 32 characters for tag count times)
*/
DECLARE_CONTENT_RECEIVE_COMMAND(PACKET_CONTENT_SERVER_INFO);
/**
* Client requesting the actual content:
* uint16 count of unique ids
* uint32 unique id (count times)
*/
DECLARE_CONTENT_RECEIVE_COMMAND(PACKET_CONTENT_CLIENT_CONTENT);
/**
* Server sending list of content info:
* uint32 unique id
* uint32 file size (0 == does not exist)
* string file name (max 48 characters)
* After this initial packet, packets with the actual data are send using
* the same packet type.
*/
DECLARE_CONTENT_RECEIVE_COMMAND(PACKET_CONTENT_SERVER_CONTENT);
/**
* Handle the given packet, i.e. pass it to the right
* parser receive command.
* @param p the packet to handle
* @return true if we should immediatelly handle further packets, false otherwise
*/
bool HandlePacket(Packet *p);
public:
/**
* Create a new cs socket handler for a given cs
* @param s the socket we are connected with
* @param sin IP etc. of the client
*/
NetworkContentSocketHandler(SOCKET s, const struct sockaddr_in *sin) :
NetworkTCPSocketHandler(s)
{
if (sin != NULL) this->client_addr = *sin;
}
/** On destructing of this class, the socket needs to be closed */
virtual ~NetworkContentSocketHandler() { this->Close(); }
/** Do the actual receiving of packets. */
void Recv_Packets();
};
#endif /* ENABLE_NETWORK */
#endif /* NETWORK_CORE_CONTENT_H */
| 7,377
|
C++
|
.h
| 179
| 38.787709
| 139
| 0.699024
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,674
|
config.h
|
EnergeticBark_OpenTTD-3DS/src/network/core/config.h
|
/* $Id$ */
/**
* @file config.h Configuration options of the network stuff. It is used even when compiling without network support.
*/
#ifndef NETWORK_CORE_CONFIG_H
#define NETWORK_CORE_CONFIG_H
/** DNS hostname of the masterserver */
#define NETWORK_MASTER_SERVER_HOST "master.openttd.org"
/** DNS hostname of the content server */
#define NETWORK_CONTENT_SERVER_HOST "content.openttd.org"
/** Message sent to the masterserver to 'identify' this client as OpenTTD */
#define NETWORK_MASTER_SERVER_WELCOME_MESSAGE "OpenTTDRegister"
enum {
NETWORK_MASTER_SERVER_PORT = 3978, ///< The default port of the master server (UDP)
NETWORK_CONTENT_SERVER_PORT = 3978, ///< The default port of the content server (TCP)
NETWORK_DEFAULT_PORT = 3979, ///< The default port of the game server (TCP & UDP)
NETWORK_DEFAULT_DEBUGLOG_PORT = 3982, ///< The default port debug-log is sent too (TCP)
SEND_MTU = 1460, ///< Number of bytes we can pack in a single packet
NETWORK_GAME_INFO_VERSION = 4, ///< What version of game-info do we use?
NETWORK_COMPANY_INFO_VERSION = 5, ///< What version of company info is this?
NETWORK_MASTER_SERVER_VERSION = 1, ///< What version of master-server-protocol do we use?
NETWORK_NAME_LENGTH = 80, ///< The maximum length of the server name and map name, in bytes including '\0'
NETWORK_COMPANY_NAME_LENGTH = 31, ///< The maximum length of the company name, in bytes including '\0'
NETWORK_HOSTNAME_LENGTH = 80, ///< The maximum length of the host name, in bytes including '\0'
NETWORK_UNIQUE_ID_LENGTH = 33, ///< The maximum length of the unique id of the clients, in bytes including '\0'
NETWORK_REVISION_LENGTH = 15, ///< The maximum length of the revision, in bytes including '\0'
NETWORK_PASSWORD_LENGTH = 33, ///< The maximum length of the password, in bytes including '\0' (must be >= NETWORK_UNIQUE_ID_LENGTH)
NETWORK_CLIENTS_LENGTH = 200, ///< The maximum length for the list of clients that controls a company, in bytes including '\0'
NETWORK_CLIENT_NAME_LENGTH = 25, ///< The maximum length of a client's name, in bytes including '\0'
NETWORK_RCONCOMMAND_LENGTH = 500, ///< The maximum length of a rconsole command, in bytes including '\0'
NETWORK_CHAT_LENGTH = 900, ///< The maximum length of a chat message, in bytes including '\0'
NETWORK_GRF_NAME_LENGTH = 80, ///< Maximum length of the name of a GRF
/**
* Maximum number of GRFs that can be sent.
* This value is related to number of handles (files) OpenTTD can open.
* This is currently 64. Two are used for configuration and sound.
*/
NETWORK_MAX_GRF_COUNT = 62,
NETWORK_NUM_LANGUAGES = 36, ///< Number of known languages (to the network protocol) + 1 for 'any'.
/**
* The number of landscapes in OpenTTD.
* This number must be equal to NUM_LANDSCAPE, but as this number is used
* within the network code and that the network code is shared with the
* masterserver/updater, it has to be declared in here too. In network.cpp
* there is a compile assertion to check that this NUM_LANDSCAPE is equal
* to NETWORK_NUM_LANDSCAPES.
*/
NETWORK_NUM_LANDSCAPES = 4,
};
#endif /* NETWORK_CORE_CONFIG_H */
| 3,299
|
C++
|
.h
| 50
| 63.82
| 141
| 0.695894
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,675
|
ai_info.hpp
|
EnergeticBark_OpenTTD-3DS/src/ai/ai_info.hpp
|
/* $Id$ */
/** @file ai_info.hpp AIInfo keeps track of all information of an AI, like Author, Description, ... */
#ifndef AI_INFO
#define AI_INFO
#include <list>
#include "../core/smallmap_type.hpp"
#include "api/ai_object.hpp"
enum AIConfigFlags {
AICONFIG_NONE = 0x0,
AICONFIG_RANDOM = 0x1, //!< When randomizing the AI, pick any value between min_value and max_value when on custom difficulty setting.
AICONFIG_BOOLEAN = 0x2, //!< This value is a boolean (either 0 (false) or 1 (true) ).
};
typedef SmallMap<int, char *> LabelMapping;
struct AIConfigItem {
const char *name; //!< The name of the configuration setting.
const char *description; //!< The description of the configuration setting.
int min_value; //!< The minimal value this configuration setting can have.
int max_value; //!< The maximal value this configuration setting can have.
int custom_value; //!< The default value on custom difficulty setting.
int easy_value; //!< The default value on easy difficulty setting.
int medium_value; //!< The default value on medium difficulty setting.
int hard_value; //!< The default value on hard difficulty setting.
int random_deviation; //!< The maximum random deviation from the default value.
int step_size; //!< The step size in the gui.
AIConfigFlags flags; //!< Flags for the configuration setting.
LabelMapping *labels; //!< Text labels for the integer values.
};
extern AIConfigItem _start_date_config;
typedef std::list<AIConfigItem> AIConfigItemList;
class AIFileInfo : public AIObject {
public:
friend class AIInfo;
friend class AILibrary;
AIFileInfo() : SQ_instance(NULL), main_script(NULL), author(NULL), name(NULL), short_name(NULL), description(NULL), date(NULL), instance_name(NULL) {};
~AIFileInfo();
/**
* Get the Author of the AI.
*/
const char *GetAuthor() const { return this->author; }
/**
* Get the Name of the AI.
*/
const char *GetName() const { return this->name; }
/**
* Get the 4 character long short name of the AI.
*/
const char *GetShortName() const { return this->short_name; }
/**
* Get the description of the AI.
*/
const char *GetDescription() const { return this->description; }
/**
* Get the version of the AI.
*/
int GetVersion() const { return this->version; }
/**
* Get the settings of the AI.
*/
bool GetSettings();
/**
* Get the date of the AI.
*/
const char *GetDate() const { return this->date; }
/**
* Get the name of the instance of the AI to create.
*/
const char *GetInstanceName() const { return this->instance_name; }
/**
* Get the filename of the main.nut script.
*/
const char *GetMainScript() const { return this->main_script; }
/**
* Check if a given method exists.
*/
bool CheckMethod(const char *name) const;
/**
* Process the creation of a FileInfo object.
*/
static SQInteger Constructor(HSQUIRRELVM vm, AIFileInfo *info, bool library);
private:
class Squirrel *engine;
HSQOBJECT *SQ_instance;
char *main_script;
class AIScanner *base;
const char *author;
const char *name;
const char *short_name;
const char *description;
const char *date;
const char *instance_name;
int version;
};
class AIInfo : public AIFileInfo {
public:
static const char *GetClassName() { return "AIInfo"; }
~AIInfo();
/**
* Create an AI, using this AIInfo as start-template.
*/
static SQInteger Constructor(HSQUIRRELVM vm);
static SQInteger DummyConstructor(HSQUIRRELVM vm);
/**
* Get the config list for this AI.
*/
const AIConfigItemList *GetConfigList() const;
/**
* Get the description of a certain ai config option.
*/
const AIConfigItem *GetConfigItem(const char *name) const;
/**
* Check if we can start this AI.
*/
bool CanLoadFromVersion(int version) const;
/**
* Set a setting.
*/
SQInteger AddSetting(HSQUIRRELVM vm);
/**
* Add labels for a setting.
*/
SQInteger AddLabels(HSQUIRRELVM vm);
/**
* Get the default value for a setting.
*/
int GetSettingDefaultValue(const char *name) const;
private:
AIConfigItemList config_list;
int min_loadable_version;
};
class AILibrary : public AIFileInfo {
public:
AILibrary() : AIFileInfo(), category(NULL) {};
~AILibrary();
/**
* Create an AI, using this AIInfo as start-template.
*/
static SQInteger Constructor(HSQUIRRELVM vm);
static SQInteger Import(HSQUIRRELVM vm);
/**
* Get the category this library is in.
*/
const char *GetCategory() const { return this->category; }
private:
const char *category;
};
#endif /* AI_INFO */
| 4,602
|
C++
|
.h
| 146
| 29.171233
| 152
| 0.708013
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,677
|
ai_scanner.hpp
|
EnergeticBark_OpenTTD-3DS/src/ai/ai_scanner.hpp
|
/* $Id$ */
/** @file ai_scanner.hpp declarations of the class for AI scanner */
#ifndef AI_SCANNER_HPP
#define AI_SCANNER_HPP
#include "../core/string_compare_type.hpp"
#include <map>
class AIScanner {
public:
AIScanner();
~AIScanner();
/**
* Import a library inside the Squirrel VM.
*/
bool ImportLibrary(const char *library, const char *class_name, int version, HSQUIRRELVM vm, class AIController *controller);
/**
* Register a library to be put in the available list.
*/
void RegisterLibrary(class AILibrary *library);
/**
* Register an AI to be put in the available list.
*/
void RegisterAI(class AIInfo *info);
void SetDummyAI(class AIInfo *info) { this->info_dummy = info; }
/**
* Select a Random AI.
*/
class AIInfo *SelectRandomAI();
/**
* Find an AI by name.
*/
class AIInfo *FindInfo(const char *name, int version);
/**
* Get the list of available AIs for the console.
*/
char *GetAIConsoleList(char *p, const char *last);
/**
* Get the list of all registered AIs.
*/
const AIInfoList *GetAIInfoList() { return &this->info_list; }
/**
* Get the list of the newest version of all registered AIs.
*/
const AIInfoList *GetUniqueAIInfoList() { return &this->info_single_list; }
/**
* Get the engine of the main squirrel handler (it indexes all available scripts).
*/
class Squirrel *GetEngine() { return this->engine; }
/**
* Get the current main script the ScanDir is currently tracking.
*/
const char *GetMainScript() { return this->main_script; }
/**
* Rescan the AI dir for scripts.
*/
void RescanAIDir();
#if defined(ENABLE_NETWORK)
bool HasAI(const struct ContentInfo *ci, bool md5sum);
#endif
private:
typedef std::map<const char *, class AILibrary *, StringCompare> AILibraryList;
/**
* Scan the AI dir for scripts.
*/
void ScanAIDir();
/**
* Scan a dir for AIs.
* For non-library-scan, if an AI is found, AIInfo is created, and the AI
* is registered to the central system.
* For library-scan, if a library is found, AILibrary is created, and the
* library is registered to the central system.
*/
void ScanDir(const char *dirname, bool library_dir);
AIInfo *info_dummy;
AIInfoList info_list;
AIInfoList info_single_list;
AILibraryList library_list;
class Squirrel *engine;
char main_script[1024];
};
#endif /* AI_SCANNER_HPP */
| 2,370
|
C++
|
.h
| 80
| 27.1375
| 126
| 0.712649
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| true
| false
| false
|
1,539,678
|
ai_config.hpp
|
EnergeticBark_OpenTTD-3DS/src/ai/ai_config.hpp
|
/* $Id$ */
/** @file ai_config.hpp AIConfig stores the configuration settings of every AI. */
#ifndef AI_CONFIG_HPP
#define AI_CONFIG_HPP
#include <map>
#include "ai_info.hpp"
#include "../core/string_compare_type.hpp"
class AIConfig {
private:
typedef std::map<const char *, int, StringCompare> SettingValueList;
public:
AIConfig() :
name(NULL),
version(-1),
info(NULL),
config_list(NULL)
{}
AIConfig(const AIConfig *config);
~AIConfig();
/**
* Set another AI to be loaded in this slot.
* @param name The name of the AI.
* @param version The version of the AI to load, or -1 of latest.
*/
void ChangeAI(const char *name, int version = -1);
/**
* When ever the AI Scanner is reloaded, all infos become invalid. This
* function tells AIConfig about this.
* @return True if the reset was successfull, false if the AI was no longer
* found.
*/
bool ResetInfo();
/**
* Get the AIInfo linked to this AIConfig.
*/
class AIInfo *GetInfo();
/**
* Get the config list for this AIConfig.
*/
const AIConfigItemList *GetConfigList();
/**
* Get the config of a company.
*/
static AIConfig *GetConfig(CompanyID company, bool forceNewgameSetting = false);
/**
* Get the value of a setting for this config. It might fallback to his
* 'info' to find the default value (if not set or if not-custom difficulty
* level).
* @return The (default) value of the setting, or -1 if the setting was not
* found.
*/
int GetSetting(const char *name);
/**
* Set the value of a setting for this config.
*/
void SetSetting(const char *name, int value);
/**
* Reset all settings to their default value.
*/
void ResetSettings();
/**
* Randomize all settings the AI requested to be randomized.
*/
void AddRandomDeviation();
/**
* Is this config attached to an AI?
*/
bool HasAI();
/**
* Get the name of the AI.
*/
const char *GetName();
/**
* Get the version of the AI.
*/
int GetVersion();
/**
* Convert a string which is stored in the config file or savegames to
* custom settings of this AI.
*/
void StringToSettings(const char *value);
/**
* Convert the custom settings to a string that can be stored in the config
* file or savegames.
*/
void SettingsToString(char *string, size_t size);
private:
const char *name;
int version;
class AIInfo *info;
SettingValueList settings;
AIConfigItemList *config_list;
};
#endif /* AI_CONFIG_HPP */
| 2,458
|
C++
|
.h
| 94
| 23.606383
| 82
| 0.701665
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,679
|
ai_gui.hpp
|
EnergeticBark_OpenTTD-3DS/src/ai/ai_gui.hpp
|
/* $Id$ */
/** @file ai_gui.hpp Window for configuring the AIs */
#ifndef AI_GUI_HPP
#define AI_GUI_HPP
void ShowAIDebugWindow(CompanyID show_company = INVALID_COMPANY);
void ShowAIConfigWindow();
#endif /* AI_GUI_HPP */
| 226
|
C++
|
.h
| 7
| 30.714286
| 65
| 0.734884
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,684
|
ai_subsidy.hpp
|
EnergeticBark_OpenTTD-3DS/src/ai/api/ai_subsidy.hpp
|
/* $Id$ */
/** @file ai_subsidy.hpp Everything to query subsidies. */
#ifndef AI_SUBSIDY_HPP
#define AI_SUBSIDY_HPP
#include "ai_object.hpp"
#include "ai_company.hpp"
/**
* Class that handles all subsidy related functions.
*/
class AISubsidy : public AIObject {
public:
static const char *GetClassName() { return "AISubsidy"; }
/**
* Check whether this is a valid SubsidyID.
* @param subsidy_id The SubsidyID to check.
* @return True if and only if this subsidy is still valid.
*/
static bool IsValidSubsidy(SubsidyID subsidy_id);
/**
* Checks whether this subsidy is already awarded to some company.
* @param subsidy_id The SubsidyID to check.
* @pre IsValidSubsidy(subsidy).
* @return True if and only if this subsidy is already awarded.
*/
static bool IsAwarded(SubsidyID subsidy_id);
/**
* Get the company index of the company this subsidy is awarded to.
* @param subsidy_id The SubsidyID to check.
* @pre IsAwarded(subsidy_id).
* @return The companyindex of the company this subsidy is awarded to.
*/
static AICompany::CompanyID GetAwardedTo(SubsidyID subsidy_id);
/**
* Get the date this subsidy expires. In case the subsidy is already
* awarded, return the date the subsidy expires, else, return the date the
* offer expires.
* @param subsidy_id The SubsidyID to check.
* @pre IsValidSubsidy(subsidy_id).
* @return The last valid date of this subsidy.
* @note The return value of this function will change if the subsidy is
* awarded.
*/
static int32 GetExpireDate(SubsidyID subsidy_id);
/**
* Get the cargo type that has to be transported in order to be awarded this
* subsidy.
* @param subsidy_id The SubsidyID to check.
* @pre IsValidSubsidy(subsidy_id).
* @return The cargo type to transport.
*/
static CargoID GetCargoType(SubsidyID subsidy_id);
/**
* Is the source of the subsidy a town or an industry.
* @param subsidy_id The SubsidyID to check.
* @pre IsValidSubsidy(subsidy_id) && !IsAwarded(subsidy_id).
* @return True if the source is a town, false if it is an industry.
*/
static bool SourceIsTown(SubsidyID subsidy_id);
/**
* Return the source TownID/IndustryID/StationID the subsidy is for.
* 1) IsAwarded(subsidy_id) -> return the StationID the subsidy is awarded to.
* 2) !IsAwarded(subsidy_id) && SourceIsTown(subsidy_id) -> return the TownID.
* 3) !IsAwarded(subsidy_id) && !SourceIsTown(subsidy_id) -> return the IndustryID.
* @param subsidy_id The SubsidyID to check.
* @pre IsValidSubsidy(subsidy_id).
* @return One of TownID/IndustryID/StationID.
*/
static int32 GetSource(SubsidyID subsidy_id);
/**
* Is the destination of the subsidy a town or an industry.
* @param subsidy_id The SubsidyID to check.
* @pre IsValidSubsidy(subsidy_id) && !IsAwarded(subsidy_id).
* @return True if the destination is a town, false if it is an industry.
*/
static bool DestinationIsTown(SubsidyID subsidy_id);
/**
* Return the destination TownID/IndustryID/StationID the subsidy is for.
* 1) IsAwarded(subsidy_id) -> return the StationID the subsidy is awarded to.
* 2) !IsAwarded(subsidy_id) && SourceIsTown(subsidy_id) -> return the TownID.
* 3) !IsAwarded(subsidy_id) && !SourceIsTown(subsidy_id) -> return the IndustryID.
* @param subsidy_id the SubsidyID to check.
* @pre IsValidSubsidy(subsidy_id).
* @return One of TownID/IndustryID/StationID.
*/
static int32 GetDestination(SubsidyID subsidy_id);
};
#endif /* AI_SUBSIDY_HPP */
| 3,497
|
C++
|
.h
| 87
| 37.528736
| 84
| 0.732921
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,715
|
ai_waypoint.hpp
|
EnergeticBark_OpenTTD-3DS/src/ai/api/ai_waypoint.hpp
|
/* $Id$ */
/** @file ai_waypoint.hpp Everything to query and build waypoints. */
#ifndef AI_WAYPOINT_HPP
#define AI_WAYPOINT_HPP
#include "ai_object.hpp"
#include "ai_error.hpp"
/**
* Class that handles all waypoint related functions.
*/
class AIWaypoint : public AIObject {
public:
static const char *GetClassName() { return "AIWaypoint"; }
enum SpecialWaypointIDs {
WAYPOINT_INVALID = -1, //!< An invalid WaypointID.
};
/**
* Checks whether the given waypoint is valid and owned by you.
* @param waypoint_id The waypoint to check.
* @return True if and only if the waypoint is valid.
*/
static bool IsValidWaypoint(WaypointID waypoint_id);
/**
* Get the WaypointID of a tile.
* @param tile The tile to find the WaypointID of.
* @pre AIRail::IsRailWaypointTile(tile).
* @return WaypointID of the waypoint.
*/
static WaypointID GetWaypointID(TileIndex tile);
/**
* Get the name of a waypoint.
* @param waypoint_id The waypoint to get the name of.
* @pre IsValidWaypoint(waypoint_id).
* @return The name of the waypoint.
*/
static char *GetName(WaypointID waypoint_id);
/**
* Set the name this waypoint.
* @param waypoint_id The waypoint to set the name of.
* @param name The new name of the waypoint.
* @pre IsValidWaypointwaypoint_id).
* @pre 'name' must have at least one character.
* @pre 'name' must have at most 30 characters.
* @exception AIError::ERR_NAME_IS_NOT_UNIQUE
* @return True if the name was changed.
*/
static bool SetName(WaypointID waypoint_id, const char *name);
/**
* Get the current location of a waypoint.
* @param waypoint_id The waypoint to get the location of.
* @pre IsValidWaypoint(waypoint_id).
* @return The tile the waypoint is currently on.
*/
static TileIndex GetLocation(WaypointID waypoint_id);
};
#endif /* AI_WAYPOINT_HPP */
| 1,846
|
C++
|
.h
| 55
| 31.036364
| 69
| 0.725281
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,721
|
ai_list.hpp
|
EnergeticBark_OpenTTD-3DS/src/ai/api/ai_list.hpp
|
/* $Id$ */
/** @file ai_list.hpp List custom entries. */
#ifndef AI_LIST_HPP
#define AI_LIST_HPP
#include "ai_abstractlist.hpp"
/**
* Creates an empty list, in which you can add integers.
* @ingroup AIList
*/
class AIList : public AIAbstractList {
public:
static const char *GetClassName() { return "AIList"; }
public:
/**
* Add an item to the list.
* @param item the item to add.
* @param value the value to assign.
*/
void AddItem(int32 item, int32 value);
/**
* Change the value of an item in the list.
* @param item the item to change
* @param value the value to assign.
*/
void ChangeItem(int32 item, int32 value);
/**
* Remove the item from the list.
* @param item the item to remove.
*/
void RemoveItem(int32 item);
#ifndef DOXYGEN_SKIP
/**
* Used for [] set from Squirrel.
*/
SQInteger _set(HSQUIRRELVM vm);
#endif /* DOXYGEN_SKIP */
};
#endif /* AI_LIST_HPP */
| 917
|
C++
|
.h
| 38
| 21.894737
| 56
| 0.686207
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| true
| false
| false
| true
| false
| false
|
1,539,732
|
grf.hpp
|
EnergeticBark_OpenTTD-3DS/src/spriteloader/grf.hpp
|
/* $Id$ */
/** @file grf.hpp Base for reading sprites from (New)GRFs. */
#ifndef SPRITELOADER_GRF_HPP
#define SPRITELOADER_GRF_HPP
#include "spriteloader.hpp"
class SpriteLoaderGrf : public SpriteLoader {
public:
/**
* Load a sprite from the disk and return a sprite struct which is the same for all loaders.
*/
bool LoadSprite(SpriteLoader::Sprite *sprite, uint8 file_slot, size_t file_pos, SpriteType sprite_type);
};
#endif /* SPRITELOADER_GRF_HPP */
| 465
|
C++
|
.h
| 13
| 33.923077
| 105
| 0.749441
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| true
| false
| true
| true
| true
| false
|
1,539,734
|
png.hpp
|
EnergeticBark_OpenTTD-3DS/src/spriteloader/png.hpp
|
/* $Id$ */
/** @file png.hpp Base for reading files from PNG. */
#ifndef SPRITELOADER_PNG_HPP
#define SPRITELOADER_PNG_HPP
#include "spriteloader.hpp"
class SpriteLoaderPNG : public SpriteLoader {
public:
/**
* Load a sprite from the disk and return a sprite struct which is the same for all loaders.
*/
bool LoadSprite(SpriteLoader::Sprite *sprite, uint8 file_slot, size_t file_pos, SpriteType sprite_type);
};
#endif /* SPRITELOADER_PNG_HPP */
| 457
|
C++
|
.h
| 13
| 33.307692
| 105
| 0.749431
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| true
| false
| true
| true
| true
| false
|
1,539,735
|
splash.h
|
EnergeticBark_OpenTTD-3DS/src/os/macosx/splash.h
|
/* $Id$ */
/** @file splash.h Functions to support splash screens for OSX. */
#ifndef SPLASH_H
#define SPLASH_H
#define SPLASH_IMAGE_FILE "splash.png"
#ifdef __cplusplus
extern "C" {
#endif //__cplusplus
void DisplaySplashImage();
#ifdef __cplusplus
}
#endif //__cplusplus
#endif
| 289
|
C++
|
.h
| 13
| 20.615385
| 66
| 0.728625
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,736
|
osx_stdafx.h
|
EnergeticBark_OpenTTD-3DS/src/os/macosx/osx_stdafx.h
|
/* $Id$ */
/** @file osx_stdafx.h OSX is different on some places. */
#ifndef MACOS_STDAFX_H
#define MACOS_STDAFX_H
#include <CoreServices/CoreServices.h>
/* remove the variables that CoreServices defines, but we define ourselves too */
#undef bool
#undef false
#undef true
/* Name conflict */
#define GetTime OTTD_GetTime
#define SL_ERROR OSX_SL_ERROR
#endif /* MACOS_STDAFX_H */
| 388
|
C++
|
.h
| 13
| 28.384615
| 81
| 0.753388
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,737
|
macos.h
|
EnergeticBark_OpenTTD-3DS/src/os/macosx/macos.h
|
/* $Id$ */
/** @file macos.h Functions related to MacOS support. */
#ifndef MACOS_H
#define MACOS_H
/* It would seem that to ensure backward compability we have to ensure that we have defined MAC_OS_X_VERSION_10_x everywhere */
#ifndef MAC_OS_X_VERSION_10_3
#define MAC_OS_X_VERSION_10_3 1030
#endif
#ifndef MAC_OS_X_VERSION_10_4
#define MAC_OS_X_VERSION_10_4 1040
#endif
#ifndef MAC_OS_X_VERSION_10_5
#define MAC_OS_X_VERSION_10_5 1050
#endif
/*
* Functions to show the popup window
* use ShowMacDialog when you want to control title, message and text on the button
* ShowMacAssertDialog is used by assert
* ShowMacErrorDialog should be used when an unrecoverable error shows up. It only contains the title, which will should tell what went wrong
* the function then adds text that tells the user to update and then report the bug if it's present in the newest version
* It also quits in a nice way since we call it when we know something happened that will crash OpenTTD (like a needed pointer turns out to be NULL or similar)
*/
void ShowMacDialog ( const char *title, const char *message, const char *buttonLabel );
void ShowMacAssertDialog ( const char *function, const char *file, const int line, const char *expression );
void ShowMacErrorDialog(const char *error);
/* Since MacOS X users will never see an assert unless they started the game from a terminal
* we're using a custom assert(e) macro. */
#undef assert
#ifdef NDEBUG
#define assert(e) ((void)0)
#else
#define assert(e) \
(__builtin_expect(!(e), 0) ? ShowMacAssertDialog ( __func__, __FILE__, __LINE__, #e ): (void)0 )
#endif
/**
* Get the major version of Mac OS we are running under. Useful for things like the cocoa driver.
* @return major version of the os. This would be 10 in the case of 10.4.11.
*/
long GetMacOSVersionMajor();
/**
* Get the minor version of Mac OS we are running under. Useful for things like the cocoa driver.
* @return minor version of the os. This would be 4 in the case of 10.4.11.
*/
long GetMacOSVersionMinor();
/**
* Get the bugfix version of Mac OS we are running under. Useful for things like the cocoa driver.
* @return bugfix version of the os. This would be 11 in the case of 10.4.11.
*/
long GetMacOSVersionBugfix();
/**
* Check if we are at least running on the specified version of Mac OS.
* @param major major version of the os. This would be 10 in the case of 10.4.11.
* @param minor minor version of the os. This would be 4 in the case of 10.4.11.
* @param bugfix bugfix version of the os. This would be 11 in the case of 10.4.11.
* @return true if the running os is at least what we asked, false otherwise.
*/
static inline bool MacOSVersionIsAtLeast(long major, long minor, long bugfix)
{
long maj = GetMacOSVersionMajor();
long min = GetMacOSVersionMinor();
long bf = GetMacOSVersionBugfix();
if (maj < major) return false;
if (maj == major && min < minor) return false;
if (maj == major && min == minor && bf < bugfix) return false;
return true;
}
/*
* OSX 10.3.9 has blessed us with a signal with unlikable side effects.
* The most problematic side effect is that it makes OpenTTD 'think' that
* it's running on 10.4.0 or higher and thus tries to link to functions
* that are only defined there. So now we'll remove all and any signal
* handling for OSX < 10.4 and 10.3.9 works as it should at the cost of
* not giving a useful error when savegame loading goes wrong.
*/
#define signal(sig, func) (MacOSVersionIsAtLeast(10, 4, 0) ? signal(sig, func) : NULL)
#endif /* MACOS_H */
| 3,561
|
C++
|
.h
| 76
| 45.078947
| 159
| 0.741126
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,738
|
libtimidity.h
|
EnergeticBark_OpenTTD-3DS/src/music/libtimidity.h
|
/* $Id$ */
/** @file libtimidity.h Base for LibTimidity music playback. */
#ifndef MUSIC_LIBTIMIDITY_H
#define MUSIC_LIBTIMIDITY_H
#include "music_driver.hpp"
class MusicDriver_LibTimidity: public MusicDriver {
public:
/* virtual */ const char *Start(const char * const *param);
/* virtual */ void Stop();
/* virtual */ void PlaySong(const char *filename);
/* virtual */ void StopSong();
/* virtual */ bool IsSongPlaying();
/* virtual */ void SetVolume(byte vol);
};
class FMusicDriver_LibTimidity: public MusicDriverFactory<FMusicDriver_LibTimidity> {
public:
static const int priority = 5;
/* virtual */ const char *GetName() { return "libtimidity"; }
/* virtual */ const char *GetDescription() { return "LibTimidity MIDI Driver"; }
/* virtual */ Driver *CreateInstance() { return new MusicDriver_LibTimidity(); }
};
#endif /* MUSIC_LIBTIMIDITY_H */
| 873
|
C++
|
.h
| 22
| 37.727273
| 85
| 0.72381
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,739
|
dmusic.h
|
EnergeticBark_OpenTTD-3DS/src/music/dmusic.h
|
/* $Id$ */
/** @file dmusic.h Base of playing music via DirectMusic. */
#ifndef MUSIC_DMUSIC_H
#define MUSIC_DMUSIC_H
#include "music_driver.hpp"
class MusicDriver_DMusic: public MusicDriver {
public:
/* virtual */ const char *Start(const char * const *param);
/* virtual */ void Stop();
/* virtual */ void PlaySong(const char *filename);
/* virtual */ void StopSong();
/* virtual */ bool IsSongPlaying();
/* virtual */ void SetVolume(byte vol);
};
class FMusicDriver_DMusic: public MusicDriverFactory<FMusicDriver_DMusic> {
public:
static const int priority = 10;
/* virtual */ const char *GetName() { return "dmusic"; }
/* virtual */ const char *GetDescription() { return "DirectMusic MIDI Driver"; }
/* virtual */ Driver *CreateInstance() { return new MusicDriver_DMusic(); }
};
#endif /* MUSIC_DMUSIC_H */
| 831
|
C++
|
.h
| 22
| 35.818182
| 81
| 0.70802
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,741
|
os2_m.h
|
EnergeticBark_OpenTTD-3DS/src/music/os2_m.h
|
/* $Id$ */
/** @file os2_m.h Base for OS2 music playback. */
#ifndef MUSIC_OS2_H
#define MUSIC_OS2_H
#include "music_driver.hpp"
class MusicDriver_OS2: public MusicDriver {
public:
/* virtual */ const char *Start(const char * const *param);
/* virtual */ void Stop();
/* virtual */ void PlaySong(const char *filename);
/* virtual */ void StopSong();
/* virtual */ bool IsSongPlaying();
/* virtual */ void SetVolume(byte vol);
};
class FMusicDriver_OS2: public MusicDriverFactory<FMusicDriver_OS2> {
public:
static const int priority = 10;
/* virtual */ const char *GetName() { return "os2"; }
/* virtual */ const char *GetDescription() { return "OS/2 Music Driver"; }
/* virtual */ Driver *CreateInstance() { return new MusicDriver_OS2(); }
};
#endif /* MUSIC_OS2_H */
| 790
|
C++
|
.h
| 22
| 33.954545
| 75
| 0.690885
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,742
|
qtmidi.h
|
EnergeticBark_OpenTTD-3DS/src/music/qtmidi.h
|
/* $Id$ */
/** @file qtmidi.h Base of music playback via the QuickTime driver. */
#ifndef MUSIC_MACOSX_QUICKTIME_H
#define MUSIC_MACOSX_QUICKTIME_H
#include "music_driver.hpp"
class MusicDriver_QtMidi: public MusicDriver {
public:
/* virtual */ const char *Start(const char * const *param);
/* virtual */ void Stop();
/* virtual */ void PlaySong(const char *filename);
/* virtual */ void StopSong();
/* virtual */ bool IsSongPlaying();
/* virtual */ void SetVolume(byte vol);
};
class FMusicDriver_QtMidi: public MusicDriverFactory<FMusicDriver_QtMidi> {
public:
static const int priority = 10;
/* virtual */ const char *GetName() { return "qt"; }
/* virtual */ const char *GetDescription() { return "QuickTime MIDI Driver"; }
/* virtual */ Driver *CreateInstance() { return new MusicDriver_QtMidi(); }
};
#endif /* MUSIC_MACOSX_QUICKTIME_H */
| 865
|
C++
|
.h
| 22
| 37.363636
| 79
| 0.713942
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,743
|
music_driver.hpp
|
EnergeticBark_OpenTTD-3DS/src/music/music_driver.hpp
|
/* $Id$ */
/** @file music_driver.hpp Base for all music playback. */
#ifndef MUSIC_MUSIC_DRIVER_HPP
#define MUSIC_MUSIC_DRIVER_HPP
#include "../driver.h"
class MusicDriver: public Driver {
public:
virtual void PlaySong(const char *filename) = 0;
virtual void StopSong() = 0;
virtual bool IsSongPlaying() = 0;
virtual void SetVolume(byte vol) = 0;
};
class MusicDriverFactoryBase: public DriverFactoryBase {
};
template <class T>
class MusicDriverFactory: public MusicDriverFactoryBase {
public:
MusicDriverFactory() { this->RegisterDriver(((T *)this)->GetName(), Driver::DT_MUSIC, ((T *)this)->priority); }
/**
* Get the long, human readable, name for the Driver-class.
*/
const char *GetName();
};
extern MusicDriver *_music_driver;
extern char *_ini_musicdriver;
#endif /* MUSIC_MUSIC_DRIVER_HPP */
| 825
|
C++
|
.h
| 26
| 29.846154
| 112
| 0.739517
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| true
| false
| true
| true
| true
| false
|
1,539,744
|
allegro_m.h
|
EnergeticBark_OpenTTD-3DS/src/music/allegro_m.h
|
/* $Id$ */
/** @file allegro_m.h Base support for playing music via allegro. */
#ifndef MUSIC_ALLEGRO_H
#define MUSIC_ALLEGRO_H
#include "music_driver.hpp"
class MusicDriver_Allegro: public MusicDriver {
public:
/* virtual */ const char *Start(const char * const *param);
/* virtual */ void Stop();
/* virtual */ void PlaySong(const char *filename);
/* virtual */ void StopSong();
/* virtual */ bool IsSongPlaying();
/* virtual */ void SetVolume(byte vol);
};
class FMusicDriver_Allegro: public MusicDriverFactory<FMusicDriver_Allegro> {
public:
static const int priority = 1;
/* virtual */ const char *GetName() { return "allegro"; }
/* virtual */ const char *GetDescription() { return "Allegro MIDI Driver"; }
/* virtual */ Driver *CreateInstance() { return new MusicDriver_Allegro(); }
};
#endif /* MUSIC_ALLEGRO_H */
| 842
|
C++
|
.h
| 22
| 36.318182
| 77
| 0.709518
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,746
|
bemidi.h
|
EnergeticBark_OpenTTD-3DS/src/music/bemidi.h
|
/* $Id$ */
/** @file bemidi.h Base of BeOS Midi support. */
#ifndef MUSIC_BEMIDI_H
#define MUSIC_BEMIDI_H
#include "music_driver.hpp"
class MusicDriver_BeMidi: public MusicDriver {
public:
/* virtual */ const char *Start(const char * const *param);
/* virtual */ void Stop();
/* virtual */ void PlaySong(const char *filename);
/* virtual */ void StopSong();
/* virtual */ bool IsSongPlaying();
/* virtual */ void SetVolume(byte vol);
};
class FMusicDriver_BeMidi: public MusicDriverFactory<FMusicDriver_BeMidi> {
public:
static const int priority = 10;
/* virtual */ const char *GetName() { return "bemidi"; }
/* virtual */ const char *GetDescription() { return "BeOS MIDI Driver"; }
/* virtual */ Driver *CreateInstance() { return new MusicDriver_BeMidi(); }
};
#endif /* MUSIC_BEMIDI_H */
| 812
|
C++
|
.h
| 22
| 34.954545
| 76
| 0.702182
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,747
|
extmidi.h
|
EnergeticBark_OpenTTD-3DS/src/music/extmidi.h
|
/* $Id$ */
/** @file extmidi.h Base support for playing music via an external application. */
#ifndef MUSIC_EXTERNAL_H
#define MUSIC_EXTERNAL_H
#include "music_driver.hpp"
class MusicDriver_ExtMidi: public MusicDriver {
private:
char *command;
char song[MAX_PATH];
pid_t pid;
void DoPlay();
void DoStop();
public:
/* virtual */ const char *Start(const char * const *param);
/* virtual */ void Stop();
/* virtual */ void PlaySong(const char *filename);
/* virtual */ void StopSong();
/* virtual */ bool IsSongPlaying();
/* virtual */ void SetVolume(byte vol);
};
class FMusicDriver_ExtMidi: public MusicDriverFactory<FMusicDriver_ExtMidi> {
public:
static const int priority = 1;
/* virtual */ const char *GetName() { return "extmidi"; }
/* virtual */ const char *GetDescription() { return "External MIDI Driver"; }
/* virtual */ Driver *CreateInstance() { return new MusicDriver_ExtMidi(); }
};
#endif /* MUSIC_EXTERNAL_H */
| 953
|
C++
|
.h
| 28
| 32.035714
| 82
| 0.713816
|
EnergeticBark/OpenTTD-3DS
| 34
| 1
| 4
|
GPL-2.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,748
|
geefs.cpp
|
MaxXSoft_GeeOS/mkfs/geefs.cpp
|
#include "geefs.h"
#include <vector>
#include <algorithm>
#include <string>
#include <iomanip>
#include <cstring>
#include <cassert>
namespace {
const char *kTypeStr[] = {"unused", "file", "dir"};
void PrintFileSize(std::ostream &os, std::size_t size) {
if (size < 1024) {
os << size << 'B';
}
else {
os << std::fixed << std::setprecision(1);
if (size < 1024 * 1024) {
os << size / 1024.0 << 'K';
}
else if (size < 1024 * 1024 * 1024) {
os << size / 1024.0 / 1024.0 << 'M';
}
else {
os << size / 1024.0 / 1024.0 / 1024.0 << 'G';
}
}
}
} // namespace
std::optional<std::uint32_t> GeeFS::AllocDataBlock() {
// traverse all free maps
for (int i = 0; i < super_block_.free_map_num; ++i) {
// read free map header
auto offset = super_block_.block_size * (1 + i);
FreeMapBlockHeader hdr;
auto ret = dev_.ReadAssert(sizeof(hdr), hdr, offset);
assert(ret);
// check for free blocks
if (hdr.unused_num) {
// update header
--hdr.unused_num;
ret = dev_.WriteAssert(sizeof(hdr), hdr, offset);
assert(ret);
// read free map to buffer
std::vector<std::uint8_t> buf;
buf.resize(super_block_.block_size - sizeof(hdr));
ret = dev_.ReadAssert(buf.size(), buf, offset + sizeof(hdr));
assert(ret);
// find next free bit
for (int j = 0; j < buf.size(); ++j) {
for (int k = 7; k >= 0; --k) {
if (!(buf[j] & (1 << k))) {
// set free bit as allocated
buf[j] |= (1 << k);
// update free map
auto byte_ofs = offset + sizeof(hdr) + j;
auto ret = dev_.WriteAssert(1, buf[j], byte_ofs);
static_cast<void>(ret);
assert(ret);
// return block offset
auto blk_ofs = 1 + super_block_.free_map_num;
blk_ofs += super_block_.inode_blk_num;
blk_ofs += i * (super_block_.block_size - sizeof(hdr)) * 8;
blk_ofs += j * 8 + (7 - k);
return blk_ofs;
}
}
}
assert(false);
}
}
return {};
}
std::optional<std::uint32_t> GeeFS::AllocINode() {
// traverse all inode blocks
for (int i = 0; i < super_block_.inode_blk_num; ++i) {
// read inode block header
auto offset = super_block_.block_size *
(1 + super_block_.free_map_num + i);
INodeBlockHeader hdr;
auto ret = dev_.ReadAssert(sizeof(hdr), hdr, offset);
static_cast<void>(ret);
assert(ret);
// check for free inodes
if (hdr.unused_num) {
// update header
--hdr.unused_num;
auto ret = dev_.WriteAssert(sizeof(hdr), hdr, offset);
assert(ret);
// read inodes to buffer
std::vector<std::uint8_t> buf;
buf.resize(super_block_.block_size - sizeof(hdr));
ret = dev_.ReadAssert(buf.size(), buf, offset + sizeof(hdr));
assert(ret);
// find next free inode
for (int j = 0; j < buf.size(); j += sizeof(INode)) {
auto inode = reinterpret_cast<INode *>(buf.data() + j);
if (inode->type == INodeType::Unused) {
// return inode id
return i * ((super_block_.block_size - sizeof(hdr)) /
sizeof(INode)) + (j / sizeof(INode));
}
}
assert(false);
}
}
return {};
}
void GeeFS::InitDirBlock(std::uint32_t blk_ofs, std::uint32_t cur_id,
std::uint32_t parent_id) {
Entry ent;
auto offset = blk_ofs * super_block_.block_size;
// write entry '.'
ent.inode_id = cur_id;
std::strcpy(reinterpret_cast<char *>(ent.filename), ".");
auto ret = dev_.WriteAssert(sizeof(ent), ent, offset);
assert(ret);
// write entry '..'
ent.inode_id = parent_id;
std::strcpy(reinterpret_cast<char *>(ent.filename), "..");
ret = dev_.WriteAssert(sizeof(ent), ent, offset + sizeof(ent));
assert(ret);
}
void GeeFS::UpdateINode(const INode &inode, std::uint32_t id) {
auto in_per_blk = (super_block_.block_size - sizeof(INodeBlockHeader)) /
sizeof(INode);
auto offset = 1 + super_block_.free_map_num + id / in_per_blk;
offset *= super_block_.block_size;
offset += sizeof(INodeBlockHeader) + (id % in_per_blk) * sizeof(INode);
auto ret = dev_.WriteAssert(sizeof(INode), inode, offset);
static_cast<void>(ret);
assert(ret);
}
bool GeeFS::ReadINode(INode &inode, std::uint32_t id) {
auto in_per_blk = (super_block_.block_size - sizeof(INodeBlockHeader)) /
sizeof(INode);
auto offset = 1 + super_block_.free_map_num + id / in_per_blk;
offset *= super_block_.block_size;
offset += sizeof(INodeBlockHeader) + (id % in_per_blk) * sizeof(INode);
return dev_.ReadAssert(sizeof(INode), inode, offset);
}
std::optional<std::uint32_t> GeeFS::ReadINode(INode &inode,
std::string_view name) {
if (name.size() > kFileNameMaxLen - 1) return {};
std::optional<std::uint32_t> id = {};
WalkEntry([this, &inode, &name, &id](const Entry &entry) {
if (name == reinterpret_cast<const char *>(entry.filename)) {
if (ReadINode(inode, entry.inode_id)) id = entry.inode_id;
return false;
}
return true;
});
return id;
}
std::optional<std::uint32_t> GeeFS::GetBlockOffset(const INode &inode,
std::size_t n) {
const auto kOfsPerBlock = super_block_.block_size / kBlockOfsSize;
if (n >= inode.block_num) return {};
if (n < kDirectBlockNum) {
return inode.direct[n];
}
else if (n - kDirectBlockNum < kOfsPerBlock) {
auto offset = inode.indirect * super_block_.block_size;
offset += (n - kDirectBlockNum) * kBlockOfsSize;
if (!dev_.ReadAssert(kBlockOfsSize, offset, offset)) return {};
return offset;
}
else {
n -= kDirectBlockNum + kOfsPerBlock;
if (n >= kOfsPerBlock * kOfsPerBlock) return {};
auto offset = inode.indirect2 * super_block_.block_size;
offset += (n / kOfsPerBlock) * kBlockOfsSize;
if (!dev_.ReadAssert(kBlockOfsSize, offset, offset)) return {};
offset *= super_block_.block_size;
offset += (n % kOfsPerBlock) * kBlockOfsSize;
if (!dev_.ReadAssert(kBlockOfsSize, offset, offset)) return {};
return offset;
}
}
bool GeeFS::AppendBlock(INode &inode, std::uint32_t blk_ofs) {
const auto kOfsPerBlock = super_block_.block_size / kBlockOfsSize;
auto n = inode.block_num++;
if (n < kDirectBlockNum) {
inode.direct[n] = blk_ofs;
return true;
}
else if (n - kDirectBlockNum < kOfsPerBlock) {
if (n == kDirectBlockNum) {
// allocate indirect block
auto blk_ofs = AllocDataBlock();
if (!blk_ofs) return false;
inode.indirect = *blk_ofs;
}
auto offset = inode.indirect * super_block_.block_size;
offset += (n - kDirectBlockNum) * kBlockOfsSize;
return dev_.WriteAssert(kBlockOfsSize, blk_ofs, offset);
}
else if (n - kDirectBlockNum - kOfsPerBlock <
kOfsPerBlock * kOfsPerBlock) {
n -= kDirectBlockNum + kOfsPerBlock;
if (!n) {
// allocate 2nd indirect block
auto blk_ofs = AllocDataBlock();
if (!blk_ofs) return false;
inode.indirect2 = *blk_ofs;
}
auto offset = inode.indirect2 * super_block_.block_size;
offset += (n / kOfsPerBlock) * kBlockOfsSize;
if (n % kOfsPerBlock) {
// initialize 2nd indirect block
auto blk_ofs = AllocDataBlock();
if (!blk_ofs) return false;
if (!dev_.WriteAssert(kBlockOfsSize, *blk_ofs, offset)) return false;
offset = *blk_ofs;
}
else {
if (!dev_.ReadAssert(kBlockOfsSize, offset, offset)) return false;
}
offset *= super_block_.block_size;
offset += (n % kOfsPerBlock) * kBlockOfsSize;
return dev_.WriteAssert(kBlockOfsSize, blk_ofs, offset);
}
else {
return false;
}
}
bool GeeFS::WalkEntry(std::function<bool(const Entry &)> callback) {
assert(cwd_.type == INodeType::Dir);
const auto kEntNum = cwd_.size / sizeof(Entry);
const auto kEntPerBlock = super_block_.block_size / sizeof(Entry);
// traverse data blocks
for (int i = 0; i < cwd_.block_num; ++i) {
// get offset
auto blk_ofs = GetBlockOffset(cwd_, i);
if (!blk_ofs) return false;
auto offset = *blk_ofs * super_block_.block_size;
// traverse entries in current block
auto entry_num = std::min(kEntNum - i * kEntPerBlock, kEntPerBlock);
for (int j = 0; j < entry_num; ++j) {
// read entry
auto ent_ofs = offset + j * sizeof(Entry);
Entry entry;
if (!dev_.ReadAssert(sizeof(Entry), entry, ent_ofs)) return false;
// invoke callback function
if (!callback(entry)) return false;
}
}
return true;
}
bool GeeFS::AddEntry(std::uint32_t inode_id, std::string_view file_name) {
if (file_name.size() > kFileNameMaxLen - 1) return false;
// check if conflicted
auto ret = WalkEntry([&file_name](const Entry &entry) {
return file_name != reinterpret_cast<const char *>(entry.filename);
});
if (!ret) return false;
// get offset of entry that will be inserted
auto blk_ofs = GetBlockOffset(cwd_, cwd_.block_num - 1);
if (!blk_ofs) return false;
auto offset = *blk_ofs * super_block_.block_size;
auto ent_count = cwd_.size / sizeof(Entry);
assert(ent_count != 0);
auto ent_per_blk = super_block_.block_size / sizeof(Entry);
auto inblk_ofs = (ent_count % ent_per_blk) * sizeof(Entry);
if (inblk_ofs) {
offset += inblk_ofs;
}
else {
// allocate new block
auto blk_ofs = AllocDataBlock();
if (!blk_ofs || !AppendBlock(cwd_, *blk_ofs)) return false;
offset = *blk_ofs * super_block_.block_size;
}
// insert entry
Entry entry;
entry.inode_id = inode_id;
std::strcpy(reinterpret_cast<char *>(entry.filename),
std::string(file_name).c_str());
if (!dev_.WriteAssert(sizeof(Entry), entry, offset)) return false;
// update inode of cwd
cwd_.size += sizeof(Entry);
UpdateINode(cwd_, cwd_id_);
return true;
}
bool GeeFS::Create(std::uint32_t block_size, std::uint32_t free_map_num,
std::uint32_t inode_blk_num) {
if (block_size < sizeof(SuperBlockHeader) ||
block_size - sizeof(INodeBlockHeader) < sizeof(INode) ||
block_size < 2 * sizeof(Entry)) {
return false;
}
// resize device to image size
auto blk_num = 1 + free_map_num + inode_blk_num;
blk_num += (block_size - sizeof(FreeMapBlockHeader)) * 8 * free_map_num;
if (!dev_.Resize(blk_num * block_size)) return false;
// create buffer of empty block
std::vector<std::uint8_t> empty_blk;
empty_blk.resize(block_size, 0);
// initialize super block
super_block_ = {kMagicNum, sizeof(SuperBlockHeader), block_size,
free_map_num, inode_blk_num};
if (!dev_.WriteAssert(sizeof(super_block_), super_block_, 0)) {
return false;
}
// initialize free map
for (int i = 0; i < free_map_num; ++i) {
auto offset = block_size * (1 + i);
if (!dev_.WriteAssert(block_size, empty_blk, offset)) return false;
FreeMapBlockHeader hdr = {
static_cast<std::uint32_t>((block_size - sizeof(hdr)) * 8)
};
if (!dev_.WriteAssert(sizeof(hdr), hdr, offset)) return false;
}
// initialize inode block
for (int i = 0; i < inode_blk_num; ++i) {
auto offset = block_size * (1 + free_map_num + i);
if (!dev_.WriteAssert(block_size, empty_blk, offset)) return false;
INodeBlockHeader hdr = {
static_cast<std::uint32_t>((block_size - sizeof(hdr)) / sizeof(INode))
};
if (!dev_.WriteAssert(sizeof(hdr), hdr, offset)) return false;
}
// initialize data blocks
auto data_blk_num = (block_size - sizeof(FreeMapBlockHeader)) * 8 *
free_map_num;
for (int i = 0; i < data_blk_num; ++i) {
auto offset = block_size * (1 + free_map_num + inode_blk_num + i);
if (!dev_.WriteAssert(block_size, empty_blk, offset)) return false;
}
// initialize cwd as root directory
auto blk_ofs = AllocDataBlock(), inode_id = AllocINode();
assert(blk_ofs && inode_id);
cwd_ = {INodeType::Dir, 2 * sizeof(Entry), 1};
cwd_.direct[0] = *blk_ofs;
cwd_id_ = *inode_id;
UpdateINode(cwd_, cwd_id_);
InitDirBlock(*blk_ofs, cwd_id_, cwd_id_);
// reset current path
cur_path_.clear();
// sync
return dev_.Sync();
}
bool GeeFS::Open() {
// read super block header
if (!dev_.ReadAssert(sizeof(super_block_), super_block_, 0)) {
return false;
}
// set root directory as cwd
if (!ReadINode(cwd_, 0)) return false;
cwd_id_ = 0;
// reset current path
cur_path_.clear();
return cwd_.type == INodeType::Dir;
}
bool GeeFS::Sync() {
return dev_.Sync();
}
void GeeFS::List(std::ostream &os) {
auto ret = WalkEntry([this, &os](const Entry &entry) {
// get inode info
INode inode;
if (!ReadINode(inode, entry.inode_id)) return false;
// print to stream
os << std::left;
os << std::setw(7) << kTypeStr[static_cast<int>(inode.type)] << ' ';
os << std::setw(kFileNameMaxLen + 1) << entry.filename << ' ';
PrintFileSize(os, inode.size);
os << std::endl;
return true;
});
static_cast<void>(ret);
assert(ret);
}
bool GeeFS::CreateFile(std::string_view file_name) {
// allocate new inode for file
auto inode_id = AllocINode();
if (!inode_id) return false;
// create new entry
if (!AddEntry(*inode_id, file_name)) return false;
// update allocated inode
INode inode = {INodeType::File};
UpdateINode(inode, *inode_id);
return true;
}
bool GeeFS::MakeDir(std::string_view dir_name) {
// allocate new inode for directory
auto inode_id = AllocINode();
if (!inode_id) return false;
// create new entry
if (!AddEntry(*inode_id, dir_name)) return false;
// allocate data block for directory
auto blk_ofs = AllocDataBlock();
if (!blk_ofs) return false;
// update allocated inode
INode inode = {INodeType::Dir, 2 * sizeof(Entry), 1, {*blk_ofs}};
UpdateINode(inode, *inode_id);
// initialize data block
InitDirBlock(*blk_ofs, *inode_id, cwd_id_);
return true;
}
bool GeeFS::ChangeDir(std::string_view dir_name) {
// get inode by directory name
INode inode;
auto id = ReadINode(inode, dir_name);
if (!id || inode.type != INodeType::Dir) return false;
// change cwd
cwd_ = inode;
cwd_id_ = *id;
// update current path
if (dir_name != ".") {
if (dir_name == ".." && !cur_path_.empty()) {
cur_path_.pop_back();
}
else {
cur_path_.push_back(std::string(dir_name));
}
}
return true;
}
bool GeeFS::Remove(std::string_view file_name) {
// TODO
return false;
}
std::int32_t GeeFS::Read(std::string_view file_name, std::ostream &os,
std::size_t offset, std::size_t len) {
// get inode
INode inode;
if (!ReadINode(inode, file_name)) return -1;
// read file
std::int32_t data_len = 0;
auto end_len = std::min<std::size_t>(offset + len, inode.size);
for (int i = offset; i < end_len; ++i, ++data_len) {
// get block offset
auto n = i / super_block_.block_size;
if (n >= inode.block_num) break;
auto blk_ofs = GetBlockOffset(inode, n);
// get offset
auto ofs = *blk_ofs * super_block_.block_size;
ofs += i % super_block_.block_size;
// read to stream
std::uint8_t byte;
if (!dev_.ReadAssert(1, byte, ofs)) break;
os.write(reinterpret_cast<const char *>(&byte), 1);
}
return data_len;
}
std::int32_t GeeFS::Write(std::string_view file_name, std::istream &is,
std::size_t offset, std::size_t len) {
// get inode
INode inode;
auto id = ReadINode(inode, file_name);
if (!id) return -1;
// expand file size if necessary
if (offset > inode.size) {
std::vector<std::uint8_t> buffer;
buffer.resize(super_block_.block_size, 0);
// allocate empty data blocks
auto blk_num = (offset + (super_block_.block_size - 1)) /
super_block_.block_size;
for (int i = inode.block_num + 1; i < blk_num; ++i) {
auto blk_ofs = AllocDataBlock();
if (!blk_ofs || !AppendBlock(inode, *blk_ofs) ||
!dev_.WriteAssert(buffer.size(), buffer,
*blk_ofs * super_block_.block_size)) {
return -1;
}
}
// update file size
inode.size = offset;
}
// write to file
std::int32_t data_len = 0;
for (int i = offset; i < offset + len; ++i, ++data_len) {
// get block offset
auto n = i / super_block_.block_size;
std::optional<std::uint32_t> blk_ofs;
if (n < inode.block_num) {
blk_ofs = GetBlockOffset(inode, n);
if (!blk_ofs) return -1;
}
else {
// allocate a new data block
blk_ofs = AllocDataBlock();
if (!blk_ofs) break;
if (!AppendBlock(inode, *blk_ofs)) return -1;
}
// write to block
auto ofs = *blk_ofs * super_block_.block_size;
ofs += i % super_block_.block_size;
std::uint8_t byte;
is.read(reinterpret_cast<char *>(&byte), 1);
if (!dev_.WriteAssert(1, byte, ofs)) break;
}
// update inode
if (offset + data_len > inode.size) inode.size = offset + data_len;
UpdateINode(inode, *id);
return data_len;
}
| 17,105
|
C++
|
.cpp
| 496
| 29.435484
| 76
| 0.616498
|
MaxXSoft/GeeOS
| 34
| 7
| 0
|
GPL-3.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,749
|
main.cpp
|
MaxXSoft_GeeOS/mkfs/main.cpp
|
#include <fstream>
#include <string_view>
#include <iostream>
#include <sstream>
#include <cstddef>
#include "geefs.h"
#include "iosdev.h"
using namespace std;
namespace {
void PrintHelp() {
cout << "mkfs utility for GeeFS, by MaxXing" << endl;
cout << "usage: mkfs [-h] image [-i]" << endl;
cout << " [-c blk_size free_map_num inode_blk_num]" << endl;
cout << " [-a file ...]" << endl << endl;
cout << "options:" << endl;
cout << " -h display this message" << endl;
cout << " -i interactive mode" << endl;
cout << " -c create a new GeeFS image" << endl;
cout << " -a add files to current image" << endl;
}
int LogError(string_view msg) {
cerr << msg << endl;
return 1;
}
IOStreamDevice GetDeviceFromFile(fstream &fs, string_view file_name) {
fs.open(file_name, ios::binary | ios::in | ios::out);
if (!fs.is_open()) {
fs.clear();
fs.open(file_name, ios::out);
fs.close();
fs.open(file_name, ios::binary | ios::in | ios::out);
}
return IOStreamDevice(fs);
}
size_t GetStreamSize(istream &is) {
auto pos = is.tellg();
is.seekg(0, ios::end);
auto size = is.tellg() - pos;
is.seekg(0);
return size;
}
bool GetInteger(const char *str, uint32_t &num) {
istringstream iss(str);
iss >> num;
return !!iss;
}
string_view GetFileName(string_view path) {
auto pos = path.find_last_of('/');
if (pos == string_view::npos) return path;
return path.substr(pos + 1);
}
int EnterIMode(GeeFS &geefs) {
string line;
// print prompt
cout << geefs.cur_path() << "> ";
while (getline(cin, line)) {
if (!line.empty()) {
// parse input
if (line == "ls") {
geefs.List(cout);
}
else if (line == "quit") {
return 0;
}
else if (line.substr(0, 6) == "create") {
if (!geefs.CreateFile(line.substr(7))) {
LogError("failed to create file");
}
}
else if (line.substr(0, 5) == "mkdir") {
if (!geefs.MakeDir(line.substr(6))) {
LogError("failed to create directory");
}
}
else if (line.substr(0, 2) == "cd") {
if (!geefs.ChangeDir(line.substr(3))) {
LogError("failed to change directory");
}
}
else if (line.substr(0, 2) == "rm") {
if (!geefs.Remove(line.substr(3))) {
LogError("failed to remove file");
}
}
else if (line.substr(0, 4) == "read") {
geefs.Read(line.substr(5), cout, 0, -1);
}
else {
LogError("unknown command");
}
}
// print next prompt
cout << geefs.cur_path() << "> ";
}
cout << endl;
return 0;
}
} // namespace
int main(int argc, const char *argv[]) {
// print help message
if (argc < 2 || argv[1] == "-h"sv) {
PrintHelp();
return argc < 2;
}
// create GeeFS object
auto fs = fstream();
auto dev = GetDeviceFromFile(fs, argv[1]);
auto geefs = GeeFS(dev);
// read arguments
bool imode = false, opened = false;
for (int i = 2; i < argc; ++i) {
if (argv[i][0] == '-') {
switch (argv[i][1]) {
case 'i': {
imode = true;
break;
}
case 'c': {
// read arguments
uint32_t blk_size, free_map_num, inode_blk_num;
if (argc - i - 1 < 3) return LogError("insufficient argument");
if (!GetInteger(argv[++i], blk_size) ||
!GetInteger(argv[++i], free_map_num) ||
!GetInteger(argv[++i], inode_blk_num)) {
return LogError("invalid argument");
}
opened = true;
if (!geefs.Create(blk_size, free_map_num, inode_blk_num)) {
return LogError("can not create image");
}
break;
}
case 'a': {
// open image
if (!opened && !geefs.Open()) {
return LogError("can not open image");
}
opened = true;
// add files
++i;
while (i < argc && argv[i][0] != '-') {
auto file = GetFileName(argv[i]);
// create file
if (!geefs.CreateFile(file)) {
return LogError("can not create file in image");
}
// create file stream
ifstream ifs(argv[i]);
auto size = GetStreamSize(ifs);
if (!ifs || !geefs.Write(file, ifs, 0, size)) {
return LogError("can not write file in image");
}
++i;
}
break;
}
}
}
}
// enter interactive mode
if (imode) {
if (!opened && !geefs.Open()) return LogError("can not open image");
return EnterIMode(geefs);
}
return 0;
}
| 4,718
|
C++
|
.cpp
| 166
| 22.138554
| 73
| 0.529645
|
MaxXSoft/GeeOS
| 34
| 7
| 0
|
GPL-3.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,750
|
iosdev.cpp
|
MaxXSoft_GeeOS/mkfs/iosdev.cpp
|
#include "iosdev.h"
#include <algorithm>
std::int32_t IOStreamDevice::Read(std::uint8_t *buf, std::size_t len,
std::size_t offset) {
if (offset >= size_) return -1;
ios_.seekg(offset);
auto size = std::min<std::size_t>(size_ - offset, len);
ios_.read(reinterpret_cast<char *>(buf), size);
return !ios_ ? -1 : size;
}
std::int32_t IOStreamDevice::Write(const std::uint8_t *buf,
std::size_t len,
std::size_t offset) {
if (offset >= size_) return -1;
ios_.seekp(offset);
auto size = std::min<std::size_t>(size_ - offset, len);
ios_.write(reinterpret_cast<const char *>(buf), size);
return !ios_ ? -1 : size;
}
bool IOStreamDevice::Sync() {
ios_.flush();
return !!ios_;
}
bool IOStreamDevice::Resize(std::size_t size) {
ios_.seekp(size - 1);
ios_ << '\0';
size_ = size;
return !!ios_;
}
| 924
|
C++
|
.cpp
| 29
| 26
| 69
| 0.57191
|
MaxXSoft/GeeOS
| 34
| 7
| 0
|
GPL-3.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,751
|
structs.h
|
MaxXSoft_GeeOS/mkfs/structs.h
|
#ifndef GEEOS_MKFS_STRUCTS_H_
#define GEEOS_MKFS_STRUCTS_H_
#include <cstdint>
constexpr auto kMagicNum = 0x9eef5000;
constexpr auto kDirectBlockNum = 12;
constexpr auto kBlockOfsSize = sizeof(std::uint32_t);
constexpr auto kFileNameMaxLen = 28;
enum class INodeType : std::uint32_t {
Unused = 0,
File = 1,
Dir = 2,
};
struct SuperBlockHeader {
std::uint32_t magic_num; // magic number
std::uint32_t header_size; // size of current header
std::uint32_t block_size; // size of block
std::uint32_t free_map_num; // number of free map blocks
std::uint32_t inode_blk_num; // number of inode blocks
};
struct FreeMapBlockHeader {
std::uint32_t unused_num; // number of unused blocks
};
struct INodeBlockHeader {
std::uint32_t unused_num; // number of unused inodes
};
struct INode {
INodeType type; // type of inode
std::uint32_t size; // size of file
std::uint32_t block_num; // number of blocks
std::uint32_t direct[kDirectBlockNum]; // direct blocks
std::uint32_t indirect; // indirect block id
std::uint32_t indirect2; // 2nd indirect block id
};
struct Entry {
std::uint32_t inode_id; // inode id of file
std::uint8_t filename[kFileNameMaxLen]; // file name, ends with '\0'
};
#endif // GEEOS_MKFS_STRUCTS_H_
| 1,497
|
C++
|
.h
| 38
| 37.210526
| 72
| 0.606207
|
MaxXSoft/GeeOS
| 34
| 7
| 0
|
GPL-3.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,752
|
iosdev.h
|
MaxXSoft_GeeOS/mkfs/iosdev.h
|
#ifndef GEEOS_MKFS_IOSDEV_H_
#define GEEOS_MKFS_IOSDEV_H_
#include <iostream>
#include "device.h"
class IOStreamDevice : public DeviceBase {
public:
IOStreamDevice(std::iostream &ios) : ios_(ios) {
auto pos = ios_.tellg();
ios_.seekg(0, std::ios::end);
size_ = ios_.tellg() - pos;
}
std::int32_t Read(std::uint8_t *buf, std::size_t len,
std::size_t offset) override;
std::int32_t Write(const std::uint8_t *buf, std::size_t len,
std::size_t offset) override;
bool Sync() override;
bool Resize(std::size_t size) override;
private:
std::iostream &ios_;
std::size_t size_;
};
#endif // GEEOS_MKFS_IOSDEV_H_
| 681
|
C++
|
.h
| 22
| 26.454545
| 62
| 0.640123
|
MaxXSoft/GeeOS
| 34
| 7
| 0
|
GPL-3.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,753
|
device.h
|
MaxXSoft_GeeOS/mkfs/device.h
|
#ifndef GEEOS_MKFS_DEVICE_H_
#define GEEOS_MKFS_DEVICE_H_
#include <vector>
#include <utility>
#include <cstddef>
#include <cstdint>
class DeviceBase {
public:
virtual ~DeviceBase() = default;
virtual std::int32_t Read(std::uint8_t *buf, std::size_t len,
std::size_t offset) = 0;
virtual std::int32_t Write(const std::uint8_t *buf, std::size_t len,
std::size_t offset) = 0;
virtual bool Sync() = 0;
virtual bool Resize(std::size_t size) = 0;
template <typename T>
std::int32_t Read(T &object, std::size_t offset) {
auto buf = reinterpret_cast<std::uint8_t *>(&object);
return Read(buf, sizeof(T), offset);
}
std::int32_t Read(std::vector<std::uint8_t> &buffer,
std::size_t offset) {
return Read(buffer.data(), buffer.size(), offset);
}
template <typename T>
std::int32_t Write(const T &object, std::size_t offset) {
auto buf = reinterpret_cast<const std::uint8_t *>(&object);
return Write(buf, sizeof(T), offset);
}
std::int32_t Write(const std::vector<std::uint8_t> &buffer,
std::size_t offset) {
return Write(buffer.data(), buffer.size(), offset);
}
template <typename... Args>
bool ReadAssert(std::int32_t read_count, Args &&... args) {
return Read(args...) == read_count;
}
template <typename... Args>
bool WriteAssert(std::int32_t write_count, Args &&... args) {
return Write(args...) == write_count;
}
};
using Device = DeviceBase;
#endif // GEEOS_MKFS_DEVICE_H_
| 1,554
|
C++
|
.h
| 44
| 30.136364
| 70
| 0.63042
|
MaxXSoft/GeeOS
| 34
| 7
| 0
|
GPL-3.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,754
|
geefs.h
|
MaxXSoft_GeeOS/mkfs/geefs.h
|
#ifndef GEEOS_MKFS_GEEFS_H_
#define GEEOS_MKFS_GEEFS_H_
#include <istream>
#include <ostream>
#include <string_view>
#include <optional>
#include <functional>
#include <string>
#include <vector>
#include <cstddef>
#include "device.h"
#include "structs.h"
class GeeFS {
public:
GeeFS(Device &dev) : dev_(dev) {}
~GeeFS() { Sync(); }
// create an empty GeeFS image on device
bool Create(std::uint32_t block_size, std::uint32_t free_map_num,
std::uint32_t inode_blk_num);
// open GeeFS image on device
bool Open();
// sync all modifications to device
bool Sync();
// list all files/dirs in cwd
void List(std::ostream &os);
// create new file in cwd
bool CreateFile(std::string_view file_name);
// create new directory in cwd
bool MakeDir(std::string_view dir_name);
// change cwd
bool ChangeDir(std::string_view dir_name);
// remove file in cwd
bool Remove(std::string_view file_name);
// read file in cwd to output stream
std::int32_t Read(std::string_view file_name, std::ostream &os,
std::size_t offset, std::size_t len);
// write input stream to file in cwd
std::int32_t Write(std::string_view file_name, std::istream &is,
std::size_t offset, std::size_t len);
// get current path
std::string cur_path() const {
std::string cur_path;
if (cur_path_.empty()) {
cur_path += '/';
}
else {
for (const auto &i : cur_path_) cur_path += "/" + i;
}
return cur_path;
}
private:
// allocate a data block, returns block offset
std::optional<std::uint32_t> AllocDataBlock();
// allocate an inode, returns inode id
std::optional<std::uint32_t> AllocINode();
// initialize data block of directory
void InitDirBlock(std::uint32_t blk_ofs, std::uint32_t cur_id,
std::uint32_t parent_id);
// update inode by id
void UpdateINode(const INode &inode, std::uint32_t id);
// read inode by id
bool ReadINode(INode &inode, std::uint32_t id);
// read inode by file name, returns inode id
std::optional<std::uint32_t> ReadINode(INode &inode,
std::string_view name);
// get nth data block offset of inode
std::optional<std::uint32_t> GetBlockOffset(const INode &inode,
std::size_t n);
// append block to inode
bool AppendBlock(INode &inode, std::uint32_t blk_ofs);
// traverse all entries of cwd
bool WalkEntry(std::function<bool(const Entry &)> callback);
// add new entry in cwd
bool AddEntry(std::uint32_t inode_id, std::string_view file_name);
// low-level device
Device &dev_;
// super block of disk
SuperBlockHeader super_block_;
// current working directory
INode cwd_;
// inode id of cwd
std::uint32_t cwd_id_;
// current path
std::vector<std::string> cur_path_;
};
#endif // GEEOS_MKFS_GEEFS_H_
| 2,897
|
C++
|
.h
| 86
| 28.976744
| 68
| 0.65596
|
MaxXSoft/GeeOS
| 34
| 7
| 0
|
GPL-3.0
|
9/20/2024, 10:44:59 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,755
|
ports.cpp
|
ivyl_obs-lv2/ports.cpp
|
/******************************************************************************
* Copyright (C) 2020 by Arkadiusz Hiler
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include "obs-lv2.hpp"
/* XXX: OBS gives us ~400 frames at a time, and internal defines seem to point
* 1k frames max, this should be safe for now - if stop working we need to
* either bump it here or change the process_frames to process input in chunks
*/
#define MAX_AUDIO_FRAMES 4096
void LV2Plugin::prepare_ports(void)
{
LilvNode* input_port = lilv_new_uri(world, LV2_CORE__InputPort);
LilvNode* output_port = lilv_new_uri(world, LV2_CORE__OutputPort);
LilvNode* audio_port = lilv_new_uri(world, LV2_CORE__AudioPort);
LilvNode* control_port = lilv_new_uri(world, LV2_CORE__ControlPort);
LilvNode* atom_port = lilv_new_uri(world, LV2_ATOM__AtomPort);
LilvNode* optional = lilv_new_uri(world, LV2_CORE__connectionOptional);
this->ports_count = lilv_plugin_get_num_ports(this->plugin);
this->ports = (LV2Port*) calloc(this->ports_count, sizeof(*this->ports));
float* default_values = (float*)calloc(this->ports_count, sizeof(float));
lilv_plugin_get_port_ranges_float(this->plugin, NULL, NULL, default_values);
input_channels_count = 0;
output_channels_count = 0;
for (size_t i = 0; i < this->ports_count; ++i) {
auto port = lilv_plugin_get_port_by_index(this->plugin, i);
this->ports[i].is_optional = lilv_port_has_property(this->plugin, port, optional);
this->ports[i].value = isnan(default_values[i]) ? 0.0f : default_values[i];
this->ports[i].lilv_port = port;
this->ports[i].index = i;
this->ports[i].ui_value = NAN;
if (lilv_port_is_a(this->plugin, port, input_port)) {
this->ports[i].is_input = true;
} else if (lilv_port_is_a(this->plugin, port, output_port)) {
this->ports[i].is_input = false;
} else {
printf("No idea what to do with a port that is neither an input nor output\n");
abort(); /* XXX: check spec and be less harsh */
}
if (lilv_port_is_a(this->plugin, port, control_port)) {
/* they are always float */
this->ports[i].type = PORT_CONTROL;
lilv_instance_connect_port(this->plugin_instance, i, &this->ports[i].value);
} else if (lilv_port_is_a(this->plugin, port, audio_port)) {
this->ports[i].type = PORT_AUDIO;
if (this->ports[i].is_input)
this->input_channels_count++;
else
this->output_channels_count++;
} else if (lilv_port_is_a(this->plugin, port, atom_port)) {
/* TODO: some plugins seem to have atom port what are those? */
/* everything seems to be working if we ignore them */
this->ports[i].type = PORT_ATOM;
} else if (!this->ports[i].is_optional){
auto name = lilv_port_get_name(this->plugin, port);
printf("No idea what to do with a port \"%s\" that is neither an audio nor control and is not optional\n", lilv_node_as_string(name));
auto classes = lilv_port_get_classes(this->plugin, port);
LILV_FOREACH(nodes, j, classes) {
auto cls = lilv_nodes_get(classes, j);
printf(" class: %s\n", lilv_node_as_string(cls));
}
abort(); /* XXX: check spec and be less harsh */
}
}
this->input_buffer = (float**) calloc(input_channels_count, sizeof(*input_buffer));
this->output_buffer = (float**) calloc(output_channels_count, sizeof(*output_buffer));
size_t in_off = 0;
size_t out_off = 0;
for (size_t i = 0; i < this->ports_count; ++i) {
if (this->ports[i].type == PORT_AUDIO) {
if (this->ports[i].is_input) {
input_buffer[in_off] = (float*) calloc(MAX_AUDIO_FRAMES, sizeof(**input_buffer));
lilv_instance_connect_port(this->plugin_instance, i, input_buffer[in_off++]);
} else {
output_buffer[out_off] = (float*) calloc(MAX_AUDIO_FRAMES, sizeof(**output_buffer));
lilv_instance_connect_port(this->plugin_instance, i, output_buffer[out_off++]);
}
}
}
/* TODO: make sure that we have enough port for our samples */
free(default_values);
lilv_node_free(optional);
lilv_node_free(atom_port);
lilv_node_free(control_port);
lilv_node_free(audio_port);
lilv_node_free(output_port);
lilv_node_free(input_port);
}
void LV2Plugin::cleanup_ports(void)
{
for (size_t i = 0; i < this->input_channels_count; i++)
free(this->input_buffer[i]);
for (size_t i = 0; i < this->output_channels_count; i++)
free(this->output_buffer[i]);
free(this->input_buffer);
free(this->output_buffer);
this->input_buffer = nullptr;
this->output_buffer = nullptr;
free(this->ports);
this->ports = nullptr;
}
void LV2Plugin::process_frames(float** buf, int frames)
{
/* XXX: may need proper locking */
if (!this->ready || this->plugin_instance == nullptr)
return;
if (frames > MAX_AUDIO_FRAMES) {
printf("too many frames at once, FIXME!\n");
abort();
}
size_t chs = std::min(this->channels, this->input_channels_count);
for (size_t ch = 0; ch < chs; ++ch)
memcpy(input_buffer[ch], buf[ch], frames * sizeof(**buf));
lilv_instance_run(this->plugin_instance, frames);
chs = std::min(this->channels, this->output_channels_count);
for (size_t ch = 0; ch < chs; ++ch)
memcpy(buf[ch], output_buffer[ch], frames * sizeof(**buf));
}
| 5,817
|
C++
|
.cpp
| 127
| 42.937008
| 137
| 0.672322
|
ivyl/obs-lv2
| 34
| 4
| 8
|
GPL-2.0
|
9/20/2024, 10:45:00 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
1,539,756
|
ui_timer.cpp
|
ivyl_obs-lv2/ui_timer.cpp
|
/******************************************************************************
* Copyright (C) 2020 by Arkadiusz Hiler
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 2 of the License, or
* (at your option) any later version.
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*****************************************************************************/
#include "obs-lv2.hpp"
GuiUpdateTimer::GuiUpdateTimer(LV2Plugin *lv2)
{
this->lv2 = lv2;
}
GuiUpdateTimer::~GuiUpdateTimer()
{
delete timer;
}
void GuiUpdateTimer::tick(void)
{
lv2->notify_ui_output_control_ports();
}
void GuiUpdateTimer::start(void)
{
if (this->timer != nullptr)
return;
this->timer = new QTimer(this);
connect(timer,
&QTimer::timeout,
this,
QOverload<>::of(&GuiUpdateTimer::tick));
timer->start(33); /* ~30 Hz */
}
| 1,320
|
C++
|
.cpp
| 37
| 33.72973
| 79
| 0.645997
|
ivyl/obs-lv2
| 34
| 4
| 8
|
GPL-2.0
|
9/20/2024, 10:45:00 PM (Europe/Amsterdam)
| false
| false
| false
| false
| false
| false
| false
| false
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.