Packagecom.whirled.contrib.card.trick
Classpublic class ScoresEvent
InheritanceScoresEvent Inheritance flash.events.Event

Represents something that happens to scores.



Public Properties
 PropertyDefined by
  team : Team
[read-only] The team that has just won a trick or scored some points.
ScoresEvent
  value : int
[read-only] The current total number of tricks or total score the the team.
ScoresEvent
Protected Properties
 PropertyDefined by
  _team : Team
ScoresEvent
  _value : int
ScoresEvent
Public Methods
 MethodDefined by
  
ScoresEvent(type:String, team:Team = null, value:int = -1)
Create a new ScoresEvent.
ScoresEvent
  
clone():Event
ScoresEvent
  
newEventType(type:String):String
[static] Placeholder function for Scores subclasses to add new event types.
ScoresEvent
  
toString():String
ScoresEvent
Public Constants
 ConstantDefined by
  SCORES_CHANGED : String = "scores.changed"
[static] The type of event when the scores change.
ScoresEvent
  SCORES_RESET : String = "scores.reset"
[static] The type of event when the scores are reset to 0.
ScoresEvent
  TRICKS_CHANGED : String = "scores.tricksChanged"
[static] Tricks changed.
ScoresEvent
  TRICKS_RESET : String = "scores.tricksReset"
[static] The type of event when the tricks are reset to 0.
ScoresEvent
Property detail
_teamproperty
protected var _team:Team
teamproperty 
team:Team  [read-only]

The team that has just won a trick or scored some points.

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

The current total number of tricks or total score the the team.

Implementation
    public function get value():int
Constructor detail
ScoresEvent()constructor
public function ScoresEvent(type:String, team:Team = null, value:int = -1)

Create a new ScoresEvent.

Parameters
type:String
 
team:Team (default = null)
 
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 Scores subclasses to add new event types.

Parameters
type:String

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

Returns
String
Constant detail
SCORES_CHANGEDconstant
public static const SCORES_CHANGED:String = "scores.changed"

The type of event when the scores change. For this type of event, the team property is the Team object that has just scored some points and the value property is the current score total for that team.

SCORES_RESETconstant 
public static const SCORES_RESET:String = "scores.reset"

The type of event when the scores are reset to 0. For this type of event, no properties are used.

TRICKS_CHANGEDconstant 
public static const TRICKS_CHANGED:String = "scores.tricksChanged"

Tricks changed. For this event, the team property is the Team object that has just won a trick and the value property indicates the current total number of tricks for that team.

TRICKS_RESETconstant 
public static const TRICKS_RESET:String = "scores.tricksReset"

The type of event when the tricks are reset to 0. For this type of event, no properties are used.