C# Class TimeTrackerController

Inheritance: MonoBehaviour
Afficher le fichier Open project: FIU-SCIS-Senior-Projects/SmartBuilding4 Class Usage Examples

Méthodes publiques

Méthode Description
convertSecondsToTimeOfDayString ( int sec ) : string
getSimStartTime ( ) : int
getSimTime ( TimeFormat desiredFormat ) : string

Gets the sim time.

getTimeOfDayInSeconds ( ) : int
oneSecondPassed ( float time ) : void
pause ( ) : void

Pause this instance.

printSimTime ( TimeFormat desiredFormat ) : void

Prints the sim time.

resume ( ) : void

Resume this instance.

setSimulationStartTime ( string timeOfDay ) : void

Sets the sim start time. FORMAT = 00:00:00 AM

Private Methods

Méthode Description
Awake ( ) : void
Start ( ) : void
Update ( ) : void
convertSecToDayHoMinSec ( int sec ) : string

Converts the seconds to days hours minites seconds.

convertSecToHoMinSec ( int sec ) : string

Converts the seconds to hours minutes seconds.

convertSecToMinSec ( int sec ) : string

Converts the sec to minutes seconds.

convertSecToTimeOfDay ( int sec ) : string

Converts the seconds to time of day.

Method Details

convertSecondsToTimeOfDayString() public static méthode

public static convertSecondsToTimeOfDayString ( int sec ) : string
sec int
Résultat string

getSimStartTime() public méthode

public getSimStartTime ( ) : int
Résultat int

getSimTime() public méthode

Gets the sim time.
public getSimTime ( TimeFormat desiredFormat ) : string
desiredFormat TimeFormat Desired format. --- consult TimeFormat Enum
Résultat string

getTimeOfDayInSeconds() public méthode

public getTimeOfDayInSeconds ( ) : int
Résultat int

oneSecondPassed() public méthode

public oneSecondPassed ( float time ) : void
time float
Résultat void

pause() public méthode

Pause this instance.
public pause ( ) : void
Résultat void

printSimTime() public méthode

Prints the sim time.
public printSimTime ( TimeFormat desiredFormat ) : void
desiredFormat TimeFormat Desired format. --- consult TimeFormat Enum
Résultat void

resume() public méthode

Resume this instance.
public resume ( ) : void
Résultat void

setSimulationStartTime() public méthode

Sets the sim start time. FORMAT = 00:00:00 AM
public setSimulationStartTime ( string timeOfDay ) : void
timeOfDay string Time of day as string. //format should be .. 00:00:00 am
Résultat void