Added a Gaia player and added some random stones
This commit is contained in:
parent
397fb7ebd0
commit
65747bd267
40 changed files with 1316 additions and 45 deletions
50
src/ei/game/scene/map/MapEntity.java
Normal file
50
src/ei/game/scene/map/MapEntity.java
Normal file
|
|
@ -0,0 +1,50 @@
|
|||
package ei.game.scene.map;
|
||||
|
||||
import ei.engine.math.Vector2f;
|
||||
import ei.engine.math.Vector2i;
|
||||
import ei.engine.scene.Entity;
|
||||
import ei.game.gamestate.InGameState;
|
||||
import ei.game.player.Player;
|
||||
import ei.game.scene.SelectBox;
|
||||
import ei.game.scene.units.Unit;
|
||||
import ei.game.scene.weapons.Weapon;
|
||||
|
||||
public abstract class MapEntity extends Unit{
|
||||
|
||||
public MapEntity(int l, Vector2i pos, Player p) {
|
||||
super(l, pos, p);
|
||||
}
|
||||
|
||||
public void update() {
|
||||
if(getLife()<=0) {
|
||||
removeUnit();
|
||||
}
|
||||
}
|
||||
|
||||
protected void move(int x, int y, boolean b) {}
|
||||
|
||||
public void setSelected(boolean b) {}
|
||||
|
||||
public void setMouseOver(boolean b) {}
|
||||
|
||||
@Override
|
||||
public float getVelocity() {
|
||||
return 0;
|
||||
}
|
||||
|
||||
@Override
|
||||
public Weapon getWeapon(Vector2f startPos) {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void destroyed() {
|
||||
// TODO Auto-generated method stub
|
||||
|
||||
}
|
||||
|
||||
@Override
|
||||
protected SelectBox getSelection() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue