summaryrefslogtreecommitdiff
path: root/src/player_func.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-09-30 20:51:04 +0000
committerrubidium <rubidium@openttd.org>2008-09-30 20:51:04 +0000
commitb650a86e5859240e65d8654b5b08b211b2f33d7e (patch)
tree5cdc895449fdbe349dfb1703357a89cdea6cc5e0 /src/player_func.h
parent3b798599b63067c2e92aa49906ea66a07ae8de44 (diff)
downloadopenttd-b650a86e5859240e65d8654b5b08b211b2f33d7e.tar.xz
(svn r14422) -Codechange: also reflect the changes of r14421 in the filenames.
Diffstat (limited to 'src/player_func.h')
-rw-r--r--src/player_func.h49
1 files changed, 0 insertions, 49 deletions
diff --git a/src/player_func.h b/src/player_func.h
deleted file mode 100644
index 66f5161a9..000000000
--- a/src/player_func.h
+++ /dev/null
@@ -1,49 +0,0 @@
-/* $Id$ */
-
-/** @file company_func.h Functions related to companies. */
-
-#ifndef COMPANY_FUNC_H
-#define COMPANY_FUNC_H
-
-#include "core/math_func.hpp"
-#include "player_type.h"
-#include "tile_type.h"
-#include "strings_type.h"
-
-void ChangeOwnershipOfCompanyItems(Owner old_owner, Owner new_owner);
-void GetNameOfOwner(Owner owner, TileIndex tile);
-void SetLocalCompany(CompanyID new_company);
-
-extern CompanyByte _local_company;
-extern CompanyByte _current_company;
-
-extern byte _company_colours[MAX_COMPANIES]; ///< NOSAVE: can be determined from company structs
-extern CompanyManagerFace _company_manager_face; ///< for company manager face storage in openttd.cfg
-
-bool IsHumanCompany(CompanyID company);
-
-static inline bool IsLocalCompany()
-{
- return _local_company == _current_company;
-}
-
-static inline bool IsInteractiveCompany(CompanyID company)
-{
- return company == _local_company;
-}
-
-
-
-struct HighScore {
- char company[100];
- StringID title; ///< NOSAVE, 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 Company *p);
-int8 SaveHighScoreValueNetwork();
-
-#endif /* COMPANY_FUNC_H */