@@ -0,0 +1,1860 @@
+package solace.game;%0A%0Aimport org.apache.commons.lang3.builder.EqualsBuilder;%0Aimport org.apache.commons.lang3.builder.HashCodeBuilder;%0Aimport solace.game.effect.PlayerEffect;%0Aimport solace.game.effect.ScriptedPlayerEffect;%0A%0A/**%0A * Represents a passive ability in the game world.%0A * @author Ryan Sandor Richards%0A */%0Apublic class Passive %7B%0A  private String name = %22%22;%0A  private String label = %22%22;%0A  private PlayerEffect effect = new ScriptedPlayerEffect();%0A%0A  /**%0A   * Creates a new passive with the given name.%0A   * @param name Name of the passive.%0A   */%0A  public Passive(String name) %7B%0A    setName(name);%0A  %7D%0A%0A  /**%0A   * @return The name of the passive.%0A   */%0A  public String getName() %7B%0A    return name;%0A  %7D%0A%0A  /**%0A   * Sets the name for the passive.%0A   * @param name The name to set for the passive.%0A   */%0A  public void setName(String name) %7B%0A    this.name = name;%0A  %7D%0A%0A  /**%0A   * @return The game play display label for the passive.%0A   */%0A  public String getLabel() %7B%0A    return label;%0A  %7D%0A%0A  /**%0A   * Sets the game play display label for the passive.%0A   * @param label Label to set for the passive.%0A   */%0A  public void setLabel(String label) %7B%0A    this.label = label;%0A  %7D%0A%0A  /**%0A   * @return The player effect for this passive.%0A   */%0A  public PlayerEffect getEffect() %7B%0A    return effect;%0A  %7D%0A%0A  /**%0A   * Sets the underlying player effect for this passive.%0A   * @param effect The effect to set.%0A   */%0A  public void setEffect(PlayerEffect effect) %7B%0A    this.effect = effect;%0A  %7D%0A%0A  @Override%0A  public int hashCode() %7B%0A    return new HashCodeBuilder().append(name).toHashCode();%0A  %7D%0A%0A  @Override%0A  public boolean equals(Object obj) %7B%0A    if (!(obj instanceof Passive)) %7B%0A      return false;%0A    %7D else if (obj == this) %7B%0A      return true;%0A    %7D%0A    Passive other = (Passive)obj;%0A    return new EqualsBuilder().append(name, other.getName()).isEquals();%0A  %7D%0A%7D%0A

Add Passive Model