All Downloads are FREE. Search and download functionalities are using the official Maven repository.

enterprises.orbital.impl.evexmlapi.shared.ApiKill Maven / Gradle / Ivy

There is a newer version: 2.4.0
Show newest version
package enterprises.orbital.impl.evexmlapi.shared;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

import enterprises.orbital.evexmlapi.shared.IKill;
import enterprises.orbital.evexmlapi.shared.IKillAttacker;
import enterprises.orbital.evexmlapi.shared.IKillItem;

public class ApiKill implements IKill {
  private long                        killID;
  private long                        solarSystemID;
  private Date                        killTime;
  private int                         moonID;
  private ApiKillVictim               victim;
  private final List attackers = new ArrayList();
  private final List     items     = new ArrayList();

  @Override
  public long getKillID() {
    return killID;
  }

  public void setKillID(long killID) {
    this.killID = killID;
  }

  @Override
  public long getSolarSystemID() {
    return solarSystemID;
  }

  public void setSolarSystemID(long solarSystemID) {
    this.solarSystemID = solarSystemID;
  }

  @Override
  public Date getKillTime() {
    return killTime;
  }

  public void setKillTime(Date killTime) {
    this.killTime = killTime;
  }

  @Override
  public int getMoonID() {
    return moonID;
  }

  public void setMoonID(int moonID) {
    this.moonID = moonID;
  }

  @Override
  public ApiKillVictim getVictim() {
    return victim;
  }

  public void setVictim(ApiKillVictim victim) {
    this.victim = victim;
  }

  public void addKillDetail(ApiKillAttacker attacker) {
    attackers.add(attacker);
  }

  @Override
  public List getAttackers() {
    List result = new ArrayList();
    result.addAll(attackers);
    return result;
  }

  public void addKillDetail(ApiKillItem item) {
    items.add(item);
  }

  @Override
  public List getItems() {
    List result = new ArrayList();
    result.addAll(items);
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy