public bool idle; // Movement with idle=true won't be excuted by move() public Movement(CubeHandle handle, double translate, double rotate, int durationMs = 500, bool reached = false, bool idle = false, Cube.ORDER_TYPE order = Cube.ORDER_TYPE.Weak) { this.handle = handle; this.translate = translate; this.rotate = rotate; this.durationMs = durationMs; this.reached = reached; this.idle = idle; this.order = order; }
protected void AddCube(Cube cube) { if (this.cubeTable.ContainsKey(cube.id)) { return; } this.cubes.Add(cube); var handle = new CubeHandle(cube); this.handles.Add(handle); this.navigators.Add(new CubeNavigator(handle)); this.cubeTable.Add(cube.id, cube); }
public bool IsControllable(CubeHandle handle) { return(IsControllable(handle.cube)); }