public static Actor createActor(string name, int x, int y) { char appearance = '!'; Weapon givenWeapon; switch (name) { case "Guard": appearance = 'G'; givenWeapon = new Weapon("baton"); break; //just for lulz case "Kostik": appearance = 'K'; givenWeapon = new Weapon("concept-art drawing"); break; default: appearance = 'D'; givenWeapon = new Weapon("pointless string"); break; } Actor newActor = new Actor(name, x, y, appearance); newActor.Inv.Wielded = givenWeapon; return newActor; }
//I just can't think of better name for this //Next methods are actor-only routines public static int GuardWait(Actor acting) { return 4; }