_________ __ __
/ _____// |_____________ _/ |______ ____ __ __ ______
\_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/
/ \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \
/_______ /|__| |__| (____ /__| (____ /\___ /|____//____ >
\/ \/ \//_____/ \/
______________________ ______________________
T H E W A R B E G I N S
Stratagus - A free fantasy real time strategy game engine
#include "stratagus.h"#include "ui/contenttype.h"#include "actions.h"#include "action/action_built.h"#include "font.h"#include "translate.h"#include "unit.h"#include "ui.h"#include "video.h"Classes | |
| struct | UStrInt |
contenttype.cpp - . | |
| enum | UStrIntType { USTRINT_STR, USTRINT_INT, USTRINT_STR, USTRINT_INT, USTRINT_STR, USTRINT_INT } |
| UStrInt | GetComponent (const CUnit &unit, int index, EnumVariable e, int t) |
| Get component for unit variable. More... | |
| UStrInt | GetComponent (const CUnitType &type, int index, EnumVariable e) |
| static const CUnit * | GetUnitRef (const CUnit &unit, EnumUnit e) |
| static EnumUnit | Str2EnumUnit (lua_State *l, const char *s) |
| enum UStrIntType |
| UStrInt GetComponent | ( | const CUnit & | unit, |
| int | index, | ||
| EnumVariable | e, | ||
| int | t | ||
| ) |
Get component for unit variable.
Return the value corresponding.
| unit | Unit. |
| index | Index of the variable. |
| e | Component of the variable. |
| t | Which var use (0:unit, 1:Type, 2:Stats) |
| UStrInt GetComponent | ( | const CUnitType & | type, |
| int | index, | ||
| EnumVariable | e | ||
| ) |
Get unit from a unit depending of the relation.
| unit | unit reference. |
| e | relation with unit. |
|
static |
Return enum from string about variable component.
| l | Lua State. |
| s | string to convert. |
1.8.17
(C) Copyright 1998-2012 by The Stratagus Project under the GNU General Public License.