Exemple #1
0
        /*-------------------------------------------------
         *              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();
     }
 }
Exemple #4
0
        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);
     }
 }
Exemple #6
0
        private void RaiseClearCombatCharacterEvent(Character character)
        {
            CharacterEventData clearCharacterCombatData = new CharacterEventData();

            clearCharacterCombatData.character = character;

            this.clearCharacterCombat.Raise(clearCharacterCombatData);
        }
Exemple #7
0
        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
             );
     }
 }
Exemple #10
0
 /*-------------------------------------------------
  *                  Event Handlers
  * --------------------------------------------------*/
 public void OnSetUpCharacter(CharacterEventData characterEventData)
 {
     if (this.character == characterEventData.character)
     {
         characterEventData.character.SetUp(
             characterEventData.team,
             characterEventData.tile
             );
     }
 }
Exemple #11
0
        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);
        }
Exemple #12
0
 public void OnCompleteCharacterAction(CharacterEventData characterEventData)
 {
     if (this.character == characterEventData.character)
     {
         Character completedCharacter = characterEventData.character;
         completedCharacter.SetActed();
         completedCharacter.SetOriginTileToCurrentTile();
         completedCharacter.ResetPreviousTile();
         completedCharacter.ResetPreviewState();
         completedCharacter.SetSpriteMaterialGreyscale();
     }
 }