src/newgrf_house.h
branchgamebalance
changeset 9911 0b8b245a2391
parent 9896 2473804114de
child 6720 35756db7e577
equal deleted inserted replaced
9910:0b2aebc8283e 9911:0b8b245a2391
    39 struct HouseClassMapping {
    39 struct HouseClassMapping {
    40 	uint32 grfid;     ////< The GRF ID of the file this class belongs to
    40 	uint32 grfid;     ////< The GRF ID of the file this class belongs to
    41 	uint8  class_id;  ////< The class id within the grf file
    41 	uint8  class_id;  ////< The class id within the grf file
    42 };
    42 };
    43 
    43 
    44 extern HouseIDMapping _house_id_mapping[HOUSE_MAX]; ///< Declared in newgrf_house.cpp
       
    45 
       
    46 void AddHouseOverride(uint8 local_id, uint house_type);
       
    47 void ResetHouseOverrides();
       
    48 
       
    49 void SetHouseSpec(const HouseSpec *hs);
       
    50 
       
    51 void CheckHouseIDs();
    44 void CheckHouseIDs();
    52 void ResetHouseIDMapping();
       
    53 
    45 
    54 HouseClassID AllocateHouseClassID(byte grf_class_id, uint32 grfid);
    46 HouseClassID AllocateHouseClassID(byte grf_class_id, uint32 grfid);
    55 
    47 
    56 void InitializeBuildingCounts();
    48 void InitializeBuildingCounts();
    57 void IncreaseBuildingCount(Town *t, HouseID house_id);
    49 void IncreaseBuildingCount(Town *t, HouseID house_id);
    60 
    52 
    61 void DrawNewHouseTile(TileInfo *ti, HouseID house_id);
    53 void DrawNewHouseTile(TileInfo *ti, HouseID house_id);
    62 void AnimateNewHouseTile(TileIndex tile);
    54 void AnimateNewHouseTile(TileIndex tile);
    63 void ChangeHouseAnimationFrame(TileIndex tile, uint16 callback_result);
    55 void ChangeHouseAnimationFrame(TileIndex tile, uint16 callback_result);
    64 
    56 
    65 uint16 GetHouseCallback(uint16 callback, uint32 param1, HouseID house_id, Town *town, TileIndex tile);
    57 uint16 GetHouseCallback(uint16 callback, uint32 param1, uint32 param2, HouseID house_id, Town *town, TileIndex tile);
    66 
    58 
    67 bool CanDeleteHouse(TileIndex tile);
    59 bool CanDeleteHouse(TileIndex tile);
    68 
    60 
    69 bool NewHouseTileLoop(TileIndex tile);
    61 bool NewHouseTileLoop(TileIndex tile);
    70 
    62