|
|
1.1 ! root 1: #ifndef defont ! 2: #include <CC/jerq.h> ! 3: #endif ! 4: ! 5: class Rulepot; ! 6: class Bmappot; ! 7: class Globepot; ! 8: ! 9: class Pot ! 10: { ! 11: >pub ! 12: char pub_filler[16]; ! 13: >pri ! 14: short flags; ! 15: short pad; ! 16: Pot *next; ! 17: Rectangle r; ! 18: friend hitpot(int); ! 19: friend void helppot(int); ! 20: friend void drawpot(); ! 21: friend void reshapepot(Rectangle, Rectangle); ! 22: friend Rulepot; ! 23: friend Bmappot; ! 24: friend Globepot; ! 25: > ! 26: public: ! 27: Pot(Rectangle, short, short); ! 28: short val; ! 29: char *help; ! 30: virtual void draw(); ! 31: virtual void resize(Rectangle); ! 32: virtual void mod(int); ! 33: }; ! 34: extern Pot *base; ! 35: extern void prval(Point, short); ! 36: extern int hitpot(int); ! 37: extern void drawpot(), reshapepot(Rectangle, Rectangle); ! 38: extern void helppot(int); ! 39: extern Rectangle rcenter(Rectangle, Rectangle); ! 40: ! 41: #define P_MASK 0xFF ! 42: #define P_STYLE 0x3 ! 43: #define P_VERT 0x0 ! 44: #define P_HORIZ 0x1 ! 45: #define P_CIRC 0x2 ! 46: #define P_TICKS 0x4 ! 47: ! 48: class Rulepot : public Pot ! 49: { ! 50: >pub ! 51: char pub_filler[16]; ! 52: >pri ! 53: short maxval; ! 54: short rx; ! 55: Point valoffset, stroffset; ! 56: char *str; ! 57: > ! 58: public: ! 59: Rulepot(Rectangle, short, short, short=0); ! 60: Rulepot(Rectangle, short, short, Point, char *, short=0); ! 61: Rulepot(Rectangle, short, short, Point, short=0); ! 62: Rulepot(Rectangle, short, short, Point, Point, char *, short=0); ! 63: setval(short); ! 64: void draw(); ! 65: void resize(Rectangle); ! 66: void mod(int); ! 67: }; ! 68: ! 69: >pri ! 70: class Bmapitem; ! 71: > ! 72: ! 73: class Bmappot : public Pot ! 74: { ! 75: >pub ! 76: char pub_filler[20]; ! 77: >pri ! 78: short maxval; ! 79: short nitems; ! 80: Bmapitem *items; ! 81: Point corner, stroffset; ! 82: char *str; ! 83: > ! 84: public: ! 85: Bmappot(Rectangle, short, short=0); ! 86: Bmappot(Rectangle, short, Point, char *, short=0); ! 87: void item(Point, char *, Texture32 *); ! 88: void item(Point, char *, Bitmap *); ! 89: setval(short); ! 90: void draw(); ! 91: void resize(Rectangle); ! 92: void mod(int); ! 93: }; ! 94: ! 95: class Globepot : public Pot ! 96: { ! 97: >pub ! 98: char pub_filler[24]; ! 99: >pri ! 100: short radius, offset; ! 101: Point center, pt; ! 102: Point valoffset, stroffset; ! 103: char *str; ! 104: void ptoc(); ! 105: void ctop(); ! 106: void calc(); ! 107: void prvals(); ! 108: > ! 109: public: ! 110: Globepot(Rectangle, short, short, short); ! 111: Globepot(Rectangle, short, short, short, Point, char *); ! 112: Globepot(Rectangle, short, short, short, Point); ! 113: Globepot(Rectangle, short, short, short, Point, Point, char *); ! 114: void setval(short, short); ! 115: short w; ! 116: short front; ! 117: void draw(); ! 118: void resize(Rectangle); ! 119: void mod(int); ! 120: }; ! 121: ! 122: >pri ! 123: extern int min(int, int); ! 124: extern int max(int, int); ! 125: extern void sprintf(char *, char * ...); ! 126: extern int atan2(int, int); ! 127: extern void texture32(...); ! 128: >
This archive runs on limited infrastructure. Preserving old code on modern bandwidth. Automated agents are requested to crawl responsibly.