/*------------------------------------------------- * Event Triggers * --------------------------------------------------*/ private void RaiseCompleteCharacterActionCharacterEvent(Character character) { CharacterEventData characterEventData = new CharacterEventData(); characterEventData.character = character; this.completeCharacterAction.Raise(characterEventData); }
public void OnClearCharacterCombat(CharacterEventData characterEventData) { if (this.character == characterEventData.character) { Character characterToClear = characterEventData.character; characterToClear.ResetSelectedCombatTile(); } }
public void OnUndoCharacterMovement(CharacterEventData characterEventData) { if (this.character == characterEventData.character) { Character characterToUndo = characterEventData.character; characterToUndo.SetUndoCharacterMovementState(); } }
private void RaiseUndoCharacterMovement(Character character) { CharacterEventData undoCharacterMovementData = new CharacterEventData(); undoCharacterMovementData.character = character; this.undoCharacterMovement.Raise(undoCharacterMovementData); }
public void OnPreviewCharacterCombat(CharacterEventData characterEventData) { if (this.character == characterEventData.character) { Character previewCharacter = characterEventData.character; previewCharacter.SetSelectedCombatTile(characterEventData.targetTile); } }
private void RaiseClearCombatCharacterEvent(Character character) { CharacterEventData clearCharacterCombatData = new CharacterEventData(); clearCharacterCombatData.character = character; this.clearCharacterCombat.Raise(clearCharacterCombatData); }
private void RaisePreviewCombatCharacterEvent(Character character, Tile targetTile) { CharacterEventData previewCharacterCombatData = new CharacterEventData(); previewCharacterCombatData.character = character; previewCharacterCombatData.targetTile = targetTile; this.previewCharacterCombat.Raise(previewCharacterCombatData); }
private void RaiseSetUpCharacterEvent(Character character, Team team, Tile tile) { CharacterEventData characterEventData = new CharacterEventData(); characterEventData.character = character; characterEventData.team = team; characterEventData.tile = tile; this.setUpCharacter.Raise(characterEventData); }
public void OnPreviewCharacterMovement(CharacterEventData characterEventData) { if (this.character == characterEventData.character) { characterEventData.character.SetPreviewCharacterMovementState( characterEventData.tilePath, characterEventData.targetTile ); } }
/*------------------------------------------------- * Event Handlers * --------------------------------------------------*/ public void OnSetUpCharacter(CharacterEventData characterEventData) { if (this.character == characterEventData.character) { characterEventData.character.SetUp( characterEventData.team, characterEventData.tile ); } }
private void RaisePreviewCharacterMovement(Character character, Path tilePath, Tile targetTile) { CharacterEventData previewCharacterMovementData = new CharacterEventData(); previewCharacterMovementData.character = character; previewCharacterMovementData.tilePath = tilePath; previewCharacterMovementData.targetTile = targetTile; this.previewCharacterMovement.Raise(previewCharacterMovementData); }
public void OnCompleteCharacterAction(CharacterEventData characterEventData) { if (this.character == characterEventData.character) { Character completedCharacter = characterEventData.character; completedCharacter.SetActed(); completedCharacter.SetOriginTileToCurrentTile(); completedCharacter.ResetPreviousTile(); completedCharacter.ResetPreviewState(); completedCharacter.SetSpriteMaterialGreyscale(); } }