public HexMovementLerper(IUnitMovementManager UnitMovementManager, IMonoDatabase MonoDatabase) { this.UnitMovementManager = UnitMovementManager; this.MonoDatabase = MonoDatabase; UnitMovementManager.UnitPositionChange += OnUnitPositionChange; }
public EnemyAI(ICrossPlayerController CrossPlayerController, ITurnManager TurnManager, IHexPathfinder HexPathfinder, IUnitMovementManager UnitMovementManager) { this.CrossPlayerController = CrossPlayerController; this.TurnManager = TurnManager; this.HexPathfinder = HexPathfinder; this.UnitMovementManager = UnitMovementManager; TurnManager.TurnStarted += OnTurnStarted; UnitMovementManager.UnitPositionChangeEnd += OnUnitPositionChangeEnd; }
public TurnOwnerHighlight(ITurnManager TurnManager, IHexHighlighter HexHighlighter, IUnitMovementManager UnitMovementManager) { this.HexHighlighter = HexHighlighter; this.TurnManager = TurnManager; this.UnitMovementManager = UnitMovementManager; TurnManager.TurnStarted += OnTurnStarted; TurnManager.TurnEnded += OnTurnEnded; UnitMovementManager.UnitPositionChange += OnUnitPositionChange; UnitMovementManager.UnitPositionChangeEnd += OnUnitPositionChangeEnd; }
public GameLoop(IHexDatabase hexDatabase, IUnitMovementManager unitMovementManager) { HexDatabase = hexDatabase; UnitMovementManager = unitMovementManager; }