Package com.ewgenius.xonix.entities

Source Code of com.ewgenius.xonix.entities.Entity

package com.ewgenius.xonix.entities;

import com.ewgenius.xonix.levels.Level;
import org.newdawn.slick.GameContainer;
import org.newdawn.slick.Graphics;
import org.newdawn.slick.geom.Vector2f;
import org.newdawn.slick.state.StateBasedGame;

/**
* Created with IntelliJ IDEA.
* User: ewgenius
* Date: 25.07.13
* Time: 19:21
* To change this template use File | Settings | File Templates.
*/
public class Entity {
    protected Vector2f position;
    protected Vector2f speed;
    protected Level currentLevel;

    public Entity() {
        position = new Vector2f();
        speed = new Vector2f();
    }

    public Vector2f getPosition() {
        return position;
    }

    public Vector2f getSpeed() {
        return speed;
    }

    public void update(GameContainer container, StateBasedGame game, int deltaTime) {
        currentLevel = (Level) game.getCurrentState();
    }

    public void render(GameContainer container, Graphics graphics) {
    }
}
TOP

Related Classes of com.ewgenius.xonix.entities.Entity

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.