public addoninstance(Ccity _owner, Tcityaddons _type, int _x, int _y) { x = _x; y = _y; owner = _owner; type = _type; storedproduction = storedhorse = storediron = 0; mobtoproduce = null; owner.thiscitysaddons.Add(this);//add this addon to list of addons of its owning city }
public mob(Emobtype typ) { AIformob = new AI(); mobarchetype at = archetypes[(int)typ]; archetype = at; hp = at.hp; tile = at.tile; hostile_toenemies_currently = at.hostile_toenemies; hostile_toplayer_currently = at.hostile_toplayer; //undead_currently = at.undead; flies_currently = at.flies; skates_currently = at.skates; facing = 0; speed = 0; }