com.tootsville.user
Class TooterShooter

java.lang.Object
  extended by com.tootsville.user.TooterShooter
All Implemented Interfaces:
Serializable, CastsToJSON

public class TooterShooter
extends Object
implements CastsToJSON, Serializable

WRITEME: The documentation for this type (TooterShooter) is incomplete. (brpocock@star-hope.org, Jan 8, 2010)

Author:
brpocock@star-hope.org
See Also:
Serialized Form

Field Summary
private  int ammoCost
          The number of ammo units expended per shot
private  double bulletSpeed
          The rate at which the bullet moves, in px/s
private  String bulletURL
          The URL of the bullet artwork
private  Colour colour
          If the bullet is colourised generally, the colour value to be applied to it.
private  int initialAmmo
          The amount of ammunition granted for equipping this gun
private  boolean isRotatedShot
          If true, the bullet artwork is rotated relative to the angle of travel
private  int maxAmmo
          WRITEME: document this field (brpocock@star-hope.org, Jan 8, 2010) maxAmmo (TooterShooter)
private  int maxShots
          The maximum number of simultaneous bullets to be traveling
private  int myID
          WRITEME: document this field (brpocock@star-hope.org, Jan 8, 2010) myID (TooterShooter)
private  String playerParticleURL
          WRITEME: document this field (brpocock@star-hope.org, Jan 8, 2010) playerParticleURL (TooterShooter)
private  String playerSoundURL
          WRITEME: document this field (brpocock@star-hope.org, Jan 8, 2010) playerSoundURL (TooterShooter)
private static long serialVersionUID
          Java serialisation unique ID
private  int shotOffsetX
          WRITEME: document this field (brpocock@star-hope.org, Jan 8, 2010) shotOffsetX (TooterShooter)
private  int shotOffsetY
          WRITEME: document this field (brpocock@star-hope.org, Jan 8, 2010) shotOffsetY (TooterShooter)
private  double shotRange
          WRITEME: document this field (brpocock@star-hope.org, Jan 8, 2010) shotRange (TooterShooter)
private  double shotRate
          WRITEME: document this field (brpocock@star-hope.org, Jan 8, 2010) shotRate (TooterShooter)
private  String targetParticleURL
          WRITEME: document this field (brpocock@star-hope.org, Jan 8, 2010) targetParticleURL (TooterShooter)
private  String targetSoundURL
          WRITEME: document this field (brpocock@star-hope.org, Jan 8, 2010) targetSoundURL (TooterShooter)
 
Constructor Summary
TooterShooter(ResultSet rs)
          WRITEME
 
Method Summary
private  int getAmmoCost()
          WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)
private  double getBulletSpeed()
          WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)
private  String getBulletURL()
          WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)
private  Colour getColor()
          WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)
 Colour getColour()
           
 int getID()
          WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)
private  int getInitialAmmo()
          WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)
private  int getMaxAmmo()
          WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)
private  int getMaxShots()
          WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)
 String getPlayerParticleURL()
           
private  String getPlayerParticuleURL()
          WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)
private  String getPlayerSoundURL()
          WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)
private  int getShotOffsetX()
          WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)
private  int getShotOffsetY()
          WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)
private  double getShotRange()
          WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)
private  double getShotRate()
          WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)
private  String getTargetParticleURL()
          WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)
private  String getTargetSoundURL()
          WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)
private  boolean hasColour()
          WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)
private  boolean isRotatedShot()
          WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)
 void set(org.json.JSONObject o)
          This is an overriding method.
 void setAmmoCost(int ammoUsedPerShot)
           
 void setBulletSpeed(double newBulletSpeed)
           
 void setBulletURL(String newBulletURL)
           
 void setColour(Colour newColour)
           
 void setInitialAmmo(int newInitialAmmo)
           
 void setMaxAmmo(int newMaxAmmo)
           
 void setMaxShots(int newMaxShots)
           
 void setPlayerParticleURL(String newPlayerParticleURL)
           
 void setPlayerSoundURL(String newPlayerSoundURL)
           
 void setRotatedShot(boolean newIsRotatedShot)
           
 void setShotOffsetX(int newShotOffetX)
           
 void setShotOffsetY(int newShotOffsetY)
           
 void setShotRange(double newShotRange)
           
 void setShotRate(double newShotRate)
           
 void setTargetParticleURL(String newTargetParticleURL)
           
 void setTargetSoundURL(String newTargetSoundURL)
           
 org.json.JSONObject toJSON()
          This is an overriding method.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Java serialisation unique ID

See Also:
Constant Field Values

ammoCost

private int ammoCost
The number of ammo units expended per shot


bulletSpeed

private double bulletSpeed
The rate at which the bullet moves, in px/s


bulletURL

private String bulletURL
The URL of the bullet artwork


colour

private Colour colour
If the bullet is colourised generally, the colour value to be applied to it. This can be null.


initialAmmo

private int initialAmmo
The amount of ammunition granted for equipping this gun


isRotatedShot

private boolean isRotatedShot
If true, the bullet artwork is rotated relative to the angle of travel


maxAmmo

private int maxAmmo
WRITEME: document this field (brpocock@star-hope.org, Jan 8, 2010) maxAmmo (TooterShooter)


maxShots

private int maxShots
The maximum number of simultaneous bullets to be traveling


myID

private int myID
WRITEME: document this field (brpocock@star-hope.org, Jan 8, 2010) myID (TooterShooter)


playerParticleURL

private String playerParticleURL
WRITEME: document this field (brpocock@star-hope.org, Jan 8, 2010) playerParticleURL (TooterShooter)


