CharacterInfo.java :  » Java-2D » tda366-streetjanken » view » impl » Java Open Source

Java Open Source » Java 2D » tda366 streetjanken 
tda366 streetjanken » view » impl » CharacterInfo.java
package view.impl;

public class CharacterInfo {
  private static int nextId = 0;
  
  private String name;
  private int order;
  private int id;
  
  private String charImage;
  private String charSelected;
  private String charChosen;
  
  public CharacterInfo() {
    id = nextId++;
  }
  
  public CharacterInfo setName(String name) {
    this.name = name;
    return this;
  }
  
  public CharacterInfo setOrder(int order) {
    this.order = order;
    return this;
  }
  
  public CharacterInfo setCharImage(String charImage) {
    this.charImage = charImage;
    return this;
  }
  
  public CharacterInfo setCharSelected(String charSelected) {
    this.charSelected = charSelected;
    return this;
  }
  
  public CharacterInfo setCharChosen(String charChosen) {
    this.charChosen = charChosen;
    return this;
  }

  /**
   * @return the nextId
   */
  public static int getNextId() {
    return nextId;
  }

  /**
   * @return the name
   */
  public String getName() {
    return name;
  }

  /**
   * @return the order
   */
  public int getOrder() {
    return order;
  }

  /**
   * @return the id
   */
  public int getId() {
    return id;
  }

  /**
   * @return the charImage
   */
  public String getCharImage() {
    return charImage;
  }

  /**
   * @return the charSelected
   */
  public String getCharSelected() {
    return charSelected;
  }

  /**
   * @return the charChosen
   */
  public String getCharChosen() {
    return charChosen;
  }
  
  
}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.