Ejemplo n.º 1
0
        public override void Move(Vector2 position)
        {
            Vector2 mv = position - Position;

            Position = position;

            background.MoveVector(mv);
            pokemonName.MoveVector(mv);
            pokemonLevel.MoveVector(mv);
            hpbar.MoveVector(mv);
            hpStatus.MoveVector(mv);
            expbar.MoveVector(mv);
        }
Ejemplo n.º 2
0
        public override void Move(Vector2 position)
        {
            Vector2 mv = position - Position;

            Position = position;

            Background.MoveVector(mv);
            pokemonImage.MoveVector(mv);
            pokemonName.MoveVector(mv);
            pokemonLevel.MoveVector(mv);
            hpbar.MoveVector(mv);
            hpStatus.MoveVector(mv);
            expbar.MoveVector(mv);

            for (int i = 0; i < 6; ++i)
            {
                pokemonStats[i].MoveVector(mv);
            }
        }
Ejemplo n.º 3
0
        public MokeponBattleStats(ref Mokepon pokemon, Vector2 pos, bool mine = false)
        {
            Position = pos;
            Scale    = Vector2.One;

            this.mine    = mine;
            this.pokemon = pokemon;

            background   = new Image(mine ? "MyMokeponStatus" : "MokeponStatus", pos, Vector2.One);
            pokemonName  = new Text(pokemon.Name, Color.Black, pos + new Vector2(10, 10), Vector2.One, "Expression-pro-24px");
            pokemonLevel = new Text("Lvl " + pokemon.LVL.ToString(), Color.Black, pos + new Vector2(200, 10), Vector2.One, "Expression-pro-18px");
            pokemonName.MoveVector(mine ? new Vector2(18, 0) : new Vector2(0, 0));
            pokemonLevel.MoveVector(mine ? new Vector2(18, 0) : new Vector2(0, 0));
            hpbar = new HPBar(ref pokemon, 6, 150, pos + new Vector2(10, 55));
            hpbar.MoveVector(mine ? new Vector2(18, 0) : new Vector2(0, 0));

            if (mine)
            {
                hpStatus = new Text("", Color.Black, pos + new Vector2(190, 55), Vector2.One, "Expression-pro-18px");
                expbar   = new ExpBar(ref pokemon, 4, 120, pos + new Vector2(28, 60));
            }
        }