private void Click(object s, TileClickedEventArgs e) { if (Clicked != null) { Clicked(s, e); } }
private void TileHoverExited(object s, TileClickedEventArgs e) { if (TileHoverExit != null) { TileHoverExit(s, e); } }
private void TileHoverEntered(object s, TileClickedEventArgs e) { if (TileHoverEnter != null) { TileHoverEnter(s, e); } }
private void OnTileClicked(object s, TileClickedEventArgs e) { gbattle.AddBeing(MetaBeingToAdd, e.Tile.X, e.Tile.Y); var mb = MetaBeingToAdd; Cancel(); panels[mb].SetActive(false); }
private void BeingTileCommand(object s, TileClickedEventArgs e) { if (Battle.activeBeing != null) { Tile tile = e.Tile; if (!ActiveBeing.ActionTaken && SelectedSkill != null) { PendingGameEvent = ActiveBeing.Perform(SelectedSkill, tile); } else if (!ActiveBeing.ActionTaken && tile.Inhabitant != null && tile != ActiveBeing.Place) { PendingGameEvent = ActiveBeing.Perform(ActiveBeing.Skills.First(), tile); //standard attack } else if (SelectedSkill == null && tile.Inhabitant == null && !ActiveBeing.Moved) { ActiveBeing.Move(tile); if (ActiveBeing.Moved) //may be false if turn ended and activebeing changed { UndisplayMovementArea(); } } } }
protected virtual void TileClicked(Map map, TileClickedEventArgs args) { if (map.PlacingBuilding) { if (map.BuildingPlacementInfo.CanPlace) map.EndBuildingPlacement(args.Tile.Location); } else map.CenterTile = args.Tile.Location; }
private void OnTileHoverEnter(object s, TileClickedEventArgs e) { GBeingToAdd.transform.position = new Vector3(e.Tile.X, e.Tile.Height * GTileS.HeightMultiplier, e.Tile.Y); }