com.amoebacode.blackjack.core
Interface IGameObject
- All Known Subinterfaces:
- ICardCollection, IDealer, IDealerHand, IDeck, IGame, IHand, IParticipant, IPlayer, IPlayerHand, IRound
- All Known Implementing Classes:
- GameObject
- public interface IGameObject
IGameObject defines the standard API for core game objects, including access to parent
objects and event listener collections.
- Version:
- 0.9
- Author:
- Jason Gurney
getParent
public IGameObject getParent()
- Returns the parent of this game object.
- Returns:
- this object's IGameObject parent
getGame
public IGame getGame()
- Returns the top level game object.
- Returns:
- this object's parent IGame
addEventListener
public void addEventListener(BlackjackEventListener listener)
- Adds the specified event listener to this object's event listener collection.
- Parameters:
listener - the BlackjackEventListener to add
Copyright © 2002 amoebacode.com.