_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
Go to the documentation of this file.
30 #ifndef __CONTENT_TYPE_H__
31 #define __CONTENT_TYPE_H__
54 virtual void Draw(
const CUnit &unit,
CFont *defaultfont)
const = 0;
56 virtual void Parse(lua_State *l) = 0;
78 virtual void Parse(lua_State *l);
101 virtual void Parse(lua_State *l);
122 virtual void Parse(lua_State *l);
141 virtual void Parse(lua_State *l);
145 unsigned ButtonIcon:1;
146 unsigned SingleSelectionIcon:1;
147 unsigned GroupSelectionIcon:1;
148 unsigned TransportIcon:1;
158 virtual void Parse(lua_State *l);
171 CContentTypeLifeBar() : Index(-1), ValueFunc(NULL), ValueMax(-1), Width(0), Height(0), hasBorder(1), colors(NULL), values(NULL) {}
180 virtual void Parse(lua_State *l);
189 unsigned int *colors;
190 unsigned int *values;
202 virtual void Parse(lua_State *l);
215 #endif // __CONTENT_TYPE_H__
virtual void Draw(const CUnit &unit, CFont *defaultfont) const
Definition: contenttype.cpp:180
virtual void Draw(const CUnit &unit, CFont *defaultfont) const
Definition: contenttype.cpp:347
virtual void Parse(lua_State *l)
Definition: contenttype.cpp:569
virtual void Parse(lua_State *l)
Definition: contenttype.cpp:442
Definition: contenttype.h:47
virtual void Parse(lua_State *l)
Definition: contenttype.cpp:416
uint32_t IntColor
Definition: color.h:37
virtual void Draw(const CUnit &unit, CFont *defaultfont) const
Definition: contenttype.cpp:276
@ VariableValue
Definition: script.h:159
virtual ~CContentTypeFormattedText()
Definition: contenttype.h:98
virtual void Parse(lua_State *l)
Definition: contenttype.cpp:676
virtual void Parse(lua_State *l)=0
Definition: contenttype.h:114
virtual void Parse(lua_State *l)
Definition: contenttype.cpp:380
CContentTypeFormattedText()
Definition: contenttype.h:96
PixelPos Pos
Definition: contenttype.h:59
Definition: contenttype.h:66
CContentTypeLifeBar()
Definition: contenttype.h:171
CContentType()
Definition: contenttype.h:50
virtual void Draw(const CUnit &unit, CFont *defaultfont) const
Definition: contenttype.cpp:255
virtual ~CContentTypeFormattedText2()
Definition: contenttype.h:119
Definition: contenttype.h:154
CContentTypeFormattedText2()
Definition: contenttype.h:117
void FreeNumberDesc(NumberDesc *number)
Evaluate the string.
Definition: script.cpp:1224
CContentTypeText()
Definition: contenttype.h:69
EnumUnit
Definition: script.h:170
virtual void Parse(lua_State *l)
Definition: contenttype.cpp:552
virtual void Draw(const CUnit &unit, CFont *defaultfont) const
Definition: contenttype.cpp:70
virtual void Draw(const CUnit &unit, CFont *defaultfont) const
Definition: contenttype.cpp:297
virtual ~CContentTypeText()
Definition: contenttype.h:71
virtual ~CContentTypeLifeBar()
Definition: contenttype.h:172
CContentTypeCompleteBar()
Definition: contenttype.h:199
virtual void Parse(lua_State *l)
Definition: contenttype.cpp:517
virtual void Draw(const CUnit &unit, CFont *defaultfont) const
Definition: contenttype.cpp:141
Definition: contenttype.h:93
ConditionPanel * Condition
Coordinate where to display.
Definition: contenttype.h:60
virtual void Draw(const CUnit &unit, CFont *defaultfont) const =0
Tell how show the variable Index.
Definition: contenttype.h:137
void FreeStringDesc(StringDesc *s)
Free unit description content. (no pointer itself).
Definition: script.cpp:1294
unsigned short UnitRef
Definition: commands.h:129
EnumVariable
Definition: script.h:158
Definition: contenttype.h:168
Definition: contenttype.h:196
The big unit structure.
Definition: unit.h:135
virtual ~CContentType()
Definition: contenttype.cpp:59
Font definition.
Definition: font.h:73
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.