org.ninm.games.cardgames.common
Class CardGameEvent
java.lang.Object
|
+--java.util.EventObject
|
+--org.ninm.games.cardgames.common.CardGameEvent
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- BonusEvent, DealerEvent
- public class CardGameEvent
- extends java.util.EventObject
An event which is used by the cardgame interface
- Version:
- 1.0
- Author:
- Nikolay
- See Also:
- Serialized Form
Fields inherited from class java.util.EventObject |
source |
Constructor Summary |
CardGameEvent(java.lang.Object source,
Player player,
Team team)
Constructor for CardGameEvent. |
Method Summary |
Player |
getPlayer()
Returns the player. |
Team |
getTeam()
Returns the team. |
java.lang.String |
toString()
returns the string representation of the card game 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_player
private final Player m_player
m_team
private final Team m_team
CardGameEvent
public CardGameEvent(java.lang.Object source,
Player player,
Team team)
- Constructor for CardGameEvent.
- Parameters:
source
- the source of the eventplayer
- the player this event is associated withteam
- the team associated with this event
getPlayer
public Player getPlayer()
- Returns the player.
- Returns:
- Player
getTeam
public Team getTeam()
- Returns the team.
- Returns:
- Team
toString
public java.lang.String toString()
- returns the string representation of the card game event
- Overrides:
toString
in class java.util.EventObject
- Returns:
- a String represenation of this event