|
//The Mech Class. This contains all units' stats. import javax.swing.*;
public class MechClass { private Object mech; private int HP; private int EN; private int def; private int agl; private String sky; private String land; private String water; private String space; private String size; private boolean sword=false; private boolean shield=false; private boolean afterImage=false; private String notes=""; private String attacks=""; private int x=0; private int movement; public MechClass() { setMech(); } public void setMech() { do { Object unitArray[]={"Zaku II F-2", "Aqua Valiance", "Huckebein Mk-III", "Huckebein Gunner", "Huckebein Boxer", "Reb Gelf", "Alt Eisen", "Weiss Ritter", "White Phantom", "Gundam Epyon", "Nightshade Mk-VI", "Serie", "Zekaria", "Velga Giros", "Zeta Gundam", "Viator", "Alterion (CF)", "Alterion (DF)", "Vegarion", "Hyperion", "Shadowcat", "Chimera", "Azure Thunder"}; mech=JOptionPane.showInputDialog(null, "Enter unit name.", "Unit Select", JOptionPane.INFORMATION_MESSAGE, null, unitArray, unitArray[0]); if(mech.equals("Zaku II F-2")){ HP=4000; EN=120; def=1100; agl=850; sky="-"; land="A"; water="B"; space="A"; size="M"; movement=4; sword=true; shield=true; notes="Notes: None"; attacks="120mm Machine Gun : 1400, 1-4, Ammo 10, Acc 0 , Crit 10, A/A/B/A"+ "nHeat Hawk P : 1400, 1 , None , Acc 15, Crit 0 , -/A/A/A"+ "n240mm Bazooka : 1600, 3-5, Ammo 4 , Acc-10, Crit-10, A/A/A/A"; } else if(mech.equals("Aqua Valiance")){ HP=16000; EN=350; def=1800; agl=1000; sky="A"; land="C"; water="B"; space="A"; size="LL"; movement=5; notes="Vell Force: -800 Damage to all attacks."; attacks="Storm Chaingun P : 1600, 1-2, Ammo 99, Acc 0 , Crit 10, A/B/D/A"+ "n200mm Turret Railgun: 2500, 1-8, None , Acc 10, Crit 30, A/A/B/A"+ "nHellhound Missile : 3200, 1-9, Ammo 20, Acc 50, Crit 20, A/B/C/A"+ "nMain MegaBeam Cannon: 4200, 1-9, EN 50 , Acc 15, Crit 20, A/A/C/A"+ "nWinter Tempest P : 4800, 1-3, EN 80 , Acc 20, Crit 35, A/A/A/A, Morale 120, ESP level 7"; } else if(mech.equals("Huckebein Mk-III")){ HP=6000; EN=320; def=2200; agl=1700; sky="A"; land="A"; water="B"; space="A"; size="M"; movement=5; sword=true; afterImage=true; notes="Gravity Territory: EN Cost 5, Damage under 1500 = 0"; attacks="Twin Vulcan P : 2800, 1 , Ammo 20, Acc 35, Crit 30, A/A/B/A"+ "nMulti Trace Missiles: 3200, MAP, Ammo 2 , Acc 10, Crit 10, A/A/C/A, Morale 120"+ "nPhoton Rifle P : 4500, 1-6, Ammo 10, Acc 20, Crit 0 , A/A/B/A"+ "nRosh Saber P : 4600, 1-2, None , Acc 40, Crit 35, A/A/B/A"+ "nFang Slasher P : 4900, 2-5, EN 10 , Acc 25, Crit 40, A/A/B/A, Morale 105"+ "nGraviton Rifle BST : 5300, 2-8, EN 35 , Acc 15, Crit 10, A/A/B/A, Morale 120"; } else if(mech.equals("Huckebein Gunner")){ HP=7000; EN=350; def=2100; agl=1800; sky="A"; land="B"; water="C"; space="A"; size="M"; movement=6; notes="Gravity Territory: EN Cost 5, Damage under 1500 = 0"; attacks="Twin Vulcan P : 2800, 1 , Ammo 20, Acc 35, Crit 30, A/A/A/A"+ "nMulti Trace Missiles: 3200, MAP, Ammo 2 , Acc 10, Crit 10, A/A/C/A, Morale 120"+ "nLeap Missile : 3500, MAP, Ammo 1 , Acc 40, Crit-10, A/B/C/A, Morale 125"+ "nRosh Saber P : 4600, 1-2, None , Acc 40, Crit 35, A/A/B/A"+ "nGraviton Rifle : 4700, 1-6, Ammo 8 , Acc -5, Crit 30, A/A/B/A"+ "nFang Slasher P : 4900, 2-5, EN 10 , Acc 25, Crit 40, A/A/B/A"+ "nGravity Ring : 5300, 1-8, Ammo 6 , Acc 20, Crit 0 , A/B/C/A"+ "nFull Impact Cannon : 6000, 1-9, EN 60 , Acc 20, Crit 0 , A/B/C/A, Morale 130"; } else if(mech.equals("Huckebein Boxer")){ HP=9000; EN=350; def=2600; agl=1600; sky="B"; land="A"; water="A"; space="A"; size="M"; movement=5; notes="Gravity Territory: EN Cost 5, Damage under 1500 = 0"; attacks="Twin Vulcan P : 2800, 1 , Ammo 20, Acc 35, Crit 30, A/A/A/A"+ "nRosh Saber P : 4600, 1-2, None , Acc 40, Crit 35, A/A/B/A"+ "nGraviton Rifle : 4700, 1-6, Ammo 8 , Acc -5, Crit 30, A/A/B/A"+ "nFang Slasher P : 4900, 2-5, EN 5 , Acc 25, Crit 40, A/A/B/A"+ "nGeist Knuckle P : 5400, 1 , EN 10 , Acc 30, Crit 0 , -/A/A/A, Morale 110"+ "nCatapult Kick P : 5900, 1 , EN 20 , Acc 15, Crit 25, -/A/A/A"+ "nG Sword Diver P : 6300, 1 , EN 50 , Acc 40, Crit 10, A/A/A/A, Morale 130"; } else if(mech.equals("Azure Thunder")){ HP=4200; EN=180; def=1320; agl=1300; sky="A"; land="-"; water="B"; space="S"; size="M"; movement=5; notes="Notes: None."; attacks="100mm Railgun P : 2300, 1-5, None , Acc 20, Crit 20, A/A/B/A"+ "nQuad Blasters P : 2450, 1-3, None , Acc 25, Crit 10, A/A/C/A"+ "nRadar Missiles : 2900, 2-6, Ammo 8 , Acc 30, Crit 0 , A/A/C/A"+ "nAll Out Attack P : 3600, 1-3, Ammo 3 , Acc 15, Crit 20, A/A/B/A, Morale 115"; } else if(mech.equals("Reb Gelf")){ HP=3600; EN=150; def=1200; agl=950; sky="A"; land="A"; water="C"; space="A"; size="M"; movement=4; sword=true; //jammer=true; notes="Jammer: 100% Evade against Smart Missiles"; attacks="5 Ren Missile Pod P : 1300, 2-6, Ammo 5 , Acc 5 , Crit 0 , A/A/A/A"+ "nLaser Sword P : 1400, 1 , None , Acc 15, Crit 0 , A/A/A/A"+ "n75mm Hand Rail Gun : 1400, 1-6, Ammo 10, Acc 0 , Crit 10, A/A/B/A"; } else if(mech.equals("Alt Eisen")){ HP=6500; EN=220; def=2000; agl=1000; sky="A"; land="S"; water="B"; space="A"; size="M"; movement=4; sword=true; notes="Beam Coat: Damage - 700 on Beam Attacks. 5 EN Cost"; attacks="Heat Horn P : 2000, 1 , None , Acc 40, Crit 40, A/A/B/A"+ "n3 Way Gattling Gun P: 2300, 1-4, Ammo 10, Acc 30, Crit 10, A/A/A/A"+ "nHigh Prfm Beam Rifle: 2500, 2-7, Ammo 5 , Acc 25, Crit 20, A/A/-/A"+ "nRevolving Stake P : 3200, 1-3, Ammo 6 , Acc 10, Crit 35, A/A/A/A"+ "nSquare Claymore : 4000, 1-2, Ammo 3 , Acc 50, Crit 50, A/A/B/A, Morale 110"+ "nJoker : 5000, 1 , Ammo 1 , Acc 40, Crit 45, D/S/S/S, Morale 130"+ "nRampage Ghost P : 5500, 1-4, EN 60 , Acc 50, Crit 50, A/A/A/A, Morale 120 with Weiss Ritter"; } else if(mech.equals("Weiss Ritter")){ HP=5000; EN=200; def=1000; agl=1500; sky="A"; land="A"; water="C"; space="S"; size="M"; movement=5; sword=true; notes="Beam Coat: Damage - 700 on Beam Attacks. 5 EN Cost"; attacks="Beam Knife P : 1500, 1 , EN 5 , Acc 50, Crit 50, A/A/B/A"+ "n3 Barrel Beam CannoP: 2200, 1-4, Ammo 10, Acc 40, Crit 20, A/B/D/S"+ "nOxton Launcher - E : 3100, 4-7, EN 15 , Acc 35, Crit 0 , A/B/D/S, Beam"+ "nOxton Launcher - B : 3500, 2-5, Ammo 5 , Acc 30, Crit 20, A/A/A/S"+ "nOxton Launcher - W : 4200, 3-6, Ammo 3 , Acc 30, Crit 20, S/B/B/S, Morale 110"+ "nRampage Ghost P : 5500, 1-4, EN 60 , Acc 50, Crit 50, A/A/A/A, Morale 120 with Alt Eisen"; } else if(mech.equals("White Phantom")){ HP=10000; EN=200; def=1000; agl=900; sky="A"; land="-"; water="-"; space="A"; size="LL"; movement=4; notes="None"; attacks="Anti Mech Vulcan P : 1200, 1-3, Ammo 20, Acc 50, Crit 50, A/A/B/A"+ "nAll Terrain Missiles: 1500, 1-5, Ammo 8 , Acc 20, Crit 20, A/A/A/A"+ "nMega Ptc Beam Cannon: 2500, 1-8, EN 30 , Acc 30, Crit 10, A/A/C/A, Morale 105"+ "nAnti Warship Warhead: 3000, 1-8, Ammo 3 , Acc 20, Crit 50, A/A/A/A, Morale 120"; } //Incomplete else if(mech.equals("Gundam Epyon")){ HP=4300; EN=180; def=1000; agl=950; sky="A"; land="A"; water="C"; space="S"; size="M"; movement=5; sword=true; notes="Beam Coat: Damage - 700 on Beam Attacks. 5 EN Cost"; attacks="Beam Saber : 2000, 1 , EN 5 , Acc , Crit , A/A/B/A"; } else if(mech.equals("Nightshade Mk-VI")){ HP=5000; EN=210; def=1100; agl=1800+360; sky="B"; land="S"; water="C"; space="A"; size="M"; movement=5; sword=true; notes="Over Boost: EN Cost 9 per turn, 2 turn max. Speed + 20%"+ "Stealth: EN Cost 7 per turn, nullify opponent weapon accuracy bonus."; attacks="Beam Saber P : 1700, 1 , EN 5 , Acc 35, Crit 20, A/A/B/A"+ "nDual Machine Gun P : 2700, 1-4, Ammo 7 , Acc 23, Crit 25, A/A/C/A"+ "nOver Boost Charge P : 4500, 1-4, EN 35 , Acc 25, Crit 30, A/A/B/A, Morale 120, Req. Over Boost"; } //incomplete else if(mech.equals("Serie")){ HP=5500; EN=250; def=1200; agl=1300; sky="-"; land="S"; water="C"; space="A"; size="M"; movement=4; sword=true; notes="Exceed Orbit: 400, 1-4, EN 2."; attacks="Beam Saber P : 1700, 1 , EN 5 , Acc 35, Crit 20, A/A/B/A"+ "nSniper Rifle : 2800, 3-8, Ammo 6 , Acc 30, Crit 15, B/A/C/A"+ "nBazooka P : 3000, 2-5, Ammo 6 , Acc 15, Crit 15, A/A/D/B"+ "nMissiles P : 3300, 3-5, Ammo 8 , Acc-10, Crit 10, A/A/-/B"+ "nAll Out Attack P : 4500, 3-6, Ammo 2 , Acc 30, Crit 30, S/S/A/S, Morale 115"; } else if(mech.equals("Zekaria")){ HP=4800; EN=200; def=1500; agl=1100; sky="C"; land="B"; water="C"; space="A"; size="M"; movement=5; sword=true; notes="Notes: None"; attacks="Photon Vulcan P : 1200, 1 , Ammo 20, Acc 20, Crit 0, B/A/A/A"+ "nLaser Blade P : 1600, 1 , None , Acc 15, Crit 30, B/A/B/A"+ "nGist Blow P : 1700, 1 , None , Acc 35, Crit 0 , B/A/C/A"+ "nOptical Rifle : 1900, 2-6, Ammo 6 , Acc 0 , Crit 0 , B/A/C/A"; } else if(mech.equals("Velga Giros")){ HP=3000; EN=110; def=1600; agl=1000; sky="B"; land="A"; water="C"; space="A"; size="M"; movement=4; sword=true; shield=true; notes="Notes: None"; attacks="Beam Saber P : 1500, 1 , None , Acc 35, Crit 0 , -/A/B/A"+ "nHeavy Machine Gun : 1600, 1-6, Ammo 10, Acc 0 , Crit 10, A/A/B/A"+ "nShot Lancer P : 1800, 1-3, None , Acc 10, Crit 0 , A/A/B/A"; } else if(mech.equals("Viator")){ HP=4500; EN=180; def=1050; agl=750; sky="-"; land="S"; water="C"; space="A"; size="M"; movement=4; sword=true; shield=true; notes="Notes: None"; attacks="Basic Rifle P : 1600, 1-6, Ammo 12, Acc 20, Crit 10, A/A/B/A"+ "nEnergy Heavyblade P : 2800, 1-2, EN 10 , Acc 0 , Crit 20, B/A/B/A"; } else if(mech.equals("Alterion (CF)")){ HP=3600; EN=120; def=900; agl=1150; sky="A"; land="B"; water="C"; space="A"; size="M"; movement=6; notes="Notes: Transforms to Alterion (DF)"; attacks="90mm GG Cannon P : 2500, 1 , Ammo 10, Acc 20, Crit 30, A/A/B/A"+ "nCTM-07 Prominence : 2900, 1-6, Ammo 8 , Acc 30, Crit 0 , A/A/B/A"+ "nG Axel Driver P : 3100, 2-3, Ammo 6 , Acc 0 , Crit 10, A/A/C/A"; } else if(mech.equals("Alterion (DF)")){ HP=3600; EN=120; def=1000; agl=1050; sky="A"; land="A"; water="C"; space="A"; size="M"; movement=5; sword=true; notes="Notes: Transforms to Alterion (CF)"; attacks="90mm GG Cannon P : 2500, 1-3, Ammo 10, Acc 20, Crit 30, A/A/B/A"+ "nSonic Saber P : 2800, 1 , EN 15 , Acc 40, Crit 10, A/A/B/A, Morale 110"+ "nCTM-02 Spicule P : 2700, 3-4, Ammo 2 , Acc 10, Crit 0 , A/A/B/A"+ "nCTM-07 Prominence : 2900, 1-6, Ammo 8 , Acc 30, Crit 0 , A/A/B/A"+ "nG Axel Driver : 3400, 3-7, Ammo 6 , Acc 0 , Crit 10, A/A/C/A"; } else if(mech.equals("Vegarion")){ HP=3800; EN=100; def=1100; agl=1200; sky="A"; land="B"; water="C"; space="A"; size="M"; movement=6; afterImage=true; notes="Notes: None"; attacks="110mm GG Cannon : 2700, 1-5, Ammo 10, Acc 20, Crit 30, A/A/B/A"+ "nCTM-05 Pleadis : 2900, MAP, Ammo 2 , Acc 10, Crit 0 , A/A/B/A, Morale 120"+ "nCTM-07 Prominence P : 3100, 2-4, Ammo 8 , Acc 30, Crit 0 , A/A/B/A"+ "nG Break Driver : 2900, 1-6, Ammo 6 , Acc 0 , Crit 10, A/A/C/A"+ "nCTM-09 Seifahlt : 3400, 3-7, Ammo 2 , Acc-10, Crit 0 , A/A/B/A"; } else if(mech.equals("Hyperion")){ HP=4000; EN=130; def=1200; agl=1250; sky="A"; land="B"; water="C"; space="A"; size="M"; movement=6; sword=true; notes="Notes: None"; attacks="Twin GG Cannon P : 2700, 1-3, Ammo 10, Acc 20, Crit 30, A/A/B/A"+ "nSonic Saber P : 2800, 1-2, EN 30 , Acc 40, Crit 10, A/A/B/A, Morale 110"+ "nCTM-02 Spicule P : 2800, 3-4, Ammo 2 , Acc 10, Crit 0 , A/A/B/A"+ "nCTM-05 Pleadis : 2900, MAP, Ammo 2 , Acc 10, Crit 0 , A/A/B/A, Morale 120"+ "nCTM-07 ProminenceW : 3300, 1-5, Ammo 8 , Acc 30, Crit 0 , A/A/B/A"+ "nCTM-09 Seifahlt : 3600, 3-7, Ammo 2 , Acc-10, Crit 0 , A/A/B/A"+ "nG Driver XCombinatio: 3700, 2-8, Ammo 6 , Acc 0 , Crit 10, A/A/C/A"+ "nManuver GRaMXs P : 4400, 3-5, Ammo 3 , Acc 30, Crit 0 , A/A/C/A, Morale 130"; }
//incomplete else if(mech.equals("Zeta Gundam")){ HP=4400; EN=120; def=750; agl=900; sky="A"; land="A"; water="C"; space="S"; size="M"; movement=4; sword=true; notes="Beam Coat: Damage - 700 on Beam Attacks. 5 EN Cost"; attacks="Beam Saber : 1700, 1 , EN 5 , Acc , Crit , A/A/B/A"; } else if(mech.equals("Shadowcat")){ HP=3500; EN=170; def=900; agl=1300; sky="-"; land="S"; water="B"; space="C"; size="S"; movement=5; notes="Notes: None."; attacks="ER Medium Laser x2P : 1800, 2-7, EN 5 , Acc 20, Crit 10, A/A/B/A"+ "nER Large Laser P : 2300, 2-7, EN 10 , Acc 10, Crit 10, A/A/B/A"+ "nMedium Pulse Laser P: 2800, 1-3, EN 25 , Acc 5 , Crit 20, B/A/B/A"+ "nLong Range Missiles : 3000, 3-8, Ammo 3 , Acc 15, Crit 0 , A/A/B/A"+ "nShortRange Missile P: 3300, 1-3, Ammo 5 , Acc 5 , Crit 35, A/A/B/A, Morale 120"; } else if(mech.equals("Chimera")){ HP=3800; EN=150; def=1050; agl=1100; sky="-"; land="S"; water="B"; space="C"; size="M"; movement=4; notes="Notes: None."; attacks="Small Laser P : 1500, 1-4, EN 5 , Acc 0 , Crit 0 , A/A/B/A"+ "nAutocannon-5 P : 1900, 1-8, Ammo 20, Acc 10, Crit 10, A/A/B/A"+ "nMedium Laser P : 2800, 1-3, EN 25 , Acc 5 , Crit 20, B/A/B/A"+ "nMiddleRangeMissiles : 3000, 2-5, Ammo 4 , Acc 20, Crit 0 , A/A/C/A"; } else { x=1; JOptionPane.showMessageDialog(null, "Not in Directory."); } }while(x==1); } public Object getMech() { return mech; } public int getHP() { return HP; } public int getEN() { return EN; } public int getDef() { return def; } public int getAgl() { agl=agl/10; return agl; } public String getSky() { return sky; } public String getLand() { return land; } public String getWater() { return water; } public String getSpace() { return space; } public String getSize() { return size; } public boolean getSword() { return sword; } public boolean getShield() { return shield; } public boolean getAfterImage() { return afterImage; } public String getAttacks() { return attacks; } }
|
|