$treeview $search $mathjax
Stratagus  2.2.6
$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_train.cpp File Reference

#include <stdio.h>
#include <stdlib.h>
#include "stratagus.h"
#include "video.h"
#include "sound.h"
#include "unitsound.h"
#include "unittype.h"
#include "animation.h"
#include "player.h"
#include "unit.h"
#include "actions.h"
#include "missile.h"
#include "ai.h"
#include "interface.h"
#include "ui.h"

Functions

action_train.cpp - The building train action.
static int CanHandleOrder (CUnit &unit, COrderPtr order)
void HandleActionTrain (CUnit &unit)
 Handle command train.

Function Documentation

static int CanHandleOrder ( CUnit unit,
COrderPtr  order 
) [static]

Unit can handle order.

Parameters:
unit Newly trained unit.
order New order for the unit.
Returns:
1 if the the unit can do it, 0 otherwise.

void HandleActionTrain ( CUnit unit  ) 

Handle command train.

Unit trains unit!

Parameters:
unit Unit that trains.

(C) Copyright 1998-2011 by The Stratagus Project under the GNU General Public License.
All trademarks and copyrights on this page are owned by their respective owners.