Class Enemy1
java.lang.Object
Actor
QuantumObject
Spaceship
AIControlledSpaceship
Enemy1
public class Enemy1
- extends AIControlledSpaceship
A smaller, lighter, faster enemy.
| Fields inherited from class Spaceship |
angled_guns, blink, blink_file, GUN_ANGLE, GUN_DISTANCE, guns, hitpoints, level, max_blink, max_hitpoints, n_guns, N_GUNS, side |
|
Constructor Summary |
Enemy1(int the_level)
|
|
Method Summary |
void |
act()
A day in the life of a quantum object:
1. |
void |
setSide(int the_side)
|
protected void |
setupImages()
Sort-of abstract method available for overriddance [sic]. |
| Methods inherited from class Spaceship |
addGun, addHitpoints, angle, doBlink, fire, getBlinkFile, getHitpoints, getLevel, getMaxBlink, getMaxHitpoints, getNumberOfGuns, getSide, hit, removeGun, removeHitpoints, reorderGuns, setAngledGuns, setBlinkFile, setHitpoints, setLevel, setMaxBlink, setMaxHitpoints |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
BASE_HP
public static final int BASE_HP
- See Also:
- Constant Field Values
BASE_SPEED
public static final double BASE_SPEED
- See Also:
- Constant Field Values
SPEED_DEVIATION
public static final double SPEED_DEVIATION
- See Also:
- Constant Field Values
Enemy1
public Enemy1(int the_level)
setSide
public void setSide(int the_side)
- Overrides:
setSide in class Spaceship
setupImages
protected void setupImages()
- Description copied from class:
Spaceship
- Sort-of abstract method available for overriddance [sic]. Subclasses can implement this to set their sprite
(back) to its default value. It's called whenever a reset to the default sprite is needed, e. g. after
the blinking animation.
- Overrides:
setupImages in class Spaceship
- See Also:
Spaceship.doBlink()
act
public void act()
- Description copied from class:
QuantumObject
- A day in the life of a quantum object:
1. Maybe commit suicide (i. e. destroys itself when destroysOnNextTurn is true)
2. Do quantum object interactions with intersecting objects
3. -- Err... are you missing point 3?
- Overrides:
act in class AIControlledSpaceship