Files
@ r10116:be292ddefbc7
Branch filter:
Location: cpp/openttd-patchpack/source/src/player_func.h - annotation
r10116:be292ddefbc7
1.2 KiB
text/x-c
(svn r14300) -Update: WebTranslator2 update to 2008-09-12 17:41:59
brazilian_portuguese - 13 fixed by tucalipe (13)
catalan - 12 fixed by arnaullv (12)
danish - 9 fixed, 7 changed by ThomasA (16)
dutch - 1 changed by habell (1)
estonian - 5 fixed by kristjans (5)
galician - 98 fixed, 6 changed by Condex (104)
german - 7 fixed, 83 changed by sulai (69), dih (21)
korean - 12 fixed by leejaeuk5 (12)
romanian - 20 fixed by kneekoo (20)
slovenian - 5 fixed by Necrolyte (5)
brazilian_portuguese - 13 fixed by tucalipe (13)
catalan - 12 fixed by arnaullv (12)
danish - 9 fixed, 7 changed by ThomasA (16)
dutch - 1 changed by habell (1)
estonian - 5 fixed by kristjans (5)
galician - 98 fixed, 6 changed by Condex (104)
german - 7 fixed, 83 changed by sulai (69), dih (21)
korean - 12 fixed by leejaeuk5 (12)
romanian - 20 fixed by kneekoo (20)
slovenian - 5 fixed by Necrolyte (5)
r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8264:d493cb51fe8a r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e r8254:b96be9ebfc6e | /* $Id$ */
/** @file player_func.h Functions related to players. */
#ifndef PLAYER_FUNC_H
#define PLAYER_FUNC_H
#include "core/math_func.hpp"
#include "player_type.h"
#include "tile_type.h"
#include "strings_type.h"
void ChangeOwnershipOfPlayerItems(PlayerID old_player, PlayerID new_player);
void GetNameOfOwner(Owner owner, TileIndex tile);
void SetLocalPlayer(PlayerID new_player);
extern PlayerByte _local_player;
extern PlayerByte _current_player;
/* NOSAVE: can be determined from player structs */
extern byte _player_colors[MAX_PLAYERS];
extern PlayerFace _player_face; ///< for player face storage in openttd.cfg
bool IsHumanPlayer(PlayerID pi);
static inline bool IsLocalPlayer()
{
return _local_player == _current_player;
}
static inline bool IsInteractivePlayer(PlayerID pi)
{
return pi == _local_player;
}
struct HighScore {
char company[100];
StringID title; ///< NO_SAVE, has troubles with changing string-numbers.
uint16 score; ///< do NOT change type, will break hs.dat
};
extern HighScore _highscore_table[5][5]; // 4 difficulty-settings (+ network); top 5
void SaveToHighScore();
void LoadFromHighScore();
int8 SaveHighScoreValue(const Player *p);
int8 SaveHighScoreValueNetwork();
#endif /* PLAYER_FUNC_H */
|