1. Software Requirement Specification- IT Service Request Form
Software Requirement Specification
Document-Toilet Janitor
T.S.Huang 2010/03/17
Table of Contents
1.0 APPROVAL FORM………………………………………………………………………………3
1.1 PREFACE……………………………………………………………………………………….4
1.1.1 What is this document………………………………………………………………………….4
1.1.2 Who should read this document………………………………………………………………4
1.1.3 Related documents……………………………………………………………………………...4
1.1.4 Assumptions……………………………………………………………………………………4
1.1.5 Constraints………………………………………………………………………………………4
1.1.6 Definitions, Acronyms and Abbreviations……………………………………………………4
1.2 OVERVIEW OF LOGICAL FUNCTION COMPONENTS……………………………………………..5
1.3 FUNCTION LIST…………………………………………………………………………………6
Organization
Original Power Create Co.
Title/Subject
Toilet Janitor
Doc Number
Owner: T.S.Huang Approved by Date 5/7/2015 Version 1.0 Page 1
2. Software Requirement Specification- IT Service Request Form
1.4 FUNCTIONAL SPECIFICATION……………………………………………………………………6
1.4.1 GUI for Function………………………………………………………………………………..6
PLEASE DESCRIBE THE DETAILS OF OUTPUT FROM THE BUSINESS PROCESS
1.5 USE CASE MODEL – OOAD…………………………………………………………………15
1.6 USE CASE DESCRIPTION - OOAD
1.6.1 Use Case <Use Case 1>
1.6.1.1 Description
1.6.1.2 Flow of Events
1.6.1.3 Special Requirements (option)
1.6.1.4 Precondition
1.6.1.5 Post Condition
1.6.1.6 Special Constraint (Option)
1.6.1.7 GUI Interface (Option)
1.6.2 Use Case <Use Case 2>
1.7 Domain Object List - OOAD
1.1 Preface
1.1.1 What is this document
這份文件是由系統分析者的角度來撰寫 Toilet Janitor 的軟體需求規格書提供一
個解決方案給程式設計師,因此文件內容將描述遊戲運作的流程和邏輯判斷等相
關資訊.
1.1.2 Who should read this document
System Key users : 協助遊戲開發與測試的 Key user.
SA & SD : 負責設計企畫的設計師.
Programer : 負責開發的程式設計師.
Other users: 其他協力開發者(美工、音樂…).
1.1.3 Related documents
User Requirement Document.
Organization
Original Power Create Co.
Title/Subject
Toilet Janitor
Doc Number
Owner: T.S.Huang Approved by Date 5/7/2015 Version 1.0 Page 2
3. Software Requirement Specification- IT Service Request Form
1.1.4 Assumptions
本文件由 T.S.自行檢討與撰寫.
本文件僅供 iPhone Game- Toilet Janitor 開發使用.
1.1.5 Constraints
NA
1.1.6 Definitions, Acronyms and Abbreviations
Abbreviation Description
GUI Graphic User Interface
Flow chart descriptions and samples:
Flow chart Description Sample
Initial status
Decision condition
Input data
Process
Organization
Original Power Create Co.
Title/Subject
Toilet Janitor
Doc Number
Owner: T.S.Huang Approved by Date 5/7/2015 Version 1.0 Page 3
Start to track
in
Hold or
not
Lot Id
EQPId
Confirm lot qty
4. Software Requirement Specification- IT Service Request Form
Process with system function
(Superscript “Pxx” is for function
number related to section 4.2.2.1)
User prepare data
Output
Terminal point
Data preparation
1.2 Overview of Logical Function Components
N/A
1.3 Function List
1. 遊戲主選單介面
Organization
Original Power Create Co.
Title/Subject
Toilet Janitor
Doc Number
Owner: T.S.Huang Approved by Date 5/7/2015 Version 1.0 Page 4
Track in
Prepare
Lot
list
Result of
Track In
action
Track in complete
Query MES
Data
5. Software Requirement Specification- IT Service Request Form
難易度選取
相片匯入或 Bonus 人物設定選取介面
中英文版本選取?(初步決定只有英文版)
Help 說明介面
讀取存檔記錄介面
2. 角色選取介面
3. 商店購物介面(關卡分段點介面)
4. 主遊戲介面
Janitor 介面
Usher 介面
5. 結束介面
Game over
破關-人物介紹
1.4 Functional Specification
1.4.1 遊戲主選單介面:
1. 遊戲選單- Choice role、Voice setup、Photo import、Help
2. 畫面重覆播放遊戲片頭曲
3. “Play” 按鈕 =>進入到角色輸入介面
4. “Voice setup” 按鈕=> 開關音樂
5. “ Photo import” 按鈕=>進入相片裁剪區,匯入大頭照後,選擇 Body(男、女、
小孩、老人) ?匯入相片後,畫面圖示縮小看不清楚是否有意義?是否要改
為選特定 NPC 角色?或者取名字?特色賣點?
Organization
Original Power Create Co.
Title/Subject
Toilet Janitor
Doc Number
Owner: T.S.Huang Approved by Date 5/7/2015 Version 1.0 Page 5
Photo
確認
取消
Choice role
Voice setup
Photo import
Help
6. Software Requirement Specification- IT Service Request Form
左方是匯入大頭貼相片的功能
右方可選取 NPC 的 Body,被選取的 NPC 會將頭部用縮小的相片替
代(如果難度過高,就改選取特定的 NPC 角色)
6. “Help” 按鈕=>進入 Help 說明畫面
1.4.2 角色選取介面:
1. 兩個角色方框,各自有兩個 button,可選取 Play 和 Continue 功能.
2. Play 即開始遊戲(依所選的角色).
3. Continue 即叫出上一次的關卡記錄.
1.4.3 商店購物介面(關卡分段點介面):
1. 遊戲完成一小關後會進入商店採購畫面.
2. 點選+號採購寶物-號賣出寶物
1.4.4 主遊戲介面:
Organization
Original Power Create Co.
Title/Subject
Toilet Janitor
Doc Number
Owner: T.S.Huang Approved by Date 5/7/2015 Version 1.0 Page 6
3 4
4
/
6
可翻頁
Toilet Janitor Toilet Usher
Play
Continue
說明
圖示+標價
圖示+標價
功能說明
功能說明
存檔離開
繼續下一關
300
0
總金額
0
1
數量
+ 購買 ,- 賣出
4/6
1
2
24
6/6
9
12
13
14
15. Software Requirement Specification- IT Service Request Form
片(兩張交替)
1.5.1.4 NPC 直線 Queue 精靈
1.5.1.4.1 Property([Queue id],[位置 id],[顯示圖示],[難易度等級],[位置 x 軸],[位置 y 軸])
Property Easy Normal Hard
[Queue id]
[位置 id] 1~6(共 6 個位置) 1~6(共 6 個位置) 1~6(共 6 個位置)
[顯示圖示]
[難易度等級] Easy Normal Hard
[位置 x 軸]
[位置 y 軸]
1.5.1.4.2 觸發 Event
Event 觸發時機 效果
Event18 當第一位 NPC 補位(狀態為
離開)至每間廁所的 sub
queue(九宮格)時
1. 每位 NPC 精靈物件向前
移動一個位置
2. 觸發 Event19
Event19 當 Queue 最後一個位置空出
位置時
判斷右上方總人數大於 0,自
動補一位 NPC 到最後一格
(所有的 NPC 精靈物件可以
先編號放在 Array 中,random
選取)
Event20(Usher 玩
法)
當 Queue 最後一個位置空出
位置時
持續不斷的隨機產生人補位
Event21(Usher 玩
法)
當第一個位置因下班時間到
了,被放置禁止符號
1. 不再觸發補人的機制
2. 開始記分
1.5.1.5 衛生紙補充區精靈
1.5.1.5.1 Property([Queue id],[位置 id],[顯示圖示],[難易度等級],[位置 x 軸],[位置 y 軸])
Property Easy Normal Hard
[Queue id]
[位置 id] 左、右兩個 左、右兩個 左、右兩個
Organization
Original Power Create Co.
Title/Subject
Toilet Janitor
Doc Number
Owner: T.S.Huang Approved by Date 5/7/2015 Version 1.0 Page 15
16. Software Requirement Specification- IT Service Request Form
[顯示圖示]
[難易度等級] Easy Normal Hard
[位置 x 軸]
[位置 y 軸]
1.5.1.5.2 觸發 Event
Event 觸發時機 效果
Event22 補充區被觸控時 1. 該補充區設定為 Janitor
的目的地,開始項目的
地移動
2. 觸發 Event23
Event23 Janitor 開始行走時 1. 會走到左右兩邊的衛生
紙補充區的位置(目的
地)
2. 和點選最旁邊廁所的位
置是一樣的,但是一個
是面朝左右搬衛生紙
3. 一個是面朝前方補充衛
生紙
Event24(Usher 玩
法)
1. 當所有的廁所衛生紙都足
夠應付下一次的使用時
2. 當 Janitor 的總格數小於廁
所需求數時
1. 自動設定距離最近的補
充區為目的地
2. 觸發 Event22
1.5.1.6 Janitor 行徑路徑精靈
1.5.1.6.1 Property([Queue id],[位置 id],[顯示圖示],[難易度等級],[位置 x 軸],[位置 y 軸],
[對應廁所])
Property Easy Normal Hard
[Queue id]
[位置 id] 1~3(共 3 個位置) 1~4(共 4 個位置) 1~5(共 5 個位置)
[顯示圖示]
[難易度等級] Easy Normal Hard
[位置 x 軸]
[位置 y 軸]
Organization
Original Power Create Co.
Title/Subject
Toilet Janitor
Doc Number
Owner: T.S.Huang Approved by Date 5/7/2015 Version 1.0 Page 16
17. Software Requirement Specification- IT Service Request Form
[對應廁所] 1~3(共 3 個位置) 1~4(共 4 個位置) 1~5(共 5 個位置)
1.5.1.6.2 觸發 Event
Event 觸發時機 效果
Event25 Janitor 開始行走時 1. 會走到左右兩邊的衛生紙
補充區的位置(目的地)-切
換行進圖片
2. 和點選最旁邊廁所的位置
是一樣的,但是一個是面朝
左右搬衛生紙觸發
Event26
3. 一個是面朝前方補充衛生
紙觸發 Event27
Event26 走到衛生紙補區的目的時
(補充區的前一格)
1. 顯示面朝左右搬衛生紙的
圖片
2. Janitor 的衛生紙開始補滿
Event27 走到廁所的目的時 1. 顯示面朝下的補充衛生紙
圖片
2. 將廁所的剩餘衛生紙補充
到最大容量數,並扣除
Janitor 相對的補充量
Event28(Usher 玩
法)
當廁所衛生紙張數減少時 1. 開始計算所有的廁所哪間
衛生紙最少,設為目的地
2. 觸發 Event25 和 Event27
1.5.1.7 9 宮格 Queue 路徑精靈
1.5.1.7.1 Property([Queue id],[位置 id],[顯示圖示],[難易度等級],[位置 x 軸],[位置 y 軸],
[對應廁所],[對應觸控區],[對應路徑])
Property Easy Normal Hard
[Queue id]
[位置 id] Array[3*3]共 9 格 Array[4*3] 共 12 格 Array[5*3] 共 15 格
[顯示圖示]
[難易度等級] Easy Normal Hard
[位置 x 軸]
Organization
Original Power Create Co.
Title/Subject
Toilet Janitor
Doc Number
Owner: T.S.Huang Approved by Date 5/7/2015 Version 1.0 Page 17
18. Software Requirement Specification- IT Service Request Form
[位置 y 軸]
[對應廁所] [1,1],[1,2],[1,3] [1,1],[1,2],[1,3],[1,4] [1,1],[1,2],[1,3],[1,4],[1,5]
[對應觸控區] [2,1],[2,2],[2,3] [2,1],[2,2],[2,3],[2,4] [2,1],[2,2],[2,3],[2,4],[2,5]
[對應路徑] [3,1],[3,2],[3,3] [3,1],[3,2],[3,3],[3,4] [3,1],[3,2],[3,3],[3,4],[3,5]
1.5.1.7.2 觸發 Event
Event 觸發時機 效果
Event29 廁所是空的 1. Check 對應廁所前的
Queue 是否無 NPC
2. 觸發 Event30
Event30 廁所前的位置是空的 1. 自動將位置上的 NPC 往前
補進一格
2. Check 對應觸控區的位置
是否無 NPC
3. 觸發 Event31
Event31 對應觸控區是空的 1. 觸發排隊 NPC Event16
2. 主 Queue 計算後自動設定
為目的地,補上 NPC
Event32(Usher 玩
法)
對應觸控區是空的 1. 觸發排隊 NPC Event12
2. 排隊主 Queue 的第一位
NPC 會走到觸控的目的地
1.6 Workflow
1.6.1 主操作流程(Main Process)
1.6.1.1 Description
1.6.1.2 Flow of Events
1.6.1.2.1 Main Flow
1.6.1.2.2 Sub Flow (Option)
Organization
Original Power Create Co.
Title/Subject
Toilet Janitor
Doc Number
Owner: T.S.Huang Approved by Date 5/7/2015 Version 1.0 Page 18
19. Software Requirement Specification- IT Service Request Form
1.6.1.2.3 Alternative Flows
1.6.1.3 Special Requirements (option)
1.6.1.4 Precondition
1.6.1.5 Post Condition
1.6.1.6 Special Constraint (Option)
1.6.1.7 GUI Interface (Option)
1.5.2 主遊戲流程(Game process)
1.6.2.1 Description
1.6.2.2 Flow of Events
1.6.2.2.1 Main Flow
1.6.2.2.2 Sub Flow (Option)
1.6.2.2.3 Alternative Flows
1.6.3 Use Case < >
1.6.3.1 Description
.
1.6.3.2 Flow of Events
1.6.3.2.1 Main Flow
1.6.3.2.2 Sub Flow (Option)
1.6.3.2.3 Alternative Flows
Organization
Original Power Create Co.
Title/Subject
Toilet Janitor
Doc Number
Owner: T.S.Huang Approved by Date 5/7/2015 Version 1.0 Page 19
20. Software Requirement Specification- IT Service Request Form
1.6.4 Use Case < >
1.6.4.1 Description
.
1.6.4.2 Flow of Events
1.6.4.2.1 Main Flow
1.6.4.2.2 Sub Flow (Option)
1.6.4.2.3 Alternative Flows
1.6.5 Use Case < >
1.6.5.1 Description
1.6.5.2 Flow of Events
1.6.5.2.1 Main Flow
1.6.5.2.2 Sub Flow (Option)
1.6.5.2.3 Alternative Flows
1.6.6 Use Case < >
1.6.6.1 Description
.
1.6.6.2 Flow of Events
1.6.6.2.1 Main Flow
Organization
Original Power Create Co.
Title/Subject
Toilet Janitor
Doc Number
Owner: T.S.Huang Approved by Date 5/7/2015 Version 1.0 Page 20
21. Software Requirement Specification- IT Service Request Form
1.6.6.2.2 Sub Flow ()
1.6.6.2.3 Alternative Flows
1.6.7 Use Case < >
1.6.7.1 Description
1.6.7.2 Flow of Events
1.6.7.2.1 Main Flow
1.6.7.2.2 Sub Flow (Option)
1.6.7.2.3 Alternative Flows
1.6.8 Use Case < >
1.6.8.1 Description
1.6.8.2 Flow of Events
1.6.8.2.1 Main Flow
1.6.8.2.2 Sub Flow (Option)
1.6.8.2.3 Alternative Flows
1.6.9 Use Case < >
1.6.9.1 Description
1.6.9.2 Flow of Events
1.6.9.2.1 Main Flow
Organization
Original Power Create Co.
Title/Subject
Toilet Janitor
Doc Number
Owner: T.S.Huang Approved by Date 5/7/2015 Version 1.0 Page 21
22. Software Requirement Specification- IT Service Request Form
1.6.9.2.2 Sub Flow (Option)
1.6.9.2.3 Alternative Flows
1.6.10 Use Case < >
1.6.10.1 Description
.
1.6.10.2 Flow of Events
1.6.10.2.1 Main Flow
1.6.10.2.2 Sub Flow (Option)
1.6.10.2.3 Alternative Flows
1.6.11 Use Case < >
1.6.11.1 Description
1.6.11.2 Flow of Events
1.6.11.2.1 Main Flow
1.6.11.2.2 Sub Flow (Option)
1.6.11.2.3 Alternative Flows
1.7 Domain Object List - OOAD
N/A
Organization
Original Power Create Co.
Title/Subject
Toilet Janitor
Doc Number
Owner: T.S.Huang Approved by Date 5/7/2015 Version 1.0 Page 22
23. Software Requirement Specification- IT Service Request Form
Organization
Original Power Create Co.
Title/Subject
Toilet Janitor
Doc Number
Owner: T.S.Huang Approved by Date 5/7/2015 Version 1.0 Page 23