| Package | com.whirled.contrib.card.trick |
| Class | public class ScoresEvent |
| Inheritance | ScoresEvent flash.events.Event |
| Property | Defined 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 | ||
| Method | Defined 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 | ||
| Constant | Defined 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 | ||
| _team | property |
protected var _team:Team
| team | property |
team:Team [read-only]The team that has just won a trick or scored some points.
Implementation public function get team():Team
| _value | property |
protected var _value:int
| value | property |
value:int [read-only]The current total number of tricks or total score the the team.
Implementation public function get value():int
| ScoresEvent | () | constructor |
public function ScoresEvent(type:String, team:Team = null, value:int = -1)Create a new ScoresEvent.
Parameterstype:String |
|
team:Team (default = null) |
|
value:int (default = -1) |
| clone | () | method |
public override function clone():EventReturns
Event |
| newEventType | () | method |
public static function newEventType(type:String):StringPlaceholder function for Scores subclasses to add new event types.
Parameterstype:String |
String |
| toString | () | method |
public override function toString():StringReturns
String |
| SCORES_CHANGED | constant |
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_RESET | constant |
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_CHANGED | constant |
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_RESET | constant |
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.