Exemplo n.º 1
0
Arquivo: Active.cs Projeto: odmiex/NKM
 public Active(Game game)
 {
     Game         = game;
     Phase        = new Phase(game);
     Turn         = new Turn(game);
     AirSelection = new AirSelection(game);
     IsDebug      = true;
 }
Exemplo n.º 2
0
Arquivo: Active.cs Projeto: odmiex/NKM
 public void Clean()
 {
     RemoveMoveCells();
     if (AirSelection.IsEnabled)
     {
         AirSelection.Disable();
     }
     Ability  = null;
     Action   = Action.None;
     HexCells = null;
     Game.HexMapDrawer.RemoveAllHighlights();
 }
Exemplo n.º 3
0
 public void Clean()
 {
     RemoveMoveCells();
     if (AirSelection.IsEnabled)
     {
         AirSelection.Disable();
     }
     AbilityToUse = null;
     Action       = Action.None;
     HexCells     = null;
     Game.HexMapDrawer.RemoveHighlights();
     Game.HexMapDrawer.RemoveHighlightsOfColor(Highlights.BlueTransparent);
 }
Exemplo n.º 4
0
Arquivo: Active.cs Projeto: odmiex/NKM
 public void Reset()
 {
     Ability?.OnUseFinish();
     if (IsActiveUse || Turn.IsDone)
     {
         CharacterOnMap?.Deselect();
     }
     Ability      = null;
     HexCells     = null;
     MyGameObject = null;
     Action       = Action.None;
     if (AirSelection.IsEnabled)
     {
         AirSelection.Disable();
     }
 }
Exemplo n.º 5
0
    public void Reset()
    {
//		((Ability)AbilityToUse)?.Finish();
        if (IsActiveUse || Turn.IsDone)
        {
            CharacterOnMap?.Deselect();
        }
        AbilityToUse = null;
        HexCells     = null;
        NkmObject    = null;
        SelectedCell = null;
        Action       = Action.None;
        if (AirSelection.IsEnabled)
        {
            AirSelection.Disable();
        }
    }
Exemplo n.º 6
0
 public Active()
 {
     Phase        = new Phase();
     Turn         = new Turn();
     AirSelection = new AirSelection();
 }