net.thestump.ghronos.device
Class HardButton

java.lang.Object
  extended bynet.thestump.ghronos.device.HardButton
All Implemented Interfaces:
superwaba.ext.xplat.io.Storable

public class HardButton
extends java.lang.Object
implements superwaba.ext.xplat.io.Storable

Represents the hard buttons of a device.. Handles all hard button events (switching between players and pausing)

Author:
Christopher C. Stump

Constructor Summary
HardButton()
           
 
Method Summary
 void evaluatePress(int key)
           
 byte getID()
           
 superwaba.ext.xplat.io.Storable getInstance()
           
 void loadState(superwaba.ext.xplat.io.DataStream ds)
           
 void reset()
          Resets the hard button to a "game start" status
 void saveState(superwaba.ext.xplat.io.DataStream ds)
           
 void setButtonCount(byte c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HardButton

public HardButton()
Method Detail

reset

public void reset()
Resets the hard button to a "game start" status


setButtonCount

public void setButtonCount(byte c)
Parameters:
c -

evaluatePress

public void evaluatePress(int key)
Parameters:
key - The key field of a waba.ui.KeyEvent
Throws:
BadArgumentException - If there was an internal method call error

getID

public byte getID()
Specified by:
getID in interface superwaba.ext.xplat.io.Storable

getInstance

public superwaba.ext.xplat.io.Storable getInstance()
Specified by:
getInstance in interface superwaba.ext.xplat.io.Storable

loadState

public void loadState(superwaba.ext.xplat.io.DataStream ds)
Specified by:
loadState in interface superwaba.ext.xplat.io.Storable

saveState

public void saveState(superwaba.ext.xplat.io.DataStream ds)
Specified by:
saveState in interface superwaba.ext.xplat.io.Storable


Copyright © 2004 Christopher C. Stump. All Rights Reserved.