C# Class LandUnitEventController

Inheritance: EventControllerBase
Mostrar archivo Open project: BornToGrill/Project-Frequency

Public Properties

Property Type Description
AttackColor Color
InvalidMoveColor Color
MoveColor Color
MovementSpeed float
SplitAmount int
StackSizeSprite Sprite

Protected Properties

Property Type Description
IsSplitting bool
_surrTiles TileController[],

Public Methods

Method Description
CreateSplitMock ( ) : GameObject
MoveToAttack ( TileController, start, List path ) : DeselectStatus
MoveToEmpty ( TileController, start, List path ) : DeselectStatus
MoveToMerge ( TileController, start, List path ) : DeselectStatus
OnClicked ( GameObject ownTile, GameObject clickedTile ) : DeselectStatus
OnMouseEnter ( GameObject ownTile, GameObject hoveredTile ) : void
OnMouseLeave ( GameObject ownTile, GameObject hoveredTile ) : void
OnSelected ( GameObject ownTile ) : DeselectStatus
ShowUnitStack ( TileController, ownTile ) : void
Split ( GameObject mock, TileController, ownTile, TileController, targetTile ) : DeselectStatus
UnitSplitCallback ( int amount ) : void

Protected Methods

Method Description
ResetModifiedTiles ( ) : void
ResetSplitTiles ( ) : void

Private Methods

Method Description
AnimateToTile ( IEnumerable path ) : IEnumerator
AnimateToTile ( IEnumerable path, Action endAction ) : IEnumerator
QueueNextItem ( ) : void
StartSpriteAnimation ( Vector3 direction, Vector3 position ) : void

Method Details

CreateSplitMock() public method

public CreateSplitMock ( ) : GameObject
return GameObject

MoveToAttack() public method

public MoveToAttack ( TileController, start, List path ) : DeselectStatus
start TileController,
path List
return DeselectStatus

MoveToEmpty() public method

public MoveToEmpty ( TileController, start, List path ) : DeselectStatus
start TileController,
path List
return DeselectStatus

MoveToMerge() public method

public MoveToMerge ( TileController, start, List path ) : DeselectStatus
start TileController,
path List
return DeselectStatus

OnClicked() public method

public OnClicked ( GameObject ownTile, GameObject clickedTile ) : DeselectStatus
ownTile GameObject
clickedTile GameObject
return DeselectStatus

OnMouseEnter() public method

public OnMouseEnter ( GameObject ownTile, GameObject hoveredTile ) : void
ownTile GameObject
hoveredTile GameObject
return void

OnMouseLeave() public method

public OnMouseLeave ( GameObject ownTile, GameObject hoveredTile ) : void
ownTile GameObject
hoveredTile GameObject
return void

OnSelected() public method

public OnSelected ( GameObject ownTile ) : DeselectStatus
ownTile GameObject
return DeselectStatus

ResetModifiedTiles() protected method

protected ResetModifiedTiles ( ) : void
return void

ResetSplitTiles() protected method

protected ResetSplitTiles ( ) : void
return void

ShowUnitStack() public method

public ShowUnitStack ( TileController, ownTile ) : void
ownTile TileController,
return void

Split() public method

public Split ( GameObject mock, TileController, ownTile, TileController, targetTile ) : DeselectStatus
mock GameObject
ownTile TileController,
targetTile TileController,
return DeselectStatus

UnitSplitCallback() public method

public UnitSplitCallback ( int amount ) : void
amount int
return void

Property Details

AttackColor public_oe property

public Color AttackColor
return Color

InvalidMoveColor public_oe property

public Color InvalidMoveColor
return Color

IsSplitting protected_oe property

protected bool IsSplitting
return bool

MoveColor public_oe property

public Color MoveColor
return Color

MovementSpeed public_oe property

public float MovementSpeed
return float

SplitAmount public_oe property

public int SplitAmount
return int

StackSizeSprite public_oe property

public Sprite StackSizeSprite
return Sprite

_surrTiles protected_oe property

protected TileController[], _surrTiles
return TileController[],