source: UI/ui_label.h @ 79

Revision 79, 599 bytes checked in by knowknowledge, 4 years ago (diff)

Cleaned up the TAG game

Created two global tables: swarm and it to make things more packaged.
Pulled the decision making into a set of stand alone function 'plans'.
Each ship has their own plan, and since the plans are partially state
based, each ship moves unpredictably. This plan model could be adapted
to work for much more complex

Added a Window that gives live feedback on which ship is IT.
This window reflects the rotation of the IT ship.

Unlike the earlier version, users should be able to figure out what's
going on now. Like the earlier version, the AI do not do the smart
thing and just flee, since that would be boring.

Line 
1/*
2 * Filename      : ui_label.h
3 * Author(s)     : Chris Thielen (chris@luethy.net)
4 * Date Created  : Friday, April 25, 2008
5 * Last Modified : Friday, April 25, 2008
6 * Purpose       :
7 * Notes         :
8 */
9
10#ifndef __H_LABEL__
11#define __H_LABEL__
12
13#include "UI/ui.h"
14
15class Label : public Widget {
16        public:
17                Label( int x, int y, string label );
18                ~Label();
19               
20                void Draw(  int relx = 0, int rely = 0 );
21
22                int GetWidth( void ) { return w; };
23                int GetHeight( void ) { return h; };
24               
25                void setText(string text){label=text;}
26       
27        private:
28                int w, h;
29                string label;
30};
31
32#endif // __H_LABEL__
Note: See TracBrowser for help on using the repository browser.