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

animation_setplayervar.cpp File Reference
#include "stratagus.h"
#include "animation/animation_setplayervar.h"
#include "animation.h"
#include "unit.h"
#include <stdio.h>

Functions

animation_setplayervar.cpp - The animation SetPlayerVar.
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)
 

Function Documentation

◆ GetPlayerData()

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

Gets the player data.

Parameters
playerPlayer number.
propPlayer's property.
argAdditional argument (for resource and unit).
Returns
Returning value (only integer).

◆ SetPlayerData()

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.