C# Class lab.AiController

Inheritance: UnityEngine.MonoBehaviour
ファイルを表示 Open project: marekdaniluk/lab

Private Properties

Property Type Description

Public Methods

Method Description
GetBool ( string key ) : bool

Gets bool parameters for ai behaviour.

GetFloat ( string key ) : float

Gets float parameters for ai behaviour.

GetInt ( string key ) : int

Gets int parameters for ai behaviour.

GetString ( string key ) : string

Gets string parameters for ai behaviour.

Run ( int i ) : bool

Runs tree behaviour.

SetBool ( string key, bool val ) : void

Sets bool parameters for ai behaviour.

SetFloat ( string key, float val ) : void

Sets float parameters for ai behaviour.

SetInt ( string key, int val ) : void

Sets int parameters for ai behaviour.

SetString ( string key, string val ) : void

Sets string parameters for ai behaviour.

Method Details

GetBool() public method

Gets bool parameters for ai behaviour.
public GetBool ( string key ) : bool
key string The name of the bool parameters.
return bool

GetFloat() public method

Gets float parameters for ai behaviour.
public GetFloat ( string key ) : float
key string The name of the float parameters.
return float

GetInt() public method

Gets int parameters for ai behaviour.
public GetInt ( string key ) : int
key string The name of the int parameters.
return int

GetString() public method

Gets string parameters for ai behaviour.
public GetString ( string key ) : string
key string The name of the string parameters.
return string

Run() public method

Runs tree behaviour.
public Run ( int i ) : bool
i int Index of tree to run. Default value is 0.
return bool

SetBool() public method

Sets bool parameters for ai behaviour.
public SetBool ( string key, bool val ) : void
key string The name of the bool parameters.
val bool The new value for the bool parameters.
return void

SetFloat() public method

Sets float parameters for ai behaviour.
public SetFloat ( string key, float val ) : void
key string The name of the float parameters.
val float The new value for the float parameters.
return void

SetInt() public method

Sets int parameters for ai behaviour.
public SetInt ( string key, int val ) : void
key string The name of the int parameters.
val int The new value for the int parameters.
return void

SetString() public method

Sets string parameters for ai behaviour.
public SetString ( string key, string val ) : void
key string The name of the string parameters.
val string The new value for the string parameters.
return void