public CombatHelper(IHommRobot robot) { this.robot = robot; world = robot.World; player = robot.Player; hommEngine = world.HommEngine; commonEngine = world.CommonEngine; }
public RoundToUnityConnecter(IHommEngine hommEngine, ICommonEngine commonEngine, IHommUserInterfaceEngine uiEngine, HommObjectsCreationHelper objectsCreationHelper) { this.uiEngine = uiEngine; this.hommEngine = hommEngine; this.commonEngine = commonEngine; this.objectsCreationHelper = objectsCreationHelper; }
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"); }
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); }
public static bool IsAttached(this ICommonEngine engine, string objectId) { return(engine.FindParent(objectId) != null); }
private const float hexHeight = 1; // ! public HommEngine(ICommonEngine commonEngine) { this.commonEngine = commonEngine; }
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"); }