Package it.timehero.actors

Source Code of it.timehero.actors.Gigi

/**
* TimeHero - http://timehero.sf.net
*
* @license See LICENSE
*/
package it.timehero.actors;

import it.timehero.agent.SimpleJasonAgent;
import it.timehero.entities.Entity;
import it.timehero.rules.Scheda;
import it.timehero.util.Helper;

import org.newdawn.slick.SlickException;

/**
* Gigi � un particolare tipo di Actor controllato dal giocatore ed � il nostro
* eroe!
*
* @see Entity
* @author AM
*/
public class Gigi implements Actor {

  private Entity entity;

  private String ID;

  private Scheda scheda;

  private String stato;

  /**
   * Costruttore di gigi (overload dell'entit�)
   *
   * @param x -
   *            posizione x iniziale
   * @param y -
   *            posizione y iniziale
   * @param percorsoSpriteSheet
   * @param dimSHX
   * @param dimSHY
   * @param rigaUp
   * @param rigaDown
   * @param rigaRight
   * @param rigaLeft
   * @param startNumAnimazioni
   * @param numAnimazioni
   * @throws SlickException
   */
  public Gigi() {
    try {
      entity = new Entity(29, 10, "data/grafica/hero3.gif", 25, 32, 0, 2,
          1, 3, 0, 3, 0, 2, 1, 3, 3, 5);
    } catch (SlickException e) {
      e.printStackTrace();
    }
    setID(Helper.GIGI);
    setScheda(new Scheda(new Integer(8), new Integer(6)));
  }

  /**
   * Gestisce collisioni con altre entit�
   */
  public void collidedWith(Entity other) {
  }

  public SimpleJasonAgent getAgent() {
    return null;
  }

  public Entity getEntity() {
    return entity;
  }

  /**
   * @return the iD
   */
  public String getID() {
    return ID;
  }

  public Scheda getScheda() {
    return scheda;
  }

  public String getStato() {
    return stato;
  }

  /**
   * @deprecated
   */
  public void setAgent(SimpleJasonAgent agent) {
  }

  /**
   * @deprecated
   */
  public void setEntity(Entity entity) {
  }

  /**
   * @param id
   *            the iD to set
   */
  public void setID(String id) {
    ID = id;
  }

  public void setScheda(Scheda scheda) {
    this.scheda = scheda;
  }

  public void setStato(String stato) {
    this.stato = stato;
  }

}
TOP

Related Classes of it.timehero.actors.Gigi

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.