using System; namespace DemoOOP7 { class Program { static void Main(string[] args) { Human bob = new Human("Bob", new FireBallSpell()); Ogre shrek = new Ogre("Shrek"); Building castle = new Building(); castle.AssignGuard(shrek); castle.AssignGuard(bob); castle.StartPatrol(); bob.CastSpell(); bob.PickUpSpell(new FreezeSpell()); bob.CastSpell(); FireBallSpell fire = new FireBallSpell(); bob.PickUpSpell(fire); bob.CastSpell(); Console.ReadKey(); // Pause } } }