# company_func.h

Go to the documentation of this file.

    00001 /* $Id: company_func.h 15903 2009-03-30 23:15:05Z rubidium $ */
    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 #include "gfx_type.h"
    00013
    00014 void ChangeOwnershipOfCompanyItems(Owner old_owner, Owner new_owner);
    00015 void GetNameOfOwner(Owner owner, TileIndex tile);
    00016 void SetLocalCompany(CompanyID new_company);
    00017
    00018 extern CompanyByte _local_company;
    00019 extern CompanyByte _current_company;
    00020
    00021 extern Colours _company_colours[MAX_COMPANIES];
    00022 extern CompanyManagerFace _company_manager_face;
    00023
    00024 bool IsHumanCompany(CompanyID company);
    00025
    00026 static inline bool IsLocalCompany()
    00027 {
    00028   return _local_company == _current_company;
    00029 }
    00030
    00031 static inline bool IsInteractiveCompany(CompanyID company)
    00032 {
    00033   return company == _local_company;
    00034 }
    00035
    00036 #endif /* COMPANY_FUNC_H */