00001 /* $Id: company_func.h 14815 2009-01-03 18:44:20Z smatz $ */ 00002 00005 #ifndef COMPANY_FUNC_H 00006 #define COMPANY_FUNC_H 00007 00008 #include "core/math_func.hpp" 00009 #include "company_type.h" 00010 #include "tile_type.h" 00011 #include "strings_type.h" 00012 00013 void ChangeOwnershipOfCompanyItems(Owner old_owner, Owner new_owner); 00014 void GetNameOfOwner(Owner owner, TileIndex tile); 00015 void SetLocalCompany(CompanyID new_company); 00016 00017 extern CompanyByte _local_company; 00018 extern CompanyByte _current_company; 00019 00020 extern byte _company_colours[MAX_COMPANIES]; 00021 extern CompanyManagerFace _company_manager_face; 00022 00023 bool IsHumanCompany(CompanyID company); 00024 00025 static inline bool IsLocalCompany() 00026 { 00027 return _local_company == _current_company; 00028 } 00029 00030 static inline bool IsInteractiveCompany(CompanyID company) 00031 { 00032 return company == _local_company; 00033 } 00034 00035 #endif /* COMPANY_FUNC_H */
1.5.6