Advertisement
Guest User

Untitled

a guest
Jun 21st, 2012
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class ScriptEventOnHouseDestroyed : public ScriptEventCompanyTown {
  2. public:
  3.     int population;
  4.  
  5.     /**
  6.      * @param company The company.
  7.      * @param town The town.
  8.          * @param _population The population.
  9.      */
  10.     ScriptEventOnHouseDestroyed(ScriptCompany::CompanyID company, TownID town, int _population) :
  11.         ScriptEventCompanyTown(ET_HOUSE_DESTROYED, company, town)
  12.     {
  13.         population = _population;
  14.     }
  15.  
  16.     /**
  17.          * Convert an ScriptEvent to the real instance.
  18.          * @param instance The instance to convert.
  19.          * @return The converted instance.
  20.          */
  21.         static ScriptEventOnHouseDestroyed *Convert(ScriptEventCompanyTown *instance) {
  22.         return (ScriptEventRoadReconstruction *)instance;
  23.     }
  24. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement