static void Main(string[] args)
        {
            IceRocket ice = new IceRocket();

            ice.Eat();
            Console.WriteLine("************************");
            Magnum magnum = new Magnum(MagnumIce.MilkChocolate);

            magnum.Eat();

            Console.WriteLine("************************");

            Cone cone = new Cone(Flavor.Banana);

            cone.Eat();
            Console.ReadKey();

            Console.WriteLine("***************************");

            Magnum magnum1 = new Magnum(MagnumIce.RomanticStrawberries);

            magnum.Eat();


            Cone cone1 = new Cone(Flavor.Mokka);

            cone1.Eat();
        }
Example #2
0
        public override void Setup(Game _game, UserInput _keyboard, ScreenMessage _message)
        {
            base.Setup (_game, _keyboard, _message);

            var map = new TileMap("pictures/testlevel.png");
            m_house = new ObjectHouse(map);

            StarryBackground bg = new StarryBackground(map.Size);
            m_house.AddDrawable(bg);

            map.Create(m_house, _game);

            Magnum magnum = new Magnum(m_house);

            var hero = new Hero(_keyboard, m_house);
            hero.Position = new Vector2f(1f, 10f);
            hero.PlaceInWorld(map);
            m_house.AddDrawable(hero);
            m_house.AddUpdateable(hero);

            m_house.AddDrawable(magnum);
            m_house.AddUpdateable(magnum);

            var nHero = new NetworkHero(hero, "127.0.0.1", m_house);
            m_house.AddUpdateable(nHero);
            nHero.Connect();
        }
        static void Main(string[] args)
        {
            IceRocket ice = new IceRocket();

            ice.Eat();
            Console.WriteLine("------------------");
            Magnum magnum = new Magnum(MagnumIce.RomanticStrawberries);

            magnum.Eat();
            Console.WriteLine("------------------");
            Magnum magnum1 = new Magnum(MagnumIce.AlpineNuts);

            magnum1.Eat();
            Console.WriteLine("------------------");
            Cone cone = new Cone(Flavor.Banana);

            cone.Eat();
            Console.WriteLine("------------------");
            Cone cone1 = new Cone(Flavor.Strawberry);

            cone1.Eat();
        }
Example #4
0
 public Gangster(IObjectCollection _house)
 {
     m_magnum = new Magnum(_house);
     m_magnum.Owner = this;
     m_house = _house;
 }
Example #5
0
 void CopyToServices(Magnum.FileSystem.Directory obj)
 {
     string serviceName = obj.Name.GetName();
     Magnum.FileSystem.Directory targetDir = _fs.GetDirectory("Services").GetChildDirectory(serviceName);
     obj.CopyTo(targetDir.Name);
 }
Example #6
0
 public Slug(Magnum _magnum)
 {
     m_magnum = _magnum;
     Size = new Vector2f(m_magnum.Size)/2f;
     weight = m_magnum.health;
 }