Exemplo n.º 1
0
        static void Main(string[] args)
        {
            // Marine
            Unit unit = new Marine(new MoveLand(), new Attack());

            unit.Move();
            unit.Attack();

            // Medic
            unit = new Medic(new MoveLand(), new NoAttack());
            unit.Move();
            unit.Attack();

            // Wrath
            unit = new Wrath(new MoveSky(), new Attack());
            unit.Move();
            unit.Attack();

            // Medic special attack
            unit = new Marine(new MoveLand(), new SpecialAttack());
            unit.Move();
            unit.Attack();

            Console.ReadKey();
        }
Exemplo n.º 2
0
            public static void Postfix(HudManager __instance)
            {
                #region add the immortal button
                reliveButton = new CooldownButton(delegate()
                {
                    Immortal.onClick(reliveButton);
                }, (float)1, "Pheonix.Assets.scndchancedone.png", 100f, Vector2.zero, CooldownButton.Category.OnlyPheonix, __instance, (float)0, delegate()
                {
                    Immortal.onDone();
                });

                reliveButton.killButtonManager.gameObject.SetActive(false);
                #endregion
                #region add the droplet button
                dropletButton = new CooldownButton(delegate()
                {
                    Droplit.onClick(dropletButton);
                }, (float)5, "Pheonix.Assets.commsIcon.png", 100f, Vector2.zero, CooldownButton.Category.OnlyPheonix, __instance, (float)0, delegate()
                {
                    Droplit.onDone();
                });

                dropletButton.killButtonManager.SetTarget(PlayerTools.getClosestDeadPlayer(PlayerControl.LocalPlayer));
                dropletButton.killButtonManager.gameObject.SetActive(false);
                #endregion
                #region add the reveal button
                flashButton = new CooldownButton(delegate()
                {
                    Reveal.onClick(flashButton);
                }, (float)30f, "Pheonix.Assets.revealIcon.png", 100f, new Vector2(1.1f, 0f), CooldownButton.Category.OnlyPheonix, __instance, (float)HarmonyMain.flashDuration.GetValue(), delegate()
                {
                    Reveal.onDone();
                });

                flashButton.killButtonManager.gameObject.SetActive(false);
                #endregion
                #region add the wrath button
                wrathButton = new CooldownButton(delegate()
                {
                    Wrath.onClick(wrathButton);
                }, (float)15f, "Pheonix.Assets.wrathIcon.png", 100f, new Vector2(0.6f, 1.2f), CooldownButton.Category.OnlyPheonix, __instance, (float)0, delegate()
                {
                    Wrath.onDone();
                });

                wrathButton.killButtonManager.gameObject.SetActive(false);
                #endregion
                #region add the extinguish button
                extinguishButton = new CooldownButton(delegate()
                {
                    Water.onClick(extinguishButton);
                }, (float)HarmonyMain.extinguishCooldown.GetValue(), "Pheonix.Assets.clenseIcon.png", 100f, Vector2.zero, CooldownButton.Category.OnlyImpostor, __instance, (float)0, delegate()
                {
                    Water.onDone();
                });

                extinguishButton.killButtonManager.gameObject.SetActive(false);
                #endregion
            }
Exemplo n.º 3
0
        public void addRandomEntity(int x, int y)
        {
            Entity e;
            int    rand = ScreenManager.Rand.Next(500);

            if (rand < 10)
            {
                e = new SkeletonKing(gameScreen, x, y, 1 + (gameScreen.Player.RoomCount / 30f)); // After 30 rooms twice as hard
            }
            else if (rand < 255)
            {
                e = new Wrath(gameScreen, x, y, 1 + (gameScreen.Player.RoomCount / 30f));
            }
            else
            {
                e = new Warlock(gameScreen, x, y, 1 + (gameScreen.Player.RoomCount / 30f));
            }

            addEntity(e);
        }
Exemplo n.º 4
0
 void Start()
 {
     wrath = transform.root.GetComponent <Wrath>();
     image = GetComponent <Image> ();
 }
Exemplo n.º 5
0
 void Start()
 {
     wrath = transform.root.GetComponent <Wrath>();
     text  = GetComponent <Text> ();
 }