home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Games Encyclopedia
/
gamesencyclopedia1995.iso
/
games
/
cardws17
/
inc
/
system.cdh
< prev
next >
Wrap
Text File
|
1994-03-05
|
2KB
|
123 lines
#ifndef cwssystem
#define cwssystem
//don't touch anything in here
//you are warned!
{****variables defined inside compiler}
//var
// integrity : predicate
// win : predicate
// loose : predicate
// scwidth : integer
// scheight : integer
// title : string
// score : integer
{****cards constant}
Const
Up := 0,
Down := 1,
Shaded := 2,
left := 2,
right := 3,
over := 4,
horizontal := 5,
vertical := 6,
lhorizontal := 7,
uvertical := 8,
DeckSize := 52,
EmptyCard := 156,
CrossCard := 157,
EmptySpace := 158,
Spade := 0,
Heart := 13,
Club := 26,
Diamond := 39,
Ace := 0,
Deuce := 1,
Three := 2,
Four := 3,
Five := 4,
Six := 5,
Seven := 6,
Eight := 7,
Nine := 8,
Ten := 9,
Jack := 10,
Queen := 11,
King := 12;
{****objet card handler}
object Cards is
const Zorder : integer,
W : integer := 0,
H : integer := 0,
RATIOW : integer := 0,
RATIOH : integer := 0,
DEFAULT : card := EmptyCard,
SYNC : Cards;
procedure INIT;
end Cards;
{****default card handlers}
Cards HCARDS is
W := 0;
H := 0;
RATIOW := 2;
RATIOH := 3;
DEFAULT := EmptyCard;
//*******************
Init is
Face 0..255 is NORMAL HORIZONTAL;
end HCARDS;
Cards VCARDS is
W := 0;
H := 0;
RATIOW := 2;
RATIOH := 3;
DEFAULT := EmptyCard;
SYNC := HCARDS;
//*******************
Init is
Face 0..255 is NORMAL VERTICAL;
end VCARDS;
{****object stack}
object stack is
const Zorder : integer,
X : integer := 1,
Y : integer := 1,
DIRECTION : integer := over,
W : integer := 1,
H : integer := 1,
HANDLER : cards;
procedure Start;
procedure SelectLeftFrom(Spos : Index);
procedure SelectLeftTo(Spos : Index);
procedure SelectRightFrom(Spos : Index);
procedure SelectRightTo(Spos : Index);
procedure Help;
Select is SelectLeftFrom, SelectLeftTo, SelectRightFrom, SelectRightTo;
SelectLeft is SelectLeftFrom, SelectLeftTo;
SelectRight is SelectRightFrom, SelectRightTo;
SelectFrom is SelectLeftFrom, SelectRightFrom;
SelectTo is SelectLeftTo, SelectRightTo;
end stack;
{****mouse stack}
Stack CURSOR is
Direction := down;
Handler := VCARDS;
end CURSOR;
{****color constant}
//const
// green := 0;
#endif