efficom.runningjoe.core
Class Bonus

java.lang.Object
  extended by efficom.runningjoe.core.AbstractGraphicItem
      extended by efficom.runningjoe.core.Bonus

public class Bonus
extends AbstractGraphicItem

Class witch represents Bonus object that Joe can grab I'll work on it after the ground and roof generation

Author:
Sylvain MERLIN

Constructor Summary
Bonus(RjWorld world, java.lang.String name)
          Inherited Constructor
 
Method Summary
 Bonus generateRandom()
          Set the object with the attributes of a Bonus
 
Methods inherited from class efficom.runningjoe.core.AbstractGraphicItem
hasContact
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Bonus

public Bonus(RjWorld world,
             java.lang.String name)
Inherited Constructor

Parameters:
world - RjWorld object the Graphic Item belongs to
name - Name of the Graphic Item
Method Detail

generateRandom

public Bonus generateRandom()
Set the object with the attributes of a Bonus

Returns:
Bonus A randomly generated bonus