Package it.marteEngine.test.zombieEscape

Source Code of it.marteEngine.test.zombieEscape.Zombie

package it.marteEngine.test.zombieEscape;

import it.marteEngine.entity.Entity;
import it.marteEngine.test.zombieEscape.state.AlertState;
import it.marteEngine.test.zombieEscape.state.MoveState;
import it.marteEngine.test.zombieEscape.state.WaitState;

import org.newdawn.slick.Image;

public class Zombie extends Entity {

  public static final String ZOMBIE = "zombie";

  public Zombie(float x, float y, Image image) {
    super(x, y, image);

    setHitBox(0, 0, image.getWidth(), image.getHeight());

    addType(ZOMBIE);

    stateManager.add(new WaitState(this));
    stateManager.add(new AlertState(this));
    stateManager.add(new MoveState(this));

  }

}
TOP

Related Classes of it.marteEngine.test.zombieEscape.Zombie

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.