C# Class LongoMatch.Core.Store.ProjectLongoMatch

Inheritance: Project
Show file Open project: LongoMatch/longomatch Class Usage Examples

Private Properties

Property Type Description
ProjectDescription System

Public Methods

Method Description
AddEvent ( EventType type, Time start, Time stop, Time eventTime, Image miniature, bool addToTimeline = true ) : TimelineEvent
AddEvent ( TimelineEvent play ) : void
ConsolidateDescription ( ) : void
CreateLineupEvent ( ) : LineupEvent
CurrentLineup ( Time currentTime, List &homeFieldPlayers, List &homeBenchPlayers, List &awayFieldPlayers, List &awayBenchPlayers ) : void
Dispose ( ) : void
EventsByTeam ( SportsTeam team ) : IEnumerable
GetScore ( SportsTeam team ) : int
Import ( ) : Project
Import ( string file ) : Project
LineupChanged ( Time start, Time stop ) : bool
ProjectLongoMatch ( ) : System
RemoveEvents ( List plays ) : void

Delete a play from the project

SubsitutePlayer ( SportsTeam team, PlayerLongoMatch playerIn, PlayerLongoMatch playerOut, SubstitutionReason reason, Time subsTime ) : SubstitutionEvent
UpdateEventTypesAndTimers ( ) : void
UpdateScore ( ) : void

Private Methods

Method Description
ProjectDescription ( ) : System

Method Details

AddEvent() public method

public AddEvent ( EventType type, Time start, Time stop, Time eventTime, Image miniature, bool addToTimeline = true ) : TimelineEvent
type EventType
start Time
stop Time
eventTime Time
miniature Image
addToTimeline bool
return TimelineEvent

AddEvent() public method

public AddEvent ( TimelineEvent play ) : void
play TimelineEvent
return void

ConsolidateDescription() public method

public ConsolidateDescription ( ) : void
return void

CreateLineupEvent() public method

public CreateLineupEvent ( ) : LineupEvent
return LineupEvent

CurrentLineup() public method

public CurrentLineup ( Time currentTime, List &homeFieldPlayers, List &homeBenchPlayers, List &awayFieldPlayers, List &awayBenchPlayers ) : void
currentTime Time
homeFieldPlayers List
homeBenchPlayers List
awayFieldPlayers List
awayBenchPlayers List
return void

Dispose() public method

public Dispose ( ) : void
return void

EventsByTeam() public method

public EventsByTeam ( SportsTeam team ) : IEnumerable
team SportsTeam
return IEnumerable

GetScore() public method

public GetScore ( SportsTeam team ) : int
team SportsTeam
return int

Import() public static method

public static Import ( ) : Project
return Project

Import() public static method

public static Import ( string file ) : Project
file string
return Project

LineupChanged() public method

public LineupChanged ( Time start, Time stop ) : bool
start Time
stop Time
return bool

ProjectLongoMatch() public method

public ProjectLongoMatch ( ) : System
return System

RemoveEvents() public method

Delete a play from the project
public RemoveEvents ( List plays ) : void
plays List
return void

SubsitutePlayer() public method

public SubsitutePlayer ( SportsTeam team, PlayerLongoMatch playerIn, PlayerLongoMatch playerOut, SubstitutionReason reason, Time subsTime ) : SubstitutionEvent
team SportsTeam
playerIn PlayerLongoMatch
playerOut PlayerLongoMatch
reason SubstitutionReason
subsTime Time
return SubstitutionEvent

UpdateEventTypesAndTimers() public method

public UpdateEventTypesAndTimers ( ) : void
return void

UpdateScore() public method

public UpdateScore ( ) : void
return void