SHARE
TWEET

Untitled

a guest Aug 12th, 2017 43 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package com.pokemon.mmo;
  2.  
  3. public class Move {
  4.    
  5.     private String mName;
  6.     private int mType;
  7.     private int mPower;
  8.     private int mAccuracy;
  9.     private boolean mSecondary = false;
  10.     private int mSecondaryEffect;
  11.     private int mSecondaryChance;
  12.    
  13.     private static final int STATUS = 0;
  14.     private static final int PHYSICAL = 1;
  15.     private static final int SPECIAL = 2;
  16.    
  17.     public static final int NO_EFFECT = 0;
  18.     public static final int POISON_EFFECT = 1;
  19.     public static final int TOXIC_EFFECT = 2;
  20.     public static final int BURN_EFFECT = 3;
  21.     public static final int PARALYZE_EFFECT = 4;
  22.     public static final int FREEZE_EFFECT = 5;
  23.     public static final int SLEEP_EFFECT = 6;
  24.     public static final int FLINCH_EFFECT = 7;
  25.    
  26.     public static final int FLAMETHROWER = 1;
  27.    
  28.     public Move(int move) {
  29.         mName = "";
  30.         mType = GameFields.NO_TYPE;
  31.         mPower = 0;
  32.         mAccuracy = 0;
  33.         mSecondary = false;
  34.         mSecondaryChance = 0;
  35.        
  36.         switch(move) {
  37.         case FLAMETHROWER :
  38.             mName = "Flamethrower";
  39.             mType = GameFields.FIRE_TYPE;
  40.             mPower = 95;
  41.             mAccuracy = 100;
  42.             mSecondary = true;
  43.             mSecondaryChance = 10;
  44.             mSecondaryEffect = BURN_EFFECT;
  45.             break;
  46.         }
  47.        
  48.     }
  49.    
  50.     public String getMoveName() {
  51.         return mName;
  52.     }
  53.  
  54. }
RAW Paste Data
Top