Galactix Home | Main Page | Class Hierarchy | Data Structures | Function List
#include <tsssx.idl>
Inherits IDispatch.
Public Methods | |
HRESULT | ToString ([out, retval] BSTR *pVal) |
Get a String representation of this object. More... | |
HRESULT | Name ([out, retval] BSTR *pVal) |
Get the Name property of this object as a String. More... | |
HRESULT | ID ([out, retval] long *pVal) |
Get the ID property of this object as a long. More... | |
HRESULT | Comment ([out, retval] BSTR *pVal) |
Get the Comment property of this object as a String. More... | |
HRESULT | StartTime ([out, retval] DATE *pVal) |
Get the StartTime property of this object as a DATE. More... | |
HRESULT | EndTime ([out, retval] DATE *pVal) |
Get the EndTime property of this object as a DATE. More... | |
HRESULT | GameType ([out, retval] int *pVal) |
Get the GameType property of this object as an int. More... | |
HRESULT | HomeScore ([out, retval] int *pVal) |
Get the HomeScore property of this object as an int. More... | |
HRESULT | AwayScore ([out, retval] int *pVal) |
Get the AwayScore property of this object as an int. More... | |
HRESULT | HomeTeamID ([out, retval] long *pVal) |
Get the HomeTeamID property of this object as a long. More... | |
HRESULT | AwayTeamID ([out, retval] long *pVal) |
Get the AwayTeamID property of this object as a long. More... | |
HRESULT | VenueID ([out, retval] long *pVal) |
Get the VenueID property of this object as a long. More... | |
HRESULT | LeagueID ([out, retval] long *pVal) |
Get the LeagueID property of this object as a long. More... | |
HRESULT | MasterScheduleID ([out, retval] long *pVal) |
Get the MasterScheduleID property of this object as a long. More... | |
HRESULT | getLeague ([out, retval] ILeague **ppILeague) |
Get the ILeague for this game if it exists. More... | |
HRESULT | getMasterSchedule ([out, retval] IMasterSchedule **ppISchedule) |
Get the IMasterSchedule for this game. More... | |
HRESULT | getVenue ([out, retval] IVenue **ppIVenue) |
Get the IVenue for this game. More... | |
HRESULT | getHomeTeam ([out, retval] ITeam **ppITeam) |
Get the home ITeam for this game. More... | |
HRESULT | getAwayTeam ([out, retval] ITeam **ppITeam) |
Get the away ITeam for this game. More... | |
HRESULT | getNumOfOfficials ([out, retval] long *plNum) |
Get the number of IOfficial's for the game. More... | |
HRESULT | isScheduled ([out, retval] BOOL *pVal) |
Find out if this game has been scheduled. More... | |
HRESULT | getOfficials ([out, retval] IOfficialCollection **ppICollection) |
Get a collection of all the IOfficial's for the game. More... | |
HRESULT | getPosition ([in] long lOfficialID,[out, retval] BSTR *pVal) |
Get a position of the specified official. More... | |
HRESULT | isBye ([out, retval] BOOL *pVal) |
Returns true if this game is a Bye, false otherwise. More... | |
HRESULT | isOvertime ([out, retval] BOOL *pVal) |
Returns true if this game went into overtime. More... | |
HRESULT | isForfeit ([out, retval] BOOL *pVal) |
Returns true if this game was a forfeit for either home or away team. More... | |
HRESULT | isForfeitHome ([out, retval] BOOL *pVal) |
Returns true if this game was a forfeit for the home team. More... | |
HRESULT | isForfeitAway ([out, retval] BOOL *pVal) |
Returns true if this game was a forfeit for the away team. More... | |
HRESULT | isForfeitWin ([in] long lTeamID,[out, retval] BOOL *pVal) |
Returns true if this game was a forfeit win for the specified team. More... | |
HRESULT | isForfeitLoss ([in] long lTeamID,[out, retval] BOOL *pVal) |
Returns true if this game was a forfeit loss for the specified team. More... | |
HRESULT | includeInStandings ([out, retval] BOOL *pVal) |
Returns true if this game game should be counted in the standings calculation. More... |
Use the IGame object to get the home and away teams, the type of game, the venue, start time, duration, officials, and other information important to the game. Do not create this object directly, instead use the getGame() or getGames() methods from the IProject, IMasterSchedule, ISeasonSchedule, IPracticeSchedule, or ITournamentSchedule objects.
Program ID: TSSSX.Game
Example:
var eGames = new Enumerator(masterschedule.getGames()); for (; !eGames.atEnd(); eGames.moveNext()) { oGame = eGames.item(); // do something with the IGame object theDate = new Date(oGame.StartTime); Response.WriteLine(oGame.getHomeTeam().Name + " vs " + oGame.getAwayTeam().Name + " at " + oGame.getVenue().Name + " " + theDate); }
|
Get the AwayScore property of this object as an int. Returns the away team's score. If the score is equal to -1, it means the score hasn't yet been entered. Example: if (game.HomeScore == -1 || game.AwayScore == -1) { Response.WriteLine("This game hasn't yet been played."); } |
|
Get the AwayTeamID property of this object as a long. Returns the away ITeam's ID. The following special ID's are returned when a team hasn't yet been specified or is not yet known (in the case of tournaments).
Example: if (game.HomeTeamID == -2 || game.AwayTeamID == -2) { Response.WriteLine("This game is a Bye..."); } |
|
Get the Comment property of this object as a String. Example: var sComment = obj.Comment; |
|
Get the EndTime property of this object as a DATE. Example: var end = new Date(schedule.EndTime); Response.Write(start); |
|
Get the GameType property of this object as an int. Games are broken down into three different types as listed below.
var sType = "unknown"; switch (game.GameType) { case 1: // season games sType = "Season"; break; case 2: // practice games sType = "Practice"; break; case 4: // tournament games sType = "Tournament"; break; } Response.Write("This game is a " + sType + " game."); |
|
Get the HomeScore property of this object as an int. Returns the home team's score. If the score is equal to -1, it means the score hasn't yet been entered. Example: if (game.HomeScore == -1 || game.AwayScore == -1) { Response.WriteLine("This game hasn't yet been played."); } |
|
Get the HomeTeamID property of this object as a long. Returns the home ITeam's ID. The following special ID's are returned when a team hasn't yet been specified or is not yet known (in the case for tournaments).
Example: if (game.HomeTeamID == -2 || game.AwayTeamID == -2) { Response.WriteLine("This game is a Bye..."); } |
|
Get the ID property of this object as a long. Example: var iID = obj.ID; |
|
Get the LeagueID property of this object as a long.
var league = Project.getLeague(game.LeagueID); if (league != null) { // do something with the league } |
|
Get the MasterScheduleID property of this object as a long.
var masterschedule = Project.getMasterSchedule(game.MasterScheduleID); if (masterschedule != null) { // do something with the masterschedule } |
|
Get the Name property of this object as a String. Example: var sName = obj.Name; |
|
Get the StartTime property of this object as a DATE. Example: var start = new Date(game.StartTime); Response.Write(start); |
|
Get a String representation of this object. Example: var sImplicit = "The object '" + obj + "' ToString property was called implicitly."; var sDirect = "The object '" + obj.ToString + "' ToString property was called directly."; |
|
Get the VenueID property of this object as a long.
var venue = Project.getVenue(game.VenueID); if (venue != null) { Response.Write("This game is playing at " + venue.Name); } |
|
Get the away ITeam for this game.
var team = game.getAwayTeam(); if (team != null) { // do something with the team }
|
|
Get the home ITeam for this game.
var team = game.getHomeTeam(); if (team != null) { // do something with the team }
|
|
Get the ILeague for this game if it exists.
var league = game.getLeague(); if (league != null) { // do something with the league }
|
|
Get the IMasterSchedule for this game.
var schedule = game.getMasterSchedule(); if (schedule != null) { // do something with the league }
|
|
Get the number of IOfficial's for the game.
var iNum = game.getNumOfOfficials(); |
|
Get a collection of all the IOfficial's for the game.
var obj; var eItems = new Enumerator(game.getOfficials()); for (; !eItems.atEnd(); eItems.moveNext()) { obj = eItems.item(); // do something with the obj }
|
|
Get a position of the specified official.
Response.Write("The official '" + official.Name + "' will be the " + game.getPosition(official.ID));
|
|
Get the IVenue for this game.
var venue = game.getVenue(); if (venue != null) { // do something with the venue }
|
|
Returns
if (!game.includeInStandings()) Response.WriteLine("This was a practice game and shouldn't be counted in the standings."); |
|
Returns
if (game.isBye()) Response.WriteLine("This game is a bye."); |
|
Returns
if (game.isForfeit()) Response.WriteLine("This game was forfeited."); |
|
Returns
if (game.isForfeitAway()) Response.WriteLine("The away team forfeited."); |
|
Returns
if (game.isForfeitHome()) Response.WriteLine("The home team forfeited."); |
|
Returns
if (game.isForfeitLoss(game.getHomeTeam())) Response.WriteLine("This was a forfeit loss for the home team."); |
|
Returns
if (game.isForfeitWin(game.getHomeTeam())) Response.WriteLine("This was a forfeit win for the home team."); |
|
Returns
if (game.isOvertime()) Response.WriteLine("This game went into overtime."); |
|
Find out if this game has been scheduled.
if (game.isScheduled) { Response.WriteLine("This game has been scheduled."); } else { Response.WriteLine("This game has not been scheduled."); } |
Galactix Home | Main Page | Class Hierarchy | Data Structures | Function List
Copyright © 1996-2007, Galactix Software. All rights reserved.
Questions? Comments? Send email to support@galactix.com