Exemple #1
0
 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
 }
Exemple #2
0
    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;
    }