C# Class NturnUI, tf_client

Nturn GUI.
Inheritance: GUIObject
Exibir arquivo Open project: wids-eria/tf_client

Protected Properties

Property Type Description
GetTurnTimeLeftCoroutine WebCoroutine,
ProcessIsRunning bool
PutTurnOverCoroutine WebCoroutine,
StartNewTurnCoroutine WebCoroutine,
isAfterProcessing bool
isAfterPut bool
isButtonPressed bool
isPutting bool

Private Properties

Property Type Description

Public Methods

Method Description
Draw ( ) : void

Display the nturn.

IsMouseOver ( ) : bool

Determines whether this instance is mouse over.

NturnUI ( ) : UnityEngine

Initializes a new instance of the NturnUI class.

TurnTimerConverter ( double data ) : void

Converts time from server into int

TurnTimerConverter ( int data ) : void

Protected Methods

Method Description
GetTurnTimeLeft ( AWebCoroutine, a ) : IEnumerator

Gets the turn time left.

PutTurnOver ( AWebCoroutine, a ) : IEnumerator

Sends a turn over message to the server (coroutine)

TurnTimerGenerator ( ) : string

Generate time based on the timer on the server

startNewTurn ( AWebCoroutine a ) : IEnumerator

Starts the new turn.

Method Details

Draw() public method

Display the nturn.
public Draw ( ) : void
return void

GetTurnTimeLeft() protected method

Gets the turn time left.
protected GetTurnTimeLeft ( AWebCoroutine, a ) : IEnumerator
a AWebCoroutine,
return IEnumerator

IsMouseOver() public method

Determines whether this instance is mouse over.
public IsMouseOver ( ) : bool
return bool

NturnUI() public method

Initializes a new instance of the NturnUI class.
public NturnUI ( ) : UnityEngine
return UnityEngine

PutTurnOver() protected method

Sends a turn over message to the server (coroutine)
protected PutTurnOver ( AWebCoroutine, a ) : IEnumerator
a AWebCoroutine,
return IEnumerator

TurnTimerConverter() public method

Converts time from server into int
public TurnTimerConverter ( double data ) : void
data double /// Time from server ///
return void

TurnTimerConverter() public method

public TurnTimerConverter ( int data ) : void
data int
return void

TurnTimerGenerator() protected method

Generate time based on the timer on the server
protected TurnTimerGenerator ( ) : string
return string

startNewTurn() protected method

Starts the new turn.
protected startNewTurn ( AWebCoroutine a ) : IEnumerator
a AWebCoroutine
return IEnumerator

Property Details

GetTurnTimeLeftCoroutine protected_oe property

protected WebCoroutine, GetTurnTimeLeftCoroutine
return WebCoroutine,

ProcessIsRunning protected_oe property

The delay for completing www request to the server for StartNewTurn()
protected bool ProcessIsRunning
return bool

PutTurnOverCoroutine protected_oe property

protected WebCoroutine, PutTurnOverCoroutine
return WebCoroutine,

StartNewTurnCoroutine protected_oe property

protected WebCoroutine, StartNewTurnCoroutine
return WebCoroutine,

isAfterProcessing protected_oe property

The is after processing.
protected bool isAfterProcessing
return bool

isAfterPut protected_oe property

The is after put.
protected bool isAfterPut
return bool

isButtonPressed protected_oe property

The is button pressed.
protected bool isButtonPressed
return bool

isPutting protected_oe property

The is putting.
protected bool isPutting
return bool