playerSoundURL

private String playerSoundURL
WRITEME: document this field (brpocock@star-hope.org, Jan 8, 2010) playerSoundURL (TooterShooter)


shotOffsetX

private int shotOffsetX
WRITEME: document this field (brpocock@star-hope.org, Jan 8, 2010) shotOffsetX (TooterShooter)


shotOffsetY

private int shotOffsetY
WRITEME: document this field (brpocock@star-hope.org, Jan 8, 2010) shotOffsetY (TooterShooter)


shotRange

private double shotRange
WRITEME: document this field (brpocock@star-hope.org, Jan 8, 2010) shotRange (TooterShooter)


shotRate

private double shotRate
WRITEME: document this field (brpocock@star-hope.org, Jan 8, 2010) shotRate (TooterShooter)


targetParticleURL

private String targetParticleURL
WRITEME: document this field (brpocock@star-hope.org, Jan 8, 2010) targetParticleURL (TooterShooter)


targetSoundURL

private String targetSoundURL
WRITEME: document this field (brpocock@star-hope.org, Jan 8, 2010) targetSoundURL (TooterShooter)

Constructor Detail

TooterShooter

TooterShooter(ResultSet rs)
WRITEME

Parameters:
rs - WRITEME
Method Detail

getAmmoCost

private int getAmmoCost()
WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)

Returns:
the number of ammo units expended for each shot

getBulletSpeed

private double getBulletSpeed()
WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)

Returns:
px/s

getBulletURL

private String getBulletURL()
WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)

Returns:
WRITEME

getColor

private Colour getColor()
WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)

Returns:
WRITEME

getColour

public Colour getColour()
Returns:
the colour

getID

public int getID()
WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)

Returns:
WRITEME

getInitialAmmo

private int getInitialAmmo()
WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)

Returns:
WRITEME

getMaxAmmo

private int getMaxAmmo()
WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)

Returns:
WRITEME

getMaxShots

private int getMaxShots()
WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)

Returns:
shots on screen at once

getPlayerParticleURL

public String getPlayerParticleURL()
Returns:
the playerParticleURL

getPlayerParticuleURL

private String getPlayerParticuleURL()
WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)

Returns:
WRITEME

getPlayerSoundURL

private String getPlayerSoundURL()
WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)

Returns:
WRITEME

getShotOffsetX

private int getShotOffsetX()
WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)

Returns:
WRITEME

getShotOffsetY

private int getShotOffsetY()
WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)

Returns:
WRITEME

getShotRange

private double getShotRange()
WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)

Returns:
range in px

getShotRate

private double getShotRate()
WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)

Returns:
delay between shots in seconds

getTargetParticleURL

private String getTargetParticleURL()
WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)

Returns:
WRITEME

getTargetSoundURL

private String getTargetSoundURL()
WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)

Returns:
WRITEME

hasColour

private boolean hasColour()
WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)

Returns:
WRITEME

isRotatedShot

private boolean isRotatedShot()
WRITEME: document this method (brpocock@star-hope.org, Jan 8, 2010)

Returns:
WRITEME

set

public void set(org.json.JSONObject o)
This is an overriding method.

See Also:
org.starhope.appius.util.CastsToJSON#set(org.json.JSONObject)

setAmmoCost

public void setAmmoCost(int ammoUsedPerShot)
Parameters:
ammoUsedPerShot - the ammoCost to set

setBulletSpeed

public void setBulletSpeed(double newBulletSpeed)
Parameters:
newBulletSpeed - the bulletSpeed to set

setBulletURL

public void setBulletURL(String newBulletURL)
Parameters:
newBulletURL - the bulletURL to set

setColour

public void setColour(Colour newColour)
Parameters:
newColour - the colour to set

setInitialAmmo

public void setInitialAmmo(int newInitialAmmo)
Parameters:
newInitialAmmo - the initialAmmo to set

setMaxAmmo

public void setMaxAmmo(int newMaxAmmo)
Parameters:
newMaxAmmo - the maxAmmo to set

setMaxShots

public void setMaxShots(int newMaxShots)
Parameters:
newMaxShots - the maxShots to set

setPlayerParticleURL

public void setPlayerParticleURL(String newPlayerParticleURL)
Parameters:
newPlayerParticleURL - the playerParticleURL to set

setPlayerSoundURL

public void setPlayerSoundURL(String newPlayerSoundURL)
Parameters:
newPlayerSoundURL - the playerSoundURL to set

setRotatedShot

public void setRotatedShot(boolean newIsRotatedShot)
Parameters:
newIsRotatedShot - the isRotatedShot to set

setShotOffsetX

public void setShotOffsetX(int newShotOffetX)
Parameters:
newShotOffetX - the shotOffsetX to set

setShotOffsetY

public void setShotOffsetY(int newShotOffsetY)
Parameters:
newShotOffsetY - the shotOffsetY to set

setShotRange

public void setShotRange(double newShotRange)
Parameters:
newShotRange - the shotRange to set

setShotRate

public void setShotRate(double newShotRate)
Parameters:
newShotRate - the shotRate to set

setTargetParticleURL

public void setTargetParticleURL(String newTargetParticleURL)
Parameters:
newTargetParticleURL - the targetParticleURL to set

setTargetSoundURL

public void setTargetSoundURL(String newTargetSoundURL)
Parameters:
newTargetSoundURL - the targetSoundURL to set

toJSON

public org.json.JSONObject toJSON()
This is an overriding method.

Specified by:
toJSON in interface CastsToJSON
Returns:
The string representing this object in JSON format
See Also:
CastsToJSON.toJSON()