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

action_train.cpp File Reference
#include "stratagus.h"
#include "action/action_train.h"
#include "ai.h"
#include "animation.h"
#include "iolib.h"
#include "luacallback.h"
#include "player.h"
#include "sound.h"
#include "translate.h"
#include "ui.h"
#include "unit.h"
#include "unitsound.h"
#include "unittype.h"

action_train.cpp - The building train action.

#define CancelTrainingCostsFactor   100
 How many resources the player gets back if canceling training. More...
 
static bool CanHandleOrder (const CUnit &unit, COrder *order)
 
static void AnimateActionTrain (CUnit &unit)
 

Macro Definition Documentation

◆ CancelTrainingCostsFactor

#define CancelTrainingCostsFactor   100

How many resources the player gets back if canceling training.

Function Documentation

◆ AnimateActionTrain()

static void AnimateActionTrain ( CUnit unit)
static

◆ CanHandleOrder()

static bool CanHandleOrder ( const CUnit unit,
COrder order 
)
static

Unit can handle order.

Parameters
unitNewly trained unit.
orderNew order for the unit.
Returns
true if the the unit can do it, false otherwise.
(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.