예제 #1
0
 private void onHitPaddle(GameObject ball, Collider2D paddle)
 {
     if (Random.value <= 0.1f)
     {
         shadowBalls.Add(ShadowBall.CreateShadowBall(new Vector2(ball.transform.position.x, ball.transform.position.y + UnityEngine.Random.Range(-1.2f, 1.2f))));
     }
 }
예제 #2
0
        public void GhostTypePokemonShouldTakeDamageFromSpecialAttack()
        {
            IPokemon ghostTypePokemon = PokemonFactory.CreatePokemon <Gengar>();
            IMove    move             = new ShadowBall();

            Assert.False(TypeComparer.PokemonTypeDoesNotMakeContactWithMove(ghostTypePokemon?.Types, move));
        }
예제 #3
0
 public override void Activate(Ball ball, Player playerPaddle)
 {
     base.Activate(ball, playerPaddle);
     ball.OnHitPaddle += this.onHitPaddle;
     shadowBalls.Add(ShadowBall.CreateShadowBall(new Vector2(ball.transform.position.x, ball.transform.position.y + UnityEngine.Random.Range(-1.2f, 1.2f))));
     LevelsToLast = 1;
 }
예제 #4
0
        public Alakazam(double health, string status)
        {
            name  = "Alakazam";
            type1 = new Psychic();

            estimatedSpeed   = 372;
            estimatedHealth  = 251;
            estimatedAttack  = 122;
            estimatedDefense = 127;
            estimatedSpAttk  = 369;
            estimatedSpDef   = 226;
            move1            = new PsychicA();
            move2            = new ShadowBall();
            move3            = new FocusBlast();
            move4            = new DazzlingGleam();
            Initialize(name, health, status);
            item = "Life Orb";
        }