|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--netwar.game.GameObject
|
+--netwar.game.Unit
|
+--netwar.game.unit.UnitDefault2
Temporary Unit class. This will be removed in Iteration 2, when the real Units are created. This is a moderate speed, fragile, long range combatant. It has low armor, and uses a slow fire weapon (which is good against high armor targets).
| Fields inherited from class netwar.game.Unit |
f, health, reserved, resF, resX, resY |
| Fields inherited from class netwar.game.GameObject |
action, firstSSMDS, frame, GameObjects, goalX, goalY, mode, myID, myPlayer, reload, target, targetSSMDS, vr, x, y |
| Constructor Summary | |
UnitDefault2()
Constuctor. |
|
| Method Summary | |
protected void |
animateDie()
Unit default2 dies by shrinking into a point. |
protected void |
animateMake()
Unit default2 is created by the fin extending up from the black triangle. |
protected void |
animateMove()
Unit default2 moves forward by sliding. |
protected void |
animateRotateLeft()
Unit default2 rotates left by sliding. |
protected void |
animateRotateRight()
Unit default2 rotates right by sliding. |
protected int |
armor()
Unit default2 has an armor rating of 3 |
protected void |
createVectors()
Initialize the Point3Ds used for this Base. |
void |
draw(GameViewer v)
Unit default 2 is drawn as two triangles. |
protected boolean |
fire()
Unit default2 fires a ProjectileDefault2. |
int |
followRange()
Unit default2 pursues to a range of 8 hexes. |
protected int |
framesToDie()
Unit default2 uses 10 frames to display a death scene. |
protected int |
framesToMake()
Unit default2 requires 10 frames to be created. |
protected int |
framesToMove()
Unit default2 requires 10 frames to move forward one hex. |
protected int |
framesToRotate()
Unit default2 requires 6 frames to rotate one hex-side. |
float |
getHeight()
Unit default2 is 5 units tall. |
float |
getWidth()
Unit default2 is 5 units wide. |
protected int |
maxHealth()
Unit default2 has a maximum of 120 health. |
int |
weaponDelay()
Unit default2 must wait 20 frames between shots. |
float |
weaponRangeSquared()
Unit default2 has a weapon range of 200 units, or 10 hexes. |
| Methods inherited from class netwar.game.Unit |
aim, bestDirection, confirmSubPlan, damageable, isDead, param, recieveDamage, setGoal, setGoal, setGoal, think, update |
| Methods inherited from class netwar.game.GameObject |
center, getID, getMinimapColor, getObjectWithID, getPlayer, locate, newGameObject, removeMe, scan, scanRangeSquared, updateAll |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public UnitDefault2()
| Method Detail |
protected int framesToMove()
framesToMove in class Unitprotected int framesToRotate()
framesToRotate in class Unitprotected int framesToMake()
framesToMake in class GameObjectprotected int framesToDie()
framesToDie in class GameObjectprotected void createVectors()
GameObjectcreateVectors in class GameObjectpublic void draw(GameViewer v)
draw in class GameObjectnetwar.game.GameObjectv - The GameViewer which will display this GameObject.HexViewerprotected void animateMove()
animateMove in class Unitprotected void animateRotateLeft()
animateRotateLeft in class Unitprotected void animateRotateRight()
animateRotateRight in class Unitprotected void animateMake()
animateMake in class GameObjectprotected void animateDie()
animateDie in class GameObjectpublic float getHeight()
getHeight in class GameObjectpublic float getWidth()
getWidth in class GameObjectpublic float weaponRangeSquared()
weaponRangeSquared in class GameObjectpublic int followRange()
followRange in class Unitpublic int weaponDelay()
weaponDelay in class GameObjectprotected boolean fire()
fire in class GameObjectnetwar.game.GameObjectprotected int maxHealth()
maxHealth in class Unitprotected int armor()
armor in class Unit
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||