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

Field Summary
private  Bonus m_bonus
           
 
Fields inherited from class org.ninm.games.cardgames.common.CardGameEvent
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
BonusEvent(java.lang.Object source, Player player, Team team, Bonus bonus)
          Constructor for BonusEvent.
 
Method Summary
 Bonus getBonus()
          Returns the bonus.
 java.lang.String toString()
          returns the string representation of this event
 
Methods inherited from class org.ninm.games.cardgames.common.CardGameEvent
getPlayer, getTeam
 
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
 

Field Detail

m_bonus

private final Bonus m_bonus
Constructor Detail

BonusEvent

public BonusEvent(java.lang.Object source,
                  Player player,
                  Team team,
                  Bonus bonus)
Constructor for BonusEvent.

Parameters:
source - the source of the event
player - the player receiving the bonus
team - the team receiving the bonus
bonus - the bonus
Method Detail

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

SourceForge.net Logo