Examples of WeatherEffect


Examples of org.pokenet.server.battle.mechanics.statuses.field.WeatherEffect

   
    public int use(BattleMechanics mech, Pokemon user, Pokemon target) {
        BattleField field = user.getField();
        for (int i = 0; i < m_effects.length; ++i) {
            int length = user.hasItem(m_item) ? 8 : 5;
            WeatherEffect eff = null;
            try {
                Constructor<?> ctor = m_effects[i].getConstructor(new Class[] { int.class });
                eff = (WeatherEffect)ctor.newInstance(new Object[] { new Integer(length) });
            } catch (Exception e) {
                throw new InternalError();
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.