org.ninm.games.cardgames.common
Class BonusEvent
java.lang.Object
|
+--java.util.EventObject
|
+--org.ninm.games.cardgames.common.CardGameEvent
|
+--org.ninm.games.cardgames.common.BonusEvent
- All Implemented Interfaces:
- java.io.Serializable
- public class BonusEvent
- extends CardGameEvent
this represents a bonus event which occurs whenever a team or player recives a bonus.
- Version:
- 1.0
- Author:
- Nikolay
- See Also:
- Serialized Form
Fields inherited from class org.ninm.games.cardgames.common.CardGameEvent |
|
Fields inherited from class java.util.EventObject |
source |
Method Summary |
Bonus |
getBonus()
Returns the bonus. |
java.lang.String |
toString()
returns the string representation of this event |
Methods inherited from class java.util.EventObject |
getSource |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
m_bonus
private final Bonus m_bonus
BonusEvent
public BonusEvent(java.lang.Object source,
Player player,
Team team,
Bonus bonus)
- Constructor for BonusEvent.
- Parameters:
source
- the source of the eventplayer
- the player receiving the bonusteam
- the team receiving the bonusbonus
- the bonus
getBonus
public Bonus getBonus()
- Returns the bonus.
- Returns:
- Bonus
toString
public java.lang.String toString()
- returns the string representation of this event
- Overrides:
toString
in class CardGameEvent
- Returns:
- a string representation of this event