Examples of PokemonMove


Examples of org.pokenet.server.battle.mechanics.moves.PokemonMove

    }
    public boolean isListener() {
        return true;
    }
    public void informDamaged(Pokemon source, Pokemon target, MoveListEntry entry, int damage) {
        @SuppressWarnings("unused")
    PokemonMove move = entry.getMove();
        if (m_suitable) {
            target.getField().showMessage("The " + getName() + " weakened "
                    + entry.getName() + "'s power!");
            target.removeStatus(this);           
View Full Code Here

Examples of org.pokenet.server.battle.mechanics.moves.PokemonMove

     */
    public MoveListEntry getTransformedMove(Pokemon poke, MoveListEntry entry) {
        if (!hasEffects(poke.getField()))
            return entry;
       
        PokemonMove move = entry.getMove();
        String name = entry.getName();
        if (name.equals("Weather Ball")) {
            move.setType(PokemonType.T_ROCK);
            move.setPower(100);
        } else if (name.equals("Solarbeam")) {
            if (move instanceof StatusMove) {
                StatusMove statusMove = (StatusMove)move;
                ChargeEffect charge = (ChargeEffect)statusMove.getEffects()[0];
                charge.getMove().getMove().setPower(60);
View Full Code Here

Examples of org.pokenet.server.battle.mechanics.moves.PokemonMove

            p.removeStatus(this);
        }
    }
   
    public void informDamaged(Pokemon source, Pokemon target, MoveListEntry entry, int damage) {
        PokemonMove move = entry.getMove();
        if (move != null) {
            if (move.getType().equals(PokemonType.T_FIRE)) {
                target.removeStatus(this);
            }
        }
    }
View Full Code Here

Examples of org.pokenet.server.battle.mechanics.moves.PokemonMove

    public boolean immobilises(Pokemon poke) {
        BattleField field = poke.getField();
       
        if (++m_turns >= 4) {
            field.showMessage("God struck down " + poke.getName() + " with all his might!");
            poke.useMove(new PokemonMove(PokemonType.T_TYPELESS, 10000, 1.0, 1), poke);
            field.showMessage("God forgave " + poke.getName());
            poke.removeStatus(this);
            return true;
        }
       
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.