Example #1
0
        // --- Static Methods ---
        // Initiates the marketplace
        public static void init(ConquestGame game)
        {
            professions.add(new MarketPlaceInfo<Unit>(
                Ballista.ID,
                "Ballista",
                "A Ballista!",
                1000,
                MarketPlaceInfo<object>.createUnitEvent,
                game.unlocked
            ));

            professions.add(new MarketPlaceInfo<Unit>(
                Cardinal.ID,
                "Cardinal",
                "A Cardinal!",
                1000,
                MarketPlaceInfo<object>.createUnitEvent,
                game.unlocked
            ));

            professions.add(new MarketPlaceInfo<Unit>(
                Druid.ID,
                "Druid",
                "A Druid!",
                1000,
                MarketPlaceInfo<object>.createUnitEvent,
                game.locked
            ));
            professions.add(new MarketPlaceInfo<Unit>(
                Fisherman.ID,
                "Fisherman",
                "A Fisherman!",
                1000,
                MarketPlaceInfo<object>.createUnitEvent,
                game.locked
            ));
            professions.add(new MarketPlaceInfo<Unit>(
                Huntsman.ID,
                "Huntsman",
                "A Huntsman!",
                1000,
                MarketPlaceInfo<object>.createUnitEvent,
                game.unlocked
            ));

            professions.add(new MarketPlaceInfo<Unit>(
                Soldier.ID,
                "Soldier",
                "A Soldier",
                1000,
                MarketPlaceInfo<object>.createUnitEvent,
                game.unlocked
            ));

            professions.add(new MarketPlaceInfo<Unit>(
                Thug.ID,
                "Thug",
                "A Thug!",
                1000,
                MarketPlaceInfo<object>.createUnitEvent,
                game.unlocked
            ));
            professions.add(new MarketPlaceInfo<Unit>(
                Artificer.ID,
                "Artificer",
                "A Artificer!",
                1500,
                MarketPlaceInfo<object>.createUnitEvent,
                game.locked
            ));

            professions.add(new MarketPlaceInfo<Unit>(
                Berserker.ID,
                "Berserker",
                "A Berserker",
                1500,
                MarketPlaceInfo<object>.createUnitEvent,
                game.locked
            ));

            professions.add(new MarketPlaceInfo<Unit>(
                Crusader.ID,
                "Crusader",
                "A Crusader!",
                1500,
                MarketPlaceInfo<object>.createUnitEvent,
                game.locked
            ));
            professions.add(new MarketPlaceInfo<Unit>(
                DarkKnight.ID,
                "Dark Knight",
                "A Dark Knight!",
                1500,
                MarketPlaceInfo<object>.createUnitEvent,
                game.locked
            ));
            professions.add(new MarketPlaceInfo<Unit>(
                Gladiator.ID,
                "Gladiator",
                "A Gladiator!",
                1500,
                MarketPlaceInfo<object>.createUnitEvent,
                game.unlocked
            ));
            professions.add(new MarketPlaceInfo<Unit>(
                Samurai.ID,
                "Samurai",
                "A Samurai!",
                1500,
                MarketPlaceInfo<object>.createUnitEvent,
                game.locked
            ));
            professions.add(new MarketPlaceInfo<Unit>(
                Scholar.ID,
                "Scholar",
                "A Scholar!",
                1500,
                MarketPlaceInfo<object>.createUnitEvent,
                game.locked
            ));
            professions.add(new MarketPlaceInfo<Unit>(
                Siphon.ID,
                "Siphon",
                "A Siphon!",
                1500,
                MarketPlaceInfo<object>.createUnitEvent,
                game.locked
            ));
            professions.add(new MarketPlaceInfo<Unit>(
                Witch.ID,
                "Witch",
                "A Witch!",
                1500,
                MarketPlaceInfo<object>.createUnitEvent,
                game.unlocked
            ));
            professions.add(new MarketPlaceInfo<Unit>(
                Bard.ID,
                "Bard",
                "A Bard!",
                2000,
                MarketPlaceInfo<object>.createUnitEvent,
                game.locked
            ));
            professions.add(new MarketPlaceInfo<Unit>(
                General.ID,
                "General",
                "A General!",
                2000,
                MarketPlaceInfo<object>.createUnitEvent,
                game.unlocked
            ));
            professions.add(new MarketPlaceInfo<Unit>(
                Necromancer.ID,
                "Necromancer",
                "A Necromancer!",
                2000,
                MarketPlaceInfo<object>.createUnitEvent,
                game.unlocked
            ));
            professions.add(new MarketPlaceInfo<Unit>(
                Technomancer.ID,
                "Technomancer",
                "A Technomancer!",
                2000,
                MarketPlaceInfo<object>.createUnitEvent,
                game.locked
            ));

            professions.add(new MarketPlaceInfo<Unit>(
                Judge.ID,
                "Judge",
                "A Judge!",
                3000,
                MarketPlaceInfo<object>.createUnitEvent,
                game.unlocked
            ));

            professions.add(new MarketPlaceInfo<Unit>(
                Sorcerer.ID,
                "Sorcerer",
                "A Sorcerer!",
                3000,
                MarketPlaceInfo<object>.createUnitEvent,
                game.locked
            ));
            professions.add(new MarketPlaceInfo<Unit>(
                TimeTraveler.ID,
                "Time Traveler",
                "A Time Traveler!",
                3000,
                MarketPlaceInfo<object>.createUnitEvent,
                game.locked
            ));
        }
Example #2
0
        // --- Static Methods ---
        // Starts the application
        public static void Main()
        {
            // Variables
            ConquestGame	game=	new ConquestGame();

            rng=	new Random();

            game.run();
        }