Пример #1
0
 public CombatHelper(IHommRobot robot)
 {
     this.robot   = robot;
     world        = robot.World;
     player       = robot.Player;
     hommEngine   = world.HommEngine;
     commonEngine = world.CommonEngine;
 }
Пример #2
0
 public RoundToUnityConnecter(IHommEngine hommEngine, ICommonEngine commonEngine,
                              IHommUserInterfaceEngine uiEngine, HommObjectsCreationHelper objectsCreationHelper)
 {
     this.uiEngine              = uiEngine;
     this.hommEngine            = hommEngine;
     this.commonEngine          = commonEngine;
     this.objectsCreationHelper = objectsCreationHelper;
 }
Пример #3
0
        public PudgeWorldEngine(ICommonEngine commonEngine)
        {
            _commonEngine = commonEngine;

            _treePrefab            = AssetLoader.LoadAsset <GameObject>("pudge", "Tree");
            _wardPrefab            = AssetLoader.LoadAsset <GameObject>("pudge", "Ward");
            _hookPrefab            = AssetLoader.LoadAsset <GameObject>("pudge", "Hook");
            _daggerExplosionPrefab = AssetLoader.LoadAsset <GameObject>("pudge", "DaggerExplosion");
            _pudgePrefab           = AssetLoader.LoadAsset <GameObject>("pudge", "PudgePrefab");
            _slardarPrefab         = AssetLoader.LoadAsset <GameObject>("pudge", "Slardar");
            _grassTexture          = AssetLoader.LoadAsset <Texture>("pudge", "GrassTexture");
        }
Пример #4
0
        public MovementHelper(IHommRobot robot, Direction movementDirection)
        {
            this.robot             = robot;
            this.movementDirection = movementDirection;

            world        = robot.World;
            hommEngine   = world.HommEngine;
            commonEngine = world.CommonEngine;
            player       = robot.Player;
            map          = world.Round.Map;

            newLocation      = player.Location.NeighborAt(movementDirection);
            movementDuration = GetTravelDuration(player, map);
        }
Пример #5
0
 public static bool IsAttached(this ICommonEngine engine, string objectId)
 {
     return(engine.FindParent(objectId) != null);
 }
Пример #6
0
        private const float hexHeight = 1; // !

        public HommEngine(ICommonEngine commonEngine)
        {
            this.commonEngine = commonEngine;
        }
Пример #7
0
 public void StartEngines(List <IEngine> engines)
 {
     this.engines = engines.ToDictionary(z => z.GetType().Name, z => z);
     commonEngine = engines.OfType <ICommonEngine>().Single();
     Debugger.Log("Engines started");
 }