Added som thing so to make the game network compatible
This commit is contained in:
parent
cbd673472f
commit
380492de56
32 changed files with 368 additions and 42 deletions
|
|
@ -4,6 +4,7 @@ import ei.engine.math.Vector2f;
|
|||
import ei.engine.math.Vector2i;
|
||||
import ei.engine.scene.Sprite;
|
||||
import ei.engine.sound.Sound;
|
||||
import ei.game.network.entities.NetworkUnit;
|
||||
import ei.game.player.Player;
|
||||
import ei.game.scene.SelectBox;
|
||||
import ei.game.scene.weapons.Explotion;
|
||||
|
|
@ -16,7 +17,7 @@ import ei.game.scene.weapons.WeaponHandler;
|
|||
* @author Jesper Lundin
|
||||
*
|
||||
*/
|
||||
public class APU extends Unit{
|
||||
public class APU extends NetworkUnit{
|
||||
private SelectBox selectionBox;
|
||||
private Sprite sprite;
|
||||
|
||||
|
|
@ -34,11 +35,14 @@ public class APU extends Unit{
|
|||
}
|
||||
|
||||
public void init(){
|
||||
setBuildTime(200);
|
||||
setPrice(200);
|
||||
}
|
||||
|
||||
public void initGraphics(){
|
||||
sprite = new Sprite("APU", "data/units/apu/apu0000.png");
|
||||
sprite.setSize(new Vector2f(40,40));
|
||||
getNode().add(sprite);
|
||||
setBuildTime(200);
|
||||
setPrice(200);
|
||||
|
||||
gunSound = new Sound("gunSound", "data/sounds/machinegun.wav");
|
||||
moveSound = new Sound[2];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue