public MoveBehaviour CreateMoveBehaviour(Unit unit) { switch (unit.GetType().ToString()) { case "duckhunt.Model.DuckEasy": return new StraightMoveBehaviour(unit); case "duckhunt.Model.DuckMedium": return new StraightMoveBehaviour(unit); default: return null; } }
public DrawBehaviour CreateDrawBehaviour(Unit unit) { switch (unit.GetType().ToString()) { case "duckhunt.Model.DuckEasy": return new DrawBehaviour(Canvas, unit); case "duckhunt.Model.DuckMedium": return new DrawBehaviour(Canvas, unit); default: return null; } }