C# Class inputManager, Main-Working-Repository

Inheritance: MonoBehaviour
ファイルを表示 Open project: GCSShatteredSpace/Main-Working-Repository Class Usage Examples

Public Properties

Property Type Description
commands Stack

Public Methods

Method Description
Start ( ) : void
Update ( ) : void
attackCommand ( Vector2 pos ) : void
cancelAttack ( ) : void
cancelCommand ( ) : void
drawLine ( ) : void
endTargeting ( ) : void
gainTechnology ( string technology ) : void
getMyPlayer ( ) : player,
getPlayerPosition ( ) : Vector2
getTurnStartTime ( ) : float
getWeaponId ( ) : int
hasAttackLeft ( ) : bool
hasMoveLeft ( ) : bool
inMovement ( Vector2 pos ) : bool
inTarget ( Vector2 pos ) : bool
isCommandable ( ) : bool
isInTargetMode ( ) : bool
moveCommand ( Vector2 pos ) : void
resetCommands ( Vector2 pos ) : void
sendCommands ( ) : void
setMaxSteps ( int steps ) : void
setMenu ( bool value ) : void
setMyPlayer ( player, p ) : void
startNewTurn ( Vector2 pos ) : void
startTargeting ( Vector2 pos ) : void

Method Details

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

attackCommand() public method

public attackCommand ( Vector2 pos ) : void
pos Vector2
return void

cancelAttack() public method

public cancelAttack ( ) : void
return void

cancelCommand() public method

public cancelCommand ( ) : void
return void

drawLine() public method

public drawLine ( ) : void
return void

endTargeting() public method

public endTargeting ( ) : void
return void

gainTechnology() public method

public gainTechnology ( string technology ) : void
technology string
return void

getMyPlayer() public method

public getMyPlayer ( ) : player,
return player,

getPlayerPosition() public method

public getPlayerPosition ( ) : Vector2
return Vector2

getTurnStartTime() public method

public getTurnStartTime ( ) : float
return float

getWeaponId() public method

public getWeaponId ( ) : int
return int

hasAttackLeft() public method

public hasAttackLeft ( ) : bool
return bool

hasMoveLeft() public method

public hasMoveLeft ( ) : bool
return bool

inMovement() public method

public inMovement ( Vector2 pos ) : bool
pos Vector2
return bool

inTarget() public method

public inTarget ( Vector2 pos ) : bool
pos Vector2
return bool

isCommandable() public method

public isCommandable ( ) : bool
return bool

isInTargetMode() public method

public isInTargetMode ( ) : bool
return bool

moveCommand() public method

public moveCommand ( Vector2 pos ) : void
pos Vector2
return void

resetCommands() public method

public resetCommands ( Vector2 pos ) : void
pos Vector2
return void

sendCommands() public method

public sendCommands ( ) : void
return void

setMaxSteps() public method

public setMaxSteps ( int steps ) : void
steps int
return void

setMenu() public method

public setMenu ( bool value ) : void
value bool
return void

setMyPlayer() public method

public setMyPlayer ( player, p ) : void
p player,
return void

startNewTurn() public method

public startNewTurn ( Vector2 pos ) : void
pos Vector2
return void

startTargeting() public method

public startTargeting ( Vector2 pos ) : void
pos Vector2
return void

Property Details

commands public_oe property

public Stack commands
return Stack