|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.awt.event.KeyAdapter components.GameObject components.Flipper
public abstract class Flipper
A Flipper is a mutable object that represents a flipper in the game A flipper
homeState
: boolean //says whether the Flipper is down or up
currentAngle
: Angle //the current angle of the Flipper
Field Summary |
---|
Fields inherited from class components.GameObject |
---|
center, coRef, delay, depth, frozen, g, height, name, orientAngle, orientVect, selected, shape, targets, velocity, visible, width |
Constructor Summary | |
---|---|
Flipper(Map<String,String> props,
GameSpace gs)
|
|
Flipper(Vect3 tlf,
Vect3 center,
Vect3 ov,
Angle oa,
String name,
GameSpace g)
|
Method Summary | |
---|---|
void |
actionPerformed(ActionEvent e)
This is overriden in objects where something actually occurs when triggered, for example, Flippers |
protected Map<String,String> |
defaults()
default coref for flippers is 0.95. |
Vect3 |
getAngularVelocity()
|
abstract Vect3 |
getDiff()
Difference between TLF and center. |
GameObjectClassification |
getGOClassification()
Requires that all obejects return their own classification |
Set<Vect3> |
getOccupiedPositions()
|
Angle |
getOrientAngle()
|
protected Shape |
shape()
the Shape of the object |
void |
stepFrame()
This is overriden in mobile objects |
Methods inherited from class components.GameObject |
---|
action, addTarget, clearTargets, equals, getBasicPropertyMap, getBounds, getCenter, getCoRef, getDelay, getDepth, getGameSpace, getHeight, getName, getNonRoundedTLF, getOrientVector, getRoundedTLF, getShape, getTargets, getTLF, getVelocity, getWidth, hashCode, isFrozen, isSelected, isVisible, onCollision, putInVect3, putInVect3, removeTarget, setCenter, setCoRef, setDelay, setDepth, setFrozen, setHeight, setOrientAngle, setOrientVect, setProperty, setSelected, setTLF, setVelocity, setVisible, setWidth, toString |
Methods inherited from class java.awt.event.KeyAdapter |
---|
keyPressed, keyReleased, keyTyped |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Flipper(Vect3 tlf, Vect3 center, Vect3 ov, Angle oa, String name, GameSpace g)
public Flipper(Map<String,String> props, GameSpace gs)
Method Detail |
---|
public abstract Vect3 getDiff()
GameObject
getDiff
in class GameObject
protected Shape shape()
GameObject
shape
in class GameObject
protected Map<String,String> defaults()
defaults
in class GameObject
public Angle getOrientAngle()
getOrientAngle
in class GameObject
public void actionPerformed(ActionEvent e)
GameObject
actionPerformed
in interface ActionListener
actionPerformed
in class GameObject
public void stepFrame()
GameObject
stepFrame
in class GameObject
public GameObjectClassification getGOClassification()
GameObject
getGOClassification
in class GameObject
public Set<Vect3> getOccupiedPositions()
getOccupiedPositions
in class GameObject
public Vect3 getAngularVelocity()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |