$treeview $search $mathjax
Stratagus
2.2.7
$projectbrief
|
$projectbrief
|
$searchbox |
_________ __ __ / _____// |_____________ _/ |______ ____ __ __ ______ \_____ \\ __\_ __ \__ \\ __\__ \ / ___\| | \/ ___/ / \| | | | \// __ \| | / __ \_/ /_/ > | /\___ \ /_______ /|__| |__| (____ /__| (____ /\___ /|____//____ > \/ \/ \//_____/ \/ ______________________ ______________________ T H E W A R B E G I N S Stratagus - A free fantasy real time strategy game engine
#include <action_resource.h>
action_resource.cpp - The generic resource action. | |
~COrder_Resource () | |
virtual bool | IsValid () const |
virtual void | Save (CFile &file, const CUnit &unit) const |
virtual bool | ParseSpecificData (lua_State *l, int &j, const char *value, const CUnit &unit) |
virtual void | Execute (CUnit &unit) |
virtual PixelPos | Show (const CViewport &vp, const PixelPos &lastScreenPos) const |
virtual void | UpdatePathFinderData (PathFinderInput &input) |
virtual bool | OnAiHitUnit (CUnit &unit, CUnit *attacker, int) |
Vec2i | GetHarvestLocation () const |
bool | IsGatheringStarted () const |
bool | IsGatheringFinished () const |
bool | IsGatheringWaiting () const |
Public Member Functions | |
COrder_Resource (CUnit &harvester) | |
virtual COrder_Resource * | Clone () const |
int | GetCurrentResource () const |
Friends | |
COrder * | COrder::NewActionResource (CUnit &harvester, const Vec2i &pos) |
COrder * | COrder::NewActionResource (CUnit &harvester, CUnit &mine) |
COrder * | COrder::NewActionReturnGoods (CUnit &harvester, CUnit *depot) |
COrder_Resource::COrder_Resource | ( | CUnit & | harvester | ) | [inline] |
COrder_Resource::~COrder_Resource | ( | ) |
virtual COrder_Resource* COrder_Resource::Clone | ( | ) | const [inline, virtual] |
Implements COrder.
bool COrder_Resource::IsValid | ( | ) | const [virtual] |
Implements COrder.
bool COrder_Resource::ParseSpecificData | ( | lua_State * | l, | |
int & | j, | |||
const char * | value, | |||
const CUnit & | unit | |||
) | [virtual] |
Implements COrder.
void COrder_Resource::Execute | ( | CUnit & | unit | ) | [virtual] |
Control the unit action: getting a resource.
This the generic function for oil, gold, ...
unit | Pointer to unit. |
Implements COrder.
PixelPos COrder_Resource::Show | ( | const CViewport & | vp, | |
const PixelPos & | lastScreenPos | |||
) | const [virtual] |
Implements COrder.
void COrder_Resource::UpdatePathFinderData | ( | PathFinderInput & | input | ) | [virtual] |
Implements COrder.
Reimplemented from COrder.
int COrder_Resource::GetCurrentResource | ( | ) | const [inline] |
Vec2i COrder_Resource::GetHarvestLocation | ( | ) | const |
bool COrder_Resource::IsGatheringStarted | ( | ) | const |
bool COrder_Resource::IsGatheringFinished | ( | ) | const |
bool COrder_Resource::IsGatheringWaiting | ( | ) | const |
position for terrain resource.