X-Git-Url: http://4ch.mooo.com/gitweb/?a=blobdiff_plain;f=src%2Flib%2Ftypdefst.h;h=732053c139af36acafbff2089e6b6a6da6957b61;hb=c4938b26e71facac986fcccc2334223273293d86;hp=2e1cd4883a74617ae1afbde2a0e3a37d0e9e52d8;hpb=406b5fda9569ccdcf5fad9944f442b24ec0662fa;p=16.git diff --git a/src/lib/typdefst.h b/src/lib/typdefst.h index 2e1cd488..732053c1 100755 --- a/src/lib/typdefst.h +++ b/src/lib/typdefst.h @@ -1,5 +1,5 @@ /* Project 16 Source Code~ - * Copyright (C) 2012-2015 sparky4 & pngwen & andrius4669 + * Copyright (C) 2012-2016 sparky4 & pngwen & andrius4669 & joncampbell123 * * This file is part of Project 16. * @@ -36,6 +36,8 @@ #define AAMAGENTA "\x1b[45;35m" #define AARESET "\x1b[0m" +#define MAXPAGE 4 + /* * typedefs of the game variables! */ @@ -48,7 +50,7 @@ typedef struct { } bitmap_t; typedef struct { - byte **data; + byte huge **data; word ntiles; /* the number of tiles */ word twidth; /* width of the tiles */ word theight; /* height of the tiles */ @@ -80,6 +82,7 @@ typedef struct { sword tilemidposscreeny; /* middle tile position */ sword tileplayerposscreenx; /* player position on screen */ sword tileplayerposscreeny; /* player position on screen */ + sdiword pagesize; /* page size */ } page_t; typedef struct @@ -101,8 +104,17 @@ typedef struct typedef struct { - long old_mode; //old video mode before game! - page_t page[4]; //pointer to root page[0] + word pn; +} pan_t; + +typedef struct +{ + char old_mode; //old video mode before game! + page_t page[MAXPAGE]; //pointer to root page[0] + sdiword vmem_remain; //remaining video memory + byte num_of_pages; //number of actual pages + boolean __near p; //render page number + word pr[MAXPAGE][4]; //render sections of pages } video_t; typedef struct