$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

src/action/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 "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.
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)

Define Documentation

#define CancelBuildingCostsFactor   75

How many resources the player gets back if canceling building.


Function Documentation

void AiReduceMadeInBuilt ( PlayerAi pai,
const CUnitType type 
)

Reduce made unit-type from build list.

Parameters:
pai Computer AI player.
type Unit-type which is now available.

static void CancelBuilt ( COrder_Built order,
CUnit unit 
) [static]

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

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.