_________ __                 __
        /   _____//  |_____________ _/  |______     ____  __ __  ______
        \_____  \\   __\_  __ \__  \\   __\__  \   / ___\|  |  \/  ___/
        /        \|  |  |  | \// __ \|  |  / __ \_/ /_/  >  |  /\___ \
       /_______  /|__|  |__|  (____  /__| (____  /\___  /|____//____  >
               \/                  \/          \//_____/            \/
    ______________________                           ______________________
                          T H E   W A R   B E G I N S
                   Stratagus - A free fantasy real time strategy game engine

action_built.cpp File Reference
#include "stratagus.h"
#include "action/action_built.h"
#include "ai.h"
#include "commands.h"
#include "construct.h"
#include "iolib.h"
#include "luacallback.h"
#include "map.h"
#include "player.h"
#include "script.h"
#include "sound.h"
#include "translate.h"
#include "unit.h"
#include "unittype.h"

action_build.cpp - The build building action.

#define CancelBuildingCostsFactor   75
 How many resources the player gets back if canceling building. More...
 
void AiReduceMadeInBuilt (PlayerAi &pai, const CUnitType &type)
 
static void CancelBuilt (COrder_Built &order, CUnit &unit)
 
static void Finish (COrder_Built &order, CUnit &unit)
 
static const CConstructionFrameFindCFramePercent (const CConstructionFrame &cframe, int percent)
 

Macro Definition Documentation

◆ CancelBuildingCostsFactor

#define CancelBuildingCostsFactor   75

How many resources the player gets back if canceling building.

Function Documentation

◆ AiReduceMadeInBuilt()

void AiReduceMadeInBuilt ( PlayerAi pai,
const CUnitType type 
)

Reduce made unit-type from build list.

Parameters
paiComputer AI player.
typeUnit-type which is now available.

◆ CancelBuilt()

static void CancelBuilt ( COrder_Built order,
CUnit unit 
)
static

◆ FindCFramePercent()

static const CConstructionFrame* FindCFramePercent ( const CConstructionFrame cframe,
int  percent 
)
static

◆ Finish()

static void Finish ( COrder_Built order,
CUnit unit 
)
static
(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.