$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_board.cpp File Reference

#include <stdio.h>
#include <stdlib.h>
#include "stratagus.h"
#include "unittype.h"
#include "animation.h"
#include "player.h"
#include "unit.h"
#include "actions.h"
#include "interface.h"
#include "pathfinder.h"
#include "map.h"

Functions

action_board.cpp - The board action.
static int MoveToTransporter (CUnit &unit)
static int WaitForTransporter (CUnit &unit)
static void EnterTransporter (CUnit &unit)
void HandleActionBoard (CUnit &unit)
 Handle command board.

Function Documentation

static void EnterTransporter ( CUnit unit  )  [static]

Enter the transporter.

Parameters:
unit Pointer to unit.

void HandleActionBoard ( CUnit unit  ) 

Handle command board.

The unit boards a transporter.

Todo:
FIXME: While waiting for the transporter the units must defend themselves.
Parameters:
unit Pointer to unit.

static int MoveToTransporter ( CUnit unit  )  [static]

Move to transporter.

Parameters:
unit Pointer to unit, moving to transporter.
Returns:
>0 remaining path length, 0 wait for path, -1 reached goal, -2 can't reach the goal.

static int WaitForTransporter ( CUnit unit  )  [static]

Wait for transporter.

Parameters:
unit Pointer to unit.
Returns:
True if ship arrived/present, False otherwise.

(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.