|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.samskivert.swing.Controller
com.threerings.crowd.client.PlaceController
com.threerings.whirled.client.SceneController
com.threerings.tudey.client.TudeySceneController
public class TudeySceneController
The basic Tudey scene controller class.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class com.threerings.crowd.client.PlaceController |
|---|
com.threerings.crowd.client.PlaceController.DelegateOp |
| Field Summary |
|---|
| Fields inherited from class com.samskivert.swing.Controller |
|---|
DISPATCHER |
| Constructor Summary | |
|---|---|
TudeySceneController()
|
|
| Method Summary | |
|---|---|
void |
controlledActorAdded(int timestamp,
Actor actor)
Called by the view when we first add our controlled actor. |
void |
controlledActorUpdated(int timestamp,
Actor actor)
Called by the view when we receive an update for our controlled actor. |
void |
controlledSpriteRemoved(long timestamp)
Called by the view when we remove our controlled sprite. |
void |
didLeavePlace(com.threerings.crowd.data.PlaceObject plobj)
|
int |
getControlledId()
Returns the id of the actor that is being controlled. |
Sprite |
getHoverSprite()
Returns a reference to the hover sprite, if any. |
int |
getTargetId()
Returns the id of the actor that the camera should track. |
int |
getTransmitInterval()
Returns the interval at which we transmit our input frames. |
boolean |
isControlledId(int actorId)
Checks whether the specified actor id is that of the controlled target. |
void |
keyPressed(long when,
int key,
float amount)
Called when a "key" (either a real key or a pseudo-key) is pressed. |
void |
keyReleased(long when,
int key)
Called when a "key" is released. |
void |
messageReceived(com.threerings.presents.dobj.MessageEvent event)
|
void |
mouseClicked(MouseEvent event)
Dispatched when a button is clicked within the bounds of the target component. |
void |
mouseDragged(MouseEvent event)
Dispatched when the mouse is moved after a button having been pressed within the bounds of the target component. |
void |
mouseEntered(MouseEvent event)
Dispatched when the mouse enters the bounds of the target component. |
void |
mouseExited(MouseEvent event)
Dispatched when the mouse exits the bounds of the target component. |
void |
mouseMoved(MouseEvent event)
Dispatched when the mouse is moved within the bounds of the target component. |
void |
mousePressed(MouseEvent event)
Dispatched when a button is pressed within the bounds of the target component. |
void |
mouseReleased(MouseEvent event)
Dispatched when a button is released after having been pressed within the bounds of the target component. |
void |
mouseWheeled(MouseEvent event)
Dispatched when the mouse wheel is rotated within the bounds of the target component. |
void |
sceneDeltaReceived(SceneDeltaEvent event)
Called when a scene delta has been received. |
void |
submitRequest(Sprite source,
String name)
Submits a named request to the server. |
void |
tick(float elapsed)
Updates the state of this object based on the elapsed time in seconds. |
void |
wasAdded()
|
void |
wasRemoved()
|
void |
willEnterPlace(com.threerings.crowd.data.PlaceObject plobj)
|
| Methods inherited from class com.threerings.whirled.client.SceneController |
|---|
init |
| Methods inherited from class com.threerings.crowd.client.PlaceController |
|---|
getPlaceConfig, getPlaceView, handleAction, mayLeavePlace |
| Methods inherited from class com.samskivert.swing.Controller |
|---|
actionPerformed, configureAction, createActionButton, handleAction, handleAction, handleAction, postAction, postAction, postAction, setControlledPanel |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TudeySceneController()
| Method Detail |
|---|
public int getTransmitInterval()
public int getTargetId()
public int getControlledId()
public boolean isControlledId(int actorId)
public Sprite getHoverSprite()
public void controlledActorAdded(int timestamp,
Actor actor)
public void controlledActorUpdated(int timestamp,
Actor actor)
public void controlledSpriteRemoved(long timestamp)
public void submitRequest(Sprite source,
String name)
public void sceneDeltaReceived(SceneDeltaEvent event)
SceneDeltaListener
sceneDeltaReceived in interface SceneDeltaListenerpublic void messageReceived(com.threerings.presents.dobj.MessageEvent event)
messageReceived in interface com.threerings.presents.dobj.MessageListener
public void keyPressed(long when,
int key,
float amount)
PseudoKeys.Observer
keyPressed in interface PseudoKeys.Observer
public void keyReleased(long when,
int key)
PseudoKeys.Observer
keyReleased in interface PseudoKeys.Observerpublic void mousePressed(MouseEvent event)
MouseListener
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent event)
MouseListener
mouseReleased in interface MouseListenerpublic void mouseClicked(MouseEvent event)
MouseListener
mouseClicked in interface MouseListenerpublic void mouseEntered(MouseEvent event)
MouseListener
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent event)
MouseListener
mouseExited in interface MouseListenerpublic void mouseMoved(MouseEvent event)
MouseMotionListener
mouseMoved in interface MouseMotionListenerpublic void mouseDragged(MouseEvent event)
MouseMotionListener
mouseDragged in interface MouseMotionListenerpublic void mouseWheeled(MouseEvent event)
MouseWheelListener
mouseWheeled in interface MouseWheelListenerpublic void tick(float elapsed)
Tickable
tick in interface Tickablepublic void wasAdded()
wasAdded in class Controllerpublic void wasRemoved()
wasRemoved in class Controllerpublic void willEnterPlace(com.threerings.crowd.data.PlaceObject plobj)
willEnterPlace in class com.threerings.whirled.client.SceneControllerpublic void didLeavePlace(com.threerings.crowd.data.PlaceObject plobj)
didLeavePlace in class com.threerings.whirled.client.SceneController
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||