示例#1
0
        public HexMovementLerper(IUnitMovementManager UnitMovementManager, IMonoDatabase MonoDatabase)
        {
            this.UnitMovementManager = UnitMovementManager;
            this.MonoDatabase        = MonoDatabase;

            UnitMovementManager.UnitPositionChange += OnUnitPositionChange;
        }
示例#2
0
        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;
        }
示例#4
0
 public GameLoop(IHexDatabase hexDatabase, IUnitMovementManager unitMovementManager)
 {
     HexDatabase         = hexDatabase;
     UnitMovementManager = unitMovementManager;
 }