home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Hack-Phreak Scene Programs
/
cleanhpvac.zip
/
cleanhpvac
/
ARSRC21.ZIP
/
AR256DEF.H
< prev
next >
Wrap
C/C++ Source or Header
|
1995-06-01
|
2KB
|
67 lines
class mouse
{
public:
int x,y;
enum tf mouseon ;
enum tf wherelastclick(void);
enum tf right(void);
enum tf wheremouse(void);
enum tf nearby(int,int,int);
togmouse();
onmouse();
offmouse();
setbounds(int,int);
unsetbounds();
mouse();
~mouse();
bitmapon(int,int);
bitmapoff();
initbitmap(int);//puts an image in *background--graphics must be on
// if its argument is true, noputat is set true.
putat(int,int); //puts cursor. duh. turn it off first.
private:
char noputat; //if true, putat does nowt.
dobounds();
signed int l,r,u,d;
char bitmap_flag;
unsigned char *bitmap_0, *current_map, *bitmap_1, *bitmap_2, *bitmap_3;
void *background;
int oldmx,oldmy,colour;
void drawmouse(int,int,unsigned char *);
int flip;
};
class screenmsgs{
public:
screenmsgs();
~screenmsgs();
void plecho(unsigned char); //name
void mecho(unsigned char,unsigned char);//current mon
void fecho(monster,monster,char); //fight
void shecho(monster,monster,char,char); //shot
void modecho(int); //mode
void recho(char,char); //recce
void trecho(monster,char); //felling trees
void boxes(void);
void logo(void);
void spells(monster);
void decho(char); //death of player
void usespace(void); //popups.
void usemouse(void);
void usekeys(void);
void help(void);
void spellhelp(int);
void graph(int [4][50],char *,char *);
void bargraph(int [4],char *,char *);
private:
char *logsp,*loga,*logb;
void deathwindow(int,int,int,int,int); //draws a box with a skull on for decho and graph
char * spellname(int,char *); //returns pointer to name of spell
};