File diff r10570:e200b86ce378 → r10571:99cb9a95b4cf
src/company_manager_face.h
Show inline comments
 
@@ -4,12 +4,14 @@
 

	
 
#ifndef COMPANY_MANAGER_FACE_H
 
#define COMPANY_MANAGER_FACE_H
 

	
 
#include "core/random_func.hpp"
 
#include "core/bitmath_func.hpp"
 
#include "table/sprites.h"
 
#include "company_type.h"
 

	
 
/** The gender/race combinations that we have faces for */
 
enum GenderEthnicity {
 
	GENDER_FEMALE    = 0, ///< This bit set means a female, otherwise male
 
	ETHNICITY_BLACK  = 1, ///< This bit set means black, otherwise white
 

	
 
@@ -225,10 +227,9 @@ static inline SpriteID GetCompanyManager
 
	assert(_cmf_info[cmfv].valid_values[ge] != 0);
 

	
 
	return _cmf_info[cmfv].first_sprite[ge] + GB(cmf, _cmf_info[cmfv].offset, _cmf_info[cmfv].length);
 
}
 

	
 
void DrawCompanyManagerFace(CompanyManagerFace face, int color, int x, int y);
 
CompanyManagerFace ConvertFromOldCompanyManagerFace(uint32 face);
 
bool IsValidCompanyManagerFace(CompanyManagerFace cmf);
 

	
 
#endif /* COMPANY_MANAGER_FACE_H */