2019-08-26 03:59:14 +00:00
|
|
|
|
|
|
|
#ifndef __engine_h__
|
|
|
|
#define __engine_h__
|
|
|
|
|
|
|
|
#include "compat.h"
|
|
|
|
#include "build.h"
|
|
|
|
#include "pragmas.h"
|
|
|
|
#include "typedefs.h"
|
2019-09-25 21:16:12 +00:00
|
|
|
#include "trigdat.h"
|
2019-08-26 03:59:14 +00:00
|
|
|
|
|
|
|
#define kMaxTiles 6144
|
|
|
|
#define kMaxSprites 4096
|
|
|
|
#define kMaxSectors 1024
|
|
|
|
#define kMaxWalls 8192
|
|
|
|
#define kMaxTiles 6144
|
|
|
|
#define kMaxVoxels 4096
|
|
|
|
|
|
|
|
enum
|
|
|
|
{
|
|
|
|
kStatIgnited = 404
|
|
|
|
};
|
|
|
|
|
|
|
|
#define kMaxSpritesOnscreen 1024
|
|
|
|
|
|
|
|
#define kMaxPalookups 256
|
|
|
|
#define kMaxStatus 1024
|
2019-08-31 09:08:38 +00:00
|
|
|
//#define MAXPSKYTILES 256
|
2019-08-26 03:59:14 +00:00
|
|
|
|
2019-08-31 07:47:15 +00:00
|
|
|
inline int Sin(int angle)
|
2019-08-26 03:59:14 +00:00
|
|
|
{
|
2019-09-25 21:16:12 +00:00
|
|
|
return sintable[angle & kAngleMask];
|
|
|
|
}
|
|
|
|
|
|
|
|
inline int Cos(int angle)
|
|
|
|
{
|
|
|
|
return sintable[(angle + 512) & kAngleMask];
|
2019-08-26 03:59:14 +00:00
|
|
|
}
|
|
|
|
|
2019-08-31 07:47:15 +00:00
|
|
|
int movesprite(short spritenum, int dx, int dy, int dz, int ceildist, int flordist, unsigned int clipmask);
|
|
|
|
void overwritesprite(int thex, int they, short tilenum, signed char shade, char stat, char dapalnum);
|
2019-08-27 06:08:18 +00:00
|
|
|
void precache();
|
|
|
|
void resettiming();
|
2019-08-31 07:47:15 +00:00
|
|
|
void printext(int x, int y, const char* buffer, short tilenum, char invisiblecol);
|
|
|
|
void kensetpalette(unsigned char *vgapal);
|
2019-08-26 03:59:14 +00:00
|
|
|
|
|
|
|
#endif
|