mirror of
https://github.com/ProjectSWGCore/MobileScriptBuilder.git
synced 2026-09-12 22:45:21 -04:00
Transfer Commit
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package waveTools.msb.resources;
|
||||
|
||||
import java.awt.Component;
|
||||
|
||||
import javax.swing.JOptionPane;
|
||||
|
||||
public class Helpers {
|
||||
public static void showMessageBox(Component parent, String message) {
|
||||
JOptionPane.showMessageDialog(parent, message, "Mobile Script Builder", JOptionPane.INFORMATION_MESSAGE, null);
|
||||
}
|
||||
|
||||
public static void showExceptionError(Component parent, String stackTrace) {
|
||||
JOptionPane.showMessageDialog(parent, "ERROR " + stackTrace, "Mobile Script Builder - ERROR", JOptionPane.ERROR_MESSAGE, null);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,389 @@
|
||||
package waveTools.msb.resources;
|
||||
|
||||
import java.util.Vector;
|
||||
|
||||
public class Mobile {
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private static final long serialVersionUID = 1L;
|
||||
|
||||
private String scriptLocation;
|
||||
private String templateName;
|
||||
private String creatureName;
|
||||
|
||||
private String defaultAttack;
|
||||
private String socialGroup;
|
||||
private int level;
|
||||
private int minLevel;
|
||||
private int maxLevel;
|
||||
private int difficulty;
|
||||
private int attackRange;
|
||||
private int weaponType;
|
||||
private int minSpawnDistance;
|
||||
private int maxSpawnDistance;
|
||||
private int assistRange;
|
||||
private int respawnTime;
|
||||
private boolean harvestable;
|
||||
private boolean stalker;
|
||||
private String faction;
|
||||
private int factionStatus;
|
||||
private float attackSpeed;
|
||||
private boolean deathblowEnabled;
|
||||
private String meatType, milkType, boneType, hideType;
|
||||
private int meatAmount, milkAmount, boneAmount, hideAmount;
|
||||
private Vector<String> creatureTemplates = new Vector<String>();
|
||||
private Vector<Weapon> weaponTemplates = new Vector<Weapon>();
|
||||
private Vector<String> attacks = new Vector<String>();
|
||||
private boolean dirty;
|
||||
|
||||
public Mobile(String template, String scriptLocation) {
|
||||
this.templateName = template;
|
||||
this.scriptLocation = scriptLocation;
|
||||
}
|
||||
|
||||
|
||||
public Mobile() { }
|
||||
|
||||
|
||||
public String getScriptLocation() {
|
||||
return scriptLocation;
|
||||
}
|
||||
|
||||
|
||||
public void setScriptLocation(String scriptLocation) {
|
||||
this.scriptLocation = scriptLocation;
|
||||
}
|
||||
|
||||
|
||||
public String getCreatureName() {
|
||||
return creatureName;
|
||||
}
|
||||
|
||||
|
||||
public void setCreatureName(String creatureName) {
|
||||
this.creatureName = creatureName;
|
||||
}
|
||||
|
||||
|
||||
public Vector<String> getCreatureTemplates() {
|
||||
return creatureTemplates;
|
||||
}
|
||||
|
||||
|
||||
public void setCreatureTemplates(Vector<String> creatureTemplates) {
|
||||
this.creatureTemplates = creatureTemplates;
|
||||
}
|
||||
|
||||
|
||||
public Vector<Weapon> getWeaponTemplates() {
|
||||
return weaponTemplates;
|
||||
}
|
||||
|
||||
|
||||
public Vector<String> getAttacks() {
|
||||
return attacks;
|
||||
}
|
||||
|
||||
|
||||
public void setWeaponTemplates(Vector<Weapon> weaponTemplates) {
|
||||
this.weaponTemplates = weaponTemplates;
|
||||
}
|
||||
|
||||
public int getLevel() {
|
||||
return level;
|
||||
}
|
||||
|
||||
|
||||
public void setLevel(int level) {
|
||||
this.level = level;
|
||||
}
|
||||
|
||||
|
||||
public int getMinLevel() {
|
||||
return minLevel;
|
||||
}
|
||||
|
||||
|
||||
public void setMinLevel(int minLevel) {
|
||||
this.minLevel = minLevel;
|
||||
}
|
||||
|
||||
|
||||
public int getMaxLevel() {
|
||||
return maxLevel;
|
||||
}
|
||||
|
||||
|
||||
public void setMaxLevel(int maxLevel) {
|
||||
this.maxLevel = maxLevel;
|
||||
}
|
||||
|
||||
|
||||
public float getAttackSpeed() {
|
||||
return attackSpeed;
|
||||
}
|
||||
|
||||
|
||||
public void setAttackSpeed(float attackSpeed) {
|
||||
this.attackSpeed = attackSpeed;
|
||||
}
|
||||
|
||||
|
||||
public int getAttackRange() {
|
||||
return attackRange;
|
||||
}
|
||||
|
||||
|
||||
public void setAttackRange(int attackRange) {
|
||||
this.attackRange = attackRange;
|
||||
}
|
||||
|
||||
|
||||
public int getWeaponType() {
|
||||
return weaponType;
|
||||
}
|
||||
|
||||
|
||||
public void setWeaponType(int weaponType) {
|
||||
this.weaponType = weaponType;
|
||||
}
|
||||
|
||||
|
||||
public int getDifficulty() {
|
||||
return difficulty;
|
||||
}
|
||||
|
||||
|
||||
public void setDifficulty(int difficulty) {
|
||||
this.difficulty = difficulty;
|
||||
}
|
||||
|
||||
|
||||
public String getDefaultAttack() {
|
||||
return defaultAttack;
|
||||
}
|
||||
|
||||
|
||||
public void setDefaultAttack(String defaultAttack) {
|
||||
this.defaultAttack = defaultAttack;
|
||||
}
|
||||
|
||||
|
||||
public boolean isDirty() {
|
||||
return dirty;
|
||||
}
|
||||
|
||||
|
||||
public void setDirty(boolean dirty) {
|
||||
this.dirty = dirty;
|
||||
}
|
||||
|
||||
public boolean isDeathblowEnabled() {
|
||||
return deathblowEnabled;
|
||||
}
|
||||
|
||||
|
||||
public void setDeathblowEnabled(boolean deathblowEnabled) {
|
||||
this.deathblowEnabled = deathblowEnabled;
|
||||
}
|
||||
|
||||
|
||||
public String getSocialGroup() {
|
||||
return socialGroup;
|
||||
}
|
||||
|
||||
|
||||
public void setSocialGroup(String socialGroup) {
|
||||
this.socialGroup = socialGroup;
|
||||
}
|
||||
|
||||
|
||||
public int getMinSpawnDistance() {
|
||||
return minSpawnDistance;
|
||||
}
|
||||
|
||||
|
||||
public void setMinSpawnDistance(int minSpawnDistance) {
|
||||
this.minSpawnDistance = minSpawnDistance;
|
||||
}
|
||||
|
||||
|
||||
public int getMaxSpawnDistance() {
|
||||
return maxSpawnDistance;
|
||||
}
|
||||
|
||||
|
||||
public void setMaxSpawnDistance(int maxSpawnDistance) {
|
||||
this.maxSpawnDistance = maxSpawnDistance;
|
||||
}
|
||||
|
||||
|
||||
public int getAssistRange() {
|
||||
return assistRange;
|
||||
}
|
||||
|
||||
|
||||
public void setAssistRange(int assistRange) {
|
||||
this.assistRange = assistRange;
|
||||
}
|
||||
|
||||
|
||||
public int getRespawnTime() {
|
||||
return respawnTime;
|
||||
}
|
||||
|
||||
|
||||
public void setRespawnTime(int respawnTime) {
|
||||
this.respawnTime = respawnTime;
|
||||
}
|
||||
|
||||
|
||||
public boolean isHarvestable() {
|
||||
return harvestable;
|
||||
}
|
||||
|
||||
|
||||
public void setHarvestable(boolean harvestable) {
|
||||
this.harvestable = harvestable;
|
||||
}
|
||||
|
||||
|
||||
public String getFaction() {
|
||||
return faction;
|
||||
}
|
||||
|
||||
|
||||
public void setFaction(String faction) {
|
||||
this.faction = faction;
|
||||
}
|
||||
|
||||
|
||||
public int getFactionStatus() {
|
||||
return factionStatus;
|
||||
}
|
||||
|
||||
|
||||
public void setFactionStatus(int factionStatus) {
|
||||
this.factionStatus = factionStatus;
|
||||
}
|
||||
|
||||
|
||||
public String getMeatType() {
|
||||
return meatType;
|
||||
}
|
||||
|
||||
|
||||
public void setMeatType(String meatType) {
|
||||
this.meatType = meatType;
|
||||
}
|
||||
|
||||
|
||||
public String getMilkType() {
|
||||
return milkType;
|
||||
}
|
||||
|
||||
|
||||
public void setMilkType(String milkType) {
|
||||
this.milkType = milkType;
|
||||
}
|
||||
|
||||
|
||||
public String getBoneType() {
|
||||
return boneType;
|
||||
}
|
||||
|
||||
|
||||
public void setBoneType(String boneType) {
|
||||
this.boneType = boneType;
|
||||
}
|
||||
|
||||
|
||||
public String getHideType() {
|
||||
return hideType;
|
||||
}
|
||||
|
||||
|
||||
public void setHideType(String hideType) {
|
||||
this.hideType = hideType;
|
||||
}
|
||||
|
||||
|
||||
public int getMeatAmount() {
|
||||
return meatAmount;
|
||||
}
|
||||
|
||||
|
||||
public void setMeatAmount(int meatAmount) {
|
||||
this.meatAmount = meatAmount;
|
||||
}
|
||||
|
||||
|
||||
public int getMilkAmount() {
|
||||
return milkAmount;
|
||||
}
|
||||
|
||||
|
||||
public void setMilkAmount(int milkAmount) {
|
||||
this.milkAmount = milkAmount;
|
||||
}
|
||||
|
||||
|
||||
public int getBoneAmount() {
|
||||
return boneAmount;
|
||||
}
|
||||
|
||||
|
||||
public void setBoneAmount(int boneAmount) {
|
||||
this.boneAmount = boneAmount;
|
||||
}
|
||||
|
||||
|
||||
public int getHideAmount() {
|
||||
return hideAmount;
|
||||
}
|
||||
|
||||
|
||||
public void setHideAmount(int hideAmount) {
|
||||
this.hideAmount = hideAmount;
|
||||
}
|
||||
|
||||
|
||||
public void setAttacks(Vector<String> attacks) {
|
||||
this.attacks = attacks;
|
||||
}
|
||||
|
||||
|
||||
public void addCreatureTemplate(String template) {
|
||||
creatureTemplates.add(template);
|
||||
}
|
||||
|
||||
public void addAttack(String attack) {
|
||||
attacks.add(attack);
|
||||
}
|
||||
public boolean isStalker() {
|
||||
return stalker;
|
||||
}
|
||||
|
||||
|
||||
public void setStalker(boolean stalker) {
|
||||
this.stalker = stalker;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
if (dirty)
|
||||
return "*" + templateName;
|
||||
else return templateName;
|
||||
}
|
||||
|
||||
|
||||
public String getTemplateName() {
|
||||
return templateName;
|
||||
}
|
||||
|
||||
|
||||
public void setTemplateName(String templateName) {
|
||||
this.templateName = templateName;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,42 @@
|
||||
package waveTools.msb.resources;
|
||||
|
||||
public class Weapon {
|
||||
private String template;
|
||||
private int weaponType;
|
||||
private float attackSpeed;
|
||||
|
||||
public Weapon(String template, int weaponType, float attackSpeed) {
|
||||
this.template = template;
|
||||
this.weaponType = weaponType;
|
||||
this.attackSpeed = attackSpeed;
|
||||
}
|
||||
|
||||
public String getTemplate() {
|
||||
return template;
|
||||
}
|
||||
|
||||
public void setTemplate(String template) {
|
||||
this.template = template;
|
||||
}
|
||||
|
||||
public int getWeaponType() {
|
||||
return weaponType;
|
||||
}
|
||||
|
||||
public void setWeaponType(int weaponType) {
|
||||
this.weaponType = weaponType;
|
||||
}
|
||||
|
||||
public float getAttackSpeed() {
|
||||
return attackSpeed;
|
||||
}
|
||||
|
||||
public void setAttackSpeed(float attackSpeed) {
|
||||
this.attackSpeed = attackSpeed;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return template + ", " + String.valueOf(weaponType) + ", " + String.valueOf(attackSpeed);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,25 @@
|
||||
package waveTools.msb.resources.enums;
|
||||
|
||||
public enum Difficulty {
|
||||
NORMAL(0), ELITE(1), BOSS(2);
|
||||
|
||||
@SuppressWarnings("unused")
|
||||
private int difficulty;
|
||||
|
||||
private Difficulty(int difficulty) {
|
||||
this.difficulty = difficulty;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
switch(this) {
|
||||
case NORMAL:
|
||||
return "Normal";
|
||||
case ELITE:
|
||||
return "Elite";
|
||||
case BOSS:
|
||||
return "Boss";
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,45 @@
|
||||
package waveTools.msb.resources.enums;
|
||||
|
||||
public enum WeaponType {
|
||||
RIFLE(0), CARBINE(1), PISTOL(2), ONEHANDEDMELEE(4), TWOHANDEDMELEE(5), UNARMED(6), POLEARMMELEE(7), THROWN(8),
|
||||
ONEHANDEDSABER(9), TWOHANDEDSABER(10), POLEARMSABER(11), HEAVYWEAPON(12), FLAMETHROWER(13);
|
||||
|
||||
private int weaponType;
|
||||
|
||||
private WeaponType(int weaponType) {
|
||||
this.weaponType = weaponType;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
switch(this) {
|
||||
case RIFLE:
|
||||
return "Rifle";
|
||||
case CARBINE:
|
||||
return "Carbine";
|
||||
case PISTOL:
|
||||
return "Pistol";
|
||||
case ONEHANDEDMELEE:
|
||||
return "1H - Melee";
|
||||
case TWOHANDEDMELEE:
|
||||
return "2H - Melee";
|
||||
case UNARMED:
|
||||
return "Unarmed";
|
||||
case POLEARMMELEE:
|
||||
return "Polearm - Melee";
|
||||
case THROWN:
|
||||
return "Thrown";
|
||||
case ONEHANDEDSABER:
|
||||
return "1H - Saber";
|
||||
case TWOHANDEDSABER:
|
||||
return "2H - Saber";
|
||||
case POLEARMSABER:
|
||||
return "Polearm - Saber";
|
||||
case HEAVYWEAPON:
|
||||
return "Heavy Weapon";
|
||||
case FLAMETHROWER:
|
||||
return "Flame Thrower";
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user