$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/animation/animation_setplayervar.cpp File Reference

#include "stratagus.h"
#include "animation/animation_setplayervar.h"
#include "animation.h"
#include "unit.h"

animation_setplayervar.cpp - The animation SetPlayerVar.

#define MOD_ADD   1
#define MOD_SUB   2
#define MOD_MUL   3
#define MOD_DIV   4
#define MOD_MOD   5
int GetPlayerData (const int player, const char *prop, const char *arg)
static void SetPlayerData (const int player, const char *prop, const char *arg, int value)

Define Documentation

#define MOD_ADD   1

#define MOD_DIV   4

#define MOD_MOD   5

#define MOD_MUL   3

#define MOD_SUB   2


Function Documentation

int GetPlayerData ( const int  player,
const char *  prop,
const char *  arg 
)

Gets the player data.

Parameters:
player Player number.
prop Player's property.
arg Additional argument (for resource and unit).
Returns:
Returning value (only integer).

static void SetPlayerData ( const int  player,
const char *  prop,
const char *  arg,
int  value 
) [static]

Sets the player data.

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