예제 #1
0
파일: Game1.cs 프로젝트: zws3mb/retribution
        public void castleDefenseSpawn()
        {
            int toweroffset = 0;

            // This only gets called if built and initialized (aka player resources = 0)

            for (int i = 0; i < 5; i++)
            {
                modMan.addUnit("ARTIFICIAL", "ARCHER", new Vector2(375 + toweroffset, 75));
                toweroffset += 50;
            }
            // Draw 2 towers for Player
            modMan.addUnit("ARTIFICIAL", "WARRIOR", new Vector2(425, 175));
            modMan.addUnit("ARTIFICIAL", "WARRIOR", new Vector2(475, 175));
            modMan.addUnit("ARTIFICIAL", "WARRIOR", new Vector2(525, 175));
            //ModelManager.artificial.Add(new BossUnit(new Vector2(475,590),400));
            //ModelManager.player.Add(new BossUnit(new Vector2(475,590),4000));
            //modMan.addUnit("PLAYER", "CLERIC", new Vector2(250,550));
            /* ---------------------------------------------------------------------------------------------------- */
            theResource = new Digits(new Vector2(0, 672));
            theTitle    = new titleShell(new Vector2(375, 375));
            theResource.LoadContent(this.Content);
            theTitle.LoadContent(this.Content);
            loadMan.load(this.Content, ModelManager.player);
            loadMan.load(this.Content, ModelManager.artificial);
        }
예제 #2
0
파일: Game1.cs 프로젝트: zws3mb/retribution
        public void riverDefenseSpawn()
        {
            int toweroffset = 0;

            for (int i = 0; i < 5; i++)
            {
                modMan.addUnit("ARTIFICIAL", "ARCHER", new Vector2(375 + toweroffset, 75));
                toweroffset += 50;
            }
            modMan.addUnit("ARTIFICIAL", "WARRIOR", new Vector2(475, 150));
            //modMan.addUnit("PLAYER", "CLERIC", new Vector2(250,550));
            /* ---------------------------------------------------------------------------------------------------- */
            theResource = new Digits(new Vector2(0, 672));
            theTitle    = new titleShell(new Vector2(375, 375));
            theResource.LoadContent(this.Content);
            theTitle.LoadContent(this.Content);
            loadMan.load(this.Content, ModelManager.player);
            loadMan.load(this.Content, ModelManager.artificial);
        }
예제 #3
0
파일: Game1.cs 프로젝트: zws3mb/retribution
        public void riverDefenseSpawn() 
        {
            int toweroffset = 0;

            for (int i = 0; i < 5; i++)
            {
                modMan.addUnit("ARTIFICIAL", "ARCHER", new Vector2(375 + toweroffset, 75));
                toweroffset += 50;
            }
            modMan.addUnit("ARTIFICIAL", "WARRIOR", new Vector2(475, 150));
            //modMan.addUnit("PLAYER", "CLERIC", new Vector2(250,550));
            /* ---------------------------------------------------------------------------------------------------- */
            theResource = new Digits(new Vector2(0, 672));
            theTitle = new titleShell(new Vector2(375, 375));
            theResource.LoadContent(this.Content);
            theTitle.LoadContent(this.Content);
            loadMan.load(this.Content, ModelManager.player);
            loadMan.load(this.Content, ModelManager.artificial);
        }
예제 #4
0
파일: Game1.cs 프로젝트: zws3mb/retribution
 public void castleDefenseSpawn()
 {
     int toweroffset = 0;
     // This only gets called if built and initialized (aka player resources = 0)
     
     for (int i = 0; i < 5; i++)
     {
         modMan.addUnit("ARTIFICIAL", "ARCHER", new Vector2(375 + toweroffset, 75));
         toweroffset += 50;
     }
     // Draw 2 towers for Player
     modMan.addUnit("ARTIFICIAL", "WARRIOR", new Vector2(425, 175));
     modMan.addUnit("ARTIFICIAL", "WARRIOR", new Vector2(475, 175));
     modMan.addUnit("ARTIFICIAL", "WARRIOR", new Vector2(525, 175));
    //ModelManager.artificial.Add(new BossUnit(new Vector2(475,590),400));
    //ModelManager.player.Add(new BossUnit(new Vector2(475,590),4000));
     //modMan.addUnit("PLAYER", "CLERIC", new Vector2(250,550));
     /* ---------------------------------------------------------------------------------------------------- */
     theResource = new Digits(new Vector2(0, 672));
     theTitle = new titleShell(new Vector2(375, 375));
     theResource.LoadContent(this.Content);
     theTitle.LoadContent(this.Content);
     loadMan.load(this.Content, ModelManager.player);
     loadMan.load(this.Content, ModelManager.artificial);
 }
