TILE.H 1006 B

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #ifndef __TILE_H
  2. #define __TILE_H
  3. // 3d view types
  4. enum {
  5. kSpriteViewSingle = 0,
  6. kSpriteView5Full,
  7. kSpriteView8Full,
  8. kSpriteView5Half,
  9. kSpriteView3Flat,
  10. kSpriteView4Flat
  11. };
  12. extern short tileIndex[kMaxTiles];
  13. extern int tileIndexCount;
  14. extern BYTE surfType[kMaxTiles];
  15. void tileTerm( void );
  16. int tileInit( void );
  17. void tileSaveArt( void );
  18. void tileSaveArtInfo( void );
  19. void tileMarkDirty( int nTile );
  20. void tileMarkDirtyAll( void );
  21. void tilePurgeTile( int nTile );
  22. void tileRotateTiles( int start, int length, int shift );
  23. BYTE *tileLoadTile( int nTile );
  24. BYTE *tileLockTile( int nTile );
  25. void tileUnlockTile( int nTile );
  26. BYTE *tileAllocTile( int nTile, int sizeX, int sizeY );
  27. void tileFreeTile( int nTile );
  28. void tilePreloadTile( int nTile );
  29. short tileBuildHistogram( int type );
  30. void tileDrawTileScreen( long nStart, long nCursor, int size, int nMax );
  31. short tilePick( int nTile, int nDefault, int type );
  32. BYTE tileGetSurfType( int nHit );
  33. #endif