Packagecom.whirled.contrib.card.trick
Classpublic class BidEvent
InheritanceBidEvent Inheritance flash.events.Event

Event for something that happens to a bid.



Public Properties
 PropertyDefined by
  player : int
[read-only] Access the id of the player who has placed a bid, if any.
BidEvent
  value : int
[read-only] Access the value of the bid, if appropriate.
BidEvent
Protected Properties
 PropertyDefined by
  _player : int
BidEvent
  _value : int
BidEvent
Public Methods
 MethodDefined by
  
BidEvent(type:String, player:int = 0, value:int = -1)
Create a new bid event.
BidEvent
  
clone():Event
BidEvent
  
newEventType(type:String):String
[static] Placeholder function for Bids subclasses to add new event types.
BidEvent
  
toString():String
BidEvent
Public Constants
 ConstantDefined by
  COMPLETED : String = "bid.completed"
[static] Event type for when all bids are in.
BidEvent
  PLACED : String = "bid.placed"
[static] Event type for when a bid is placed.
BidEvent
  REQUESTED : String = "bid.requested"
[static] Event type for when a bid is requested.
BidEvent
  RESET : String = "bid.reset"
[static] Event type for when the bids are reset.
BidEvent
  SELECTED : String = "bid.selected"
[static] Event type for when a bid is selected.
BidEvent
Property detail
_playerproperty
protected var _player:int
playerproperty 
player:int  [read-only]

Access the id of the player who has placed a bid, if any.

Implementation
    public function get player():int
_valueproperty 
protected var _value:int
valueproperty 
value:int  [read-only]

Access the value of the bid, if appropriate.

Implementation
    public function get value():int
Constructor detail
BidEvent()constructor
public function BidEvent(type:String, player:int = 0, value:int = -1)

Create a new bid event.

Parameters
type:String
 
player:int (default = 0)
 
value:int (default = -1)
Method detail
clone()method
public override function clone():Event

Returns
Event
newEventType()method 
public static function newEventType(type:String):String

Placeholder function for Bids subclasses to add new event types.

Parameters
type:String

Returns
String
toString()method 
public override function toString():String

Returns
String
Constant detail
COMPLETEDconstant
public static const COMPLETED:String = "bid.completed"

Event type for when all bids are in. For this event type, the player and value properties are not used.

PLACEDconstant 
public static const PLACED:String = "bid.placed"

Event type for when a bid is placed. For this event type, the value is set to the amount bid and the player is set to the id of the player who bid.

REQUESTEDconstant 
public static const REQUESTED:String = "bid.requested"

Event type for when a bid is requested. For this event type, the player is set to the id of the player who is requested to bid and the value is set to the maximum amount.

RESETconstant 
public static const RESET:String = "bid.reset"

Event type for when the bids are reset. For this event type, the player and value properties are not used.

SELECTEDconstant 
public static const SELECTED:String = "bid.selected"

Event type for when a bid is selected. For this event type, the value is set to the amount selected and the player is set to the id of the player who bid.