예제 #5
0
        public void addUnit(String team, String type, Vector2 position)
        {
            if (team == "PLAYER")
            {
                switch (type)
                {
                case "APPRENTICE":
                    Apprentice app = new Apprentice(position);
                    player.Add(app);
                    break;

                case "ARCHER":
                    Archer temp = new Archer(position);
                    player.Add(temp);
                    break;

                case "CATAPULT":
                    Catapult cat = new Catapult(position);
                    player.Add(cat);
                    break;

                case "COMMANDER":
                    Commander com = new Commander(position);
                    player.Add(com);
                    break;

                case "PAWN":
                    Pawn paw = new Pawn(position);
                    player.Add(paw);
                    break;

                case "ROGUE":
                    Rogue rog = new Rogue(position);
                    player.Add(rog);
                    break;

                case "TOWER":
                    Tower tower = new Tower(position);
                    player.Add(tower);
                    break;

                case "WARRIOR":
                    Warrior war = new Warrior(position);
                    player.Add(war);
                    break;

                case "DIGIT":
                    Digits digit = new Digits(position);
                    player.Add(digit);
                    break;

                case "CLERIC":
                    Cleric cler = new Cleric(position);
                    player.Add(cler);
                    break;
                }
            }
            else
            {
                switch (type)
                {
                case "APPRENTICE":
                    Apprentice app = new Apprentice(position);
                    artificial.Add(app);
                    break;

                case "ARCHER":
                    Archer temp = new Archer(position);
                    artificial.Add(temp);
                    break;

                case "CATAPULT":
                    Catapult cat = new Catapult(position);
                    artificial.Add(cat);
                    break;

                case "COMMANDER":
                    Commander com = new Commander(autoPlace);
                    artificial.Add(com);
                    break;

                case "PAWN":
                    Pawn paw = new Pawn(position);
                    artificial.Add(paw);
                    break;

                case "ROGUE":
                    Rogue rog = new Rogue(position);
                    artificial.Add(rog);
                    break;

                case "TOWER":
                    Tower tower = new Tower(position);
                    artificial.Add(tower);
                    break;

                case "WARRIOR":
                    Warrior war = new Warrior(position);
                    artificial.Add(war);
                    break;

                case "CLERIC":
                    Cleric cler = new Cleric(position);
                    artificial.Add(cler);
                    break;
                }
            }
        }
예제 #6
0
        public void addUnit(String team, String type, Vector2 position)
        {
            if (team == "PLAYER")
            {
                switch (type)
                {
                    case "APPRENTICE":
                        Apprentice app = new Apprentice(position);
                        player.Add(app);
                        break;
                    case "ARCHER":
                        Archer temp = new Archer(position);
                        player.Add(temp);
                        break;
                    case "CATAPULT":
                        Catapult cat = new Catapult(position);
                        player.Add(cat);
                        break;
                    case "COMMANDER":
                        Commander com = new Commander(position);
                        player.Add(com);
                        break;
                    case "PAWN":
                        Pawn paw = new Pawn(position);
                        player.Add(paw);
                        break;
                    case "ROGUE":
                        Rogue rog = new Rogue(position);
                        player.Add(rog);
                        break;
                    case "TOWER":
                        Tower tower = new Tower(position);
                        player.Add(tower);
                        break;
                    case "WARRIOR":
                        Warrior war = new Warrior(position);
                        player.Add(war);
                        break;
                    case "DIGIT":
                        Digits digit = new Digits(position);
                        player.Add(digit);
                        break;
                    case "CLERIC":
                        Cleric cler = new Cleric(position);
                        player.Add(cler);
                        break;
                }
            }
            else
            {
                switch (type)
                {
                    case "APPRENTICE":
                        Apprentice app = new Apprentice(position);
                        artificial.Add(app);
                        break;
                    case "ARCHER":
                        Archer temp = new Archer(position);
                        artificial.Add(temp);
                        break;
                    case "CATAPULT":
                        Catapult cat = new Catapult(position);
                        artificial.Add(cat);
                        break;
                    case "COMMANDER":
                        Commander com = new Commander(autoPlace);
                        artificial.Add(com);
                        break;
                    case "PAWN":
                        Pawn paw = new Pawn(position);
                        artificial.Add(paw);
                        break;
                    case "ROGUE":
                        Rogue rog = new Rogue(position);
                        artificial.Add(rog);
                        break;
                    case "TOWER":
                        Tower tower = new Tower(position);
                        artificial.Add(tower);
                        break;
                    case "WARRIOR":
                        Warrior war = new Warrior(position);
                        artificial.Add(war);
                        break;
                    case "CLERIC":
                        Cleric cler = new Cleric(position);
                        artificial.Add(cler);
                        break;

                }
            }

        }