public static void runStoryBoards() { long currentTicks = StoryBoardEx.getMyTimer(); StoryBoardEx.LastRunStoryTicks = currentTicks; List <StoryBoardEx> list = new List <StoryBoardEx>(); foreach (StoryBoardEx sb in StoryBoardEx.StoryBoardDict.Values) { list.Add(sb); } for (int i = 0; i < list.Count; i++) { StoryBoardEx sb = list[i]; if (null != sb) { sb.Run(currentTicks); } } }
public bool Start(Monster obj, List <ANode> path, double movingSpeedPerFrame, int cellSize) { bool result; if (this._Started) { result = false; } else { this._OrigMovingSpeedPerFrame = movingSpeedPerFrame; this._MovingSpeedPerFrame = movingSpeedPerFrame; this._MovingObj = obj; this._LastRunTicks = StoryBoardEx.getMyTimer(); this._CellSize = cellSize; this._PathIndex = 0; this._Path = path; this._CompletedState = false; this._Started = true; result = true; } return(result); }