Commit in batoru/src/games/batoru/entities on MAIN | |||
TurretClass.java | 1.1 removed | ||
TreeClass.java | 1.1 removed | ||
PlayerClass.java | 1.1 removed | ||
Player.java | 1.1 removed | ||
BulletClass.java | 1.1 removed | ||
Turret.java | 1.1 removed |
EntityClasses were needlessly complicating things.
diff -N TurretClass.java --- TurretClass.java 14 Nov 2003 00:08:47 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,25 +0,0 @@
-/* - * Created on 19-mrt-2003 - */ -package games.batoru.entities; - -import javax.vecmath.*; - -import org.codejive.world3d.*; - -/** - * @author Tako - */ -public class TurretClass extends EntityClass { - - public TurretClass() { - super("turret", true, true); - } - - public Entity createTurret(Universe _universe, Point3f _position) { - Entity e = new TurretEntity(_universe, this, (Point3f)_position.clone()); - e.updateState(); - _universe.addLiveEntity((LiveEntity)e); - return e; - } -}
\ No newline at end of filebatoru/src/games/batoru/entities
TreeClass.java removed after 1.1diff -N TreeClass.java --- TreeClass.java 14 Nov 2003 00:08:47 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,24 +0,0 @@-/* - * Created on 18-mrt-2003 - */ -package games.batoru.entities; - -import javax.vecmath.*; - -import org.codejive.world3d.*; - -/** - * @author Tako - */ -public class TreeClass extends EntityClass { - - public TreeClass() { - super("tree", false, true); - } - - public Entity createEntity(Universe _universe, Point3f _position) { - Entity e = new Entity(_universe, this, (Point3f)_position.clone(), 0.0f); - e.updateState(); - return e; - } -}batoru/src/games/batoru/entities
PlayerClass.java removed after 1.1diff -N PlayerClass.java --- PlayerClass.java 14 Nov 2003 00:08:47 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,26 +0,0 @@-/* - * Created on 24-mrt-2003 - */ -package games.batoru.entities; - -import javax.vecmath.*; - -import org.codejive.world3d.*; - -/** - * @author tako - */ -public class PlayerClass extends EntityClass { - public PlayerClass() { - super("player", true, true); - } - - public Entity createPlayer(Universe _universe, Point3f _position, Vector3f _orientation, float _fEyeHeight) { - Entity e = new PlayerEntity(_universe, this, _position, _orientation, _fEyeHeight); - e.updateState(); - if (e instanceof LiveEntity) { - _universe.addLiveEntity((LiveEntity)e); - } - return e; - } -}batoru/src/games/batoru/entities
Player.java removed after 1.1diff -N Player.java --- Player.java 14 Nov 2003 00:08:47 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,22 +0,0 @@-/* - * Created on Sep 30, 2003 - */ -package games.batoru.entities; - -/** - * @author Tako - */ -public interface Player { - public static final int LOC_IDLE = 0; - public static final int LOC_WALKING = 1; - public static final int LOC_RUNNING = 2; - public static final int LOC_JUMPING = 3; - public static final int LOC_LANDING = 4; - - public static final int ACT_IDLE = 0; - public static final int ACT_SHOOTING = 1; - - public float getEyeHeight(); - public void setLocomotionState(int _nState); - public void setActionState(int _nState); -}batoru/src/games/batoru/entities
BulletClass.java removed after 1.1diff -N BulletClass.java --- BulletClass.java 14 Nov 2003 00:08:47 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,45 +0,0 @@-/* - * Created on 19-mrt-2003 - */ -package games.batoru.entities; - -import games.batoru.shapes.BulletShape; - -import javax.vecmath.*; - -import org.codejive.world3d.*; -import org.codejive.utils4gl.Vectors; - -/** - * @author Tako - */ -public class BulletClass extends EntityClass { - - public BulletClass() { - super("bullet", false, false); - } - - public Entity createEntity(Universe _universe, Point3f _position, Vector3f _direction, float _fSpeed, float _fLifetime) { - Entity e = new Entity(_universe, this, new Point3f(_position), Vectors.getScaledVector(_direction, _fSpeed), 0.0f); - e.setLifetime(_fLifetime); - e.updateState(); - if (e instanceof LiveEntity) { - _universe.addLiveEntity((LiveEntity)e); - } - return e; - } - - public Shape createShape(Universe _universe, Point3f _position, Vector3f _direction, float _fSpeed, float _fLifetime) { - Shape e = new BulletShape(); - e.setUniverse(_universe); - e.setPosition(_position); - e.setImpulse(Vectors.getScaledVector(_direction, _fSpeed)); - e.setLifetime(_fLifetime); - e.setGravityFactor(0.0f); - e.updateState(); - if (e instanceof LiveEntity) { - _universe.addLiveEntity((LiveEntity)e); - } - return e; - } -}\ No newline at end of filebatoru/src/games/batoru/entities
Turret.java removed after 1.1diff -N Turret.java --- Turret.java 14 Nov 2003 00:08:47 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,13 +0,0 @@-/* - * Created on Sep 30, 2003 - */ -package games.batoru.entities; - -import javax.vecmath.Vector3f; - -/** - * @author Tako - */ -public interface Turret { - public Vector3f getBarrelOrientation(); -}CVSspam 0.2.8 Other related posts:
- » [gui4gl-commits] [CVS batoru] EntityClasses were needlessly complicating things.
- » [gui4gl-commits] [CVS batoru] EntityClasses were needlessly complicating things.