啟動原始碼-用source code看Source Code - 電影
By Daniel
at 2011-04-25T10:31
at 2011-04-25T10:31
Table of Contents
class Task extends TimerTask {
public void run() {
//計時八分鐘
}
}
public class SourceCode {
//建立一個Sean
private Sean sean;
public SourceCode(Sean sean){
this.sean = sean;
//Sean醒來
sean.wakeUp();
//Sean跟Christina說話
sean.talkToChristina();
//建立Sean事件
setListener();
}
public void setListener(){
sean.addSearchListener(
new SearchListener(){
public void Hit(SearchEvent e){
//Sean打人啊~
sean.hit(e.action);
}
public void goThrough(SearchEvent e){
//Sean亂翻東西
sean.goThrough(e.action);
}
public void findSuspect(SearchEvent e){
switch(e.action){
//抓到炸彈客
case catchDerekFrost:
//把炸彈客鎖起來
sean.lockDerekFrost();
//打電話叫警察
sean.call(POLICE);
break;
//抓炸彈客失敗
case catchDerekFrostFail:
//Sean被殺了
sean.die();
break;
}
}
public void call(SearchEvent e){
switch(e.action){
//Sean打電話給老爸
case CALL_FATHER:
sean.call(FATHER);
break;
//Sean打電話去空軍基地
case CALL_AIR_BASE:
sean.call(AIR_BASE);
break;
}
}
public void talk(SearchEvent e){
switch(e.action){
//Sean跟搞笑藝人講話
case MaxDenoff:
//Sean噴錢了
sean.payMoney(MaxDenoff);
break;
//Sean跟Christina講話
case Christina:
//Sean跟Christina親親
sean.kiss(Christina);
break;
//Sean跟炸彈客講話
case DerekFrost:
//Sean開槍射炸彈客
sean.shoot(DerekFrost);
break;
}
}
});
}
//火車爆炸
public void TrainBomb(){
//Sean死掉了
sean.die();
//Sean被回收
sean.gc();
}
public static void main(String[] argc){
while(true){
//Colter跟Goodwin說話
colter.talkToGoodwin();
//Colter跟博士說話
colter.talkToDrRutledge();
//Colter生氣 或者 Colter跟博士交易成功
if(colter.angry()||colter.deal()){
//建立八分鐘計時器
Timer timer = new Timer();
//建立Source code物件
SourceCode sourceCode = new SourceCode(colter);
//8分鐘過後
timer.schedule(new Task(), 480000);
//火車爆炸
sourceCode.TrainBomb();
}
if(GoodWinKillColter){
//Goodwin殺了Colter
break;
}
}
HappyEnd();//快樂的結局
}
}
--
public void run() {
//計時八分鐘
}
}
public class SourceCode {
//建立一個Sean
private Sean sean;
public SourceCode(Sean sean){
this.sean = sean;
//Sean醒來
sean.wakeUp();
//Sean跟Christina說話
sean.talkToChristina();
//建立Sean事件
setListener();
}
public void setListener(){
sean.addSearchListener(
new SearchListener(){
public void Hit(SearchEvent e){
//Sean打人啊~
sean.hit(e.action);
}
public void goThrough(SearchEvent e){
//Sean亂翻東西
sean.goThrough(e.action);
}
public void findSuspect(SearchEvent e){
switch(e.action){
//抓到炸彈客
case catchDerekFrost:
//把炸彈客鎖起來
sean.lockDerekFrost();
//打電話叫警察
sean.call(POLICE);
break;
//抓炸彈客失敗
case catchDerekFrostFail:
//Sean被殺了
sean.die();
break;
}
}
public void call(SearchEvent e){
switch(e.action){
//Sean打電話給老爸
case CALL_FATHER:
sean.call(FATHER);
break;
//Sean打電話去空軍基地
case CALL_AIR_BASE:
sean.call(AIR_BASE);
break;
}
}
public void talk(SearchEvent e){
switch(e.action){
//Sean跟搞笑藝人講話
case MaxDenoff:
//Sean噴錢了
sean.payMoney(MaxDenoff);
break;
//Sean跟Christina講話
case Christina:
//Sean跟Christina親親
sean.kiss(Christina);
break;
//Sean跟炸彈客講話
case DerekFrost:
//Sean開槍射炸彈客
sean.shoot(DerekFrost);
break;
}
}
});
}
//火車爆炸
public void TrainBomb(){
//Sean死掉了
sean.die();
//Sean被回收
sean.gc();
}
public static void main(String[] argc){
while(true){
//Colter跟Goodwin說話
colter.talkToGoodwin();
//Colter跟博士說話
colter.talkToDrRutledge();
//Colter生氣 或者 Colter跟博士交易成功
if(colter.angry()||colter.deal()){
//建立八分鐘計時器
Timer timer = new Timer();
//建立Source code物件
SourceCode sourceCode = new SourceCode(colter);
//8分鐘過後
timer.schedule(new Task(), 480000);
//火車爆炸
sourceCode.TrainBomb();
}
if(GoodWinKillColter){
//Goodwin殺了Colter
break;
}
}
HappyEnd();//快樂的結局
}
}
--
Tags:
電影
All Comments
By Emma
at 2011-04-27T08:38
at 2011-04-27T08:38
By Cara
at 2011-05-01T05:57
at 2011-05-01T05:57
By Elvira
at 2011-05-05T14:25
at 2011-05-05T14:25
By Zanna
at 2011-05-09T12:45
at 2011-05-09T12:45
By Elma
at 2011-05-11T11:30
at 2011-05-11T11:30
By Isabella
at 2011-05-13T12:30
at 2011-05-13T12:30
By Michael
at 2011-05-17T01:24
at 2011-05-17T01:24
By Rachel
at 2011-05-17T17:36
at 2011-05-17T17:36
By Ursula
at 2011-05-21T08:03
at 2011-05-21T08:03
By Odelette
at 2011-05-24T21:59
at 2011-05-24T21:59
By Necoo
at 2011-05-28T15:55
at 2011-05-28T15:55
By Skylar DavisLinda
at 2011-05-30T02:38
at 2011-05-30T02:38
By Blanche
at 2011-06-02T07:01
at 2011-06-02T07:01
By Hedy
at 2011-06-05T07:38
at 2011-06-05T07:38
By Jack
at 2011-06-07T23:42
at 2011-06-07T23:42
By Charlotte
at 2011-06-09T15:40
at 2011-06-09T15:40
By Elizabeth
at 2011-06-12T03:54
at 2011-06-12T03:54
By Ethan
at 2011-06-15T09:48
at 2011-06-15T09:48
By Caroline
at 2011-06-20T03:02
at 2011-06-20T03:02
By Delia
at 2011-06-23T00:40
at 2011-06-23T00:40
By Jacob
at 2011-06-23T12:53
at 2011-06-23T12:53
By Isla
at 2011-06-24T14:57
at 2011-06-24T14:57
By Olga
at 2011-06-28T20:45
at 2011-06-28T20:45
By Noah
at 2011-07-01T08:11
at 2011-07-01T08:11
By Skylar Davis
at 2011-07-04T21:21
at 2011-07-04T21:21
By Bethany
at 2011-07-07T18:21
at 2011-07-07T18:21
By Zora
at 2011-07-10T16:01
at 2011-07-10T16:01
By Poppy
at 2011-07-13T18:55
at 2011-07-13T18:55
By Ethan
at 2011-07-18T11:01
at 2011-07-18T11:01
By Megan
at 2011-07-21T12:09
at 2011-07-21T12:09
By Mia
at 2011-07-25T21:29
at 2011-07-25T21:29
By Ina
at 2011-07-28T16:23
at 2011-07-28T16:23
By John
at 2011-08-01T03:31
at 2011-08-01T03:31
By Noah
at 2011-08-04T22:04
at 2011-08-04T22:04
By Una
at 2011-08-09T01:24
at 2011-08-09T01:24
By Mason
at 2011-08-12T21:29
at 2011-08-12T21:29
By Adele
at 2011-08-15T21:56
at 2011-08-15T21:56
By George
at 2011-08-17T05:19
at 2011-08-17T05:19
By Connor
at 2011-08-17T14:32
at 2011-08-17T14:32
By Gary
at 2011-08-18T00:07
at 2011-08-18T00:07
By Oliver
at 2011-08-22T09:48
at 2011-08-22T09:48
By Kyle
at 2011-08-24T15:44
at 2011-08-24T15:44
By Oliver
at 2011-08-29T05:07
at 2011-08-29T05:07
By Harry
at 2011-08-29T11:37
at 2011-08-29T11:37
By Lily
at 2011-09-02T19:23
at 2011-09-02T19:23
By Xanthe
at 2011-09-06T08:55
at 2011-09-06T08:55
By Freda
at 2011-09-09T11:37
at 2011-09-09T11:37
By Mia
at 2011-09-11T01:55
at 2011-09-11T01:55
By Yuri
at 2011-09-14T03:50
at 2011-09-14T03:50
By Damian
at 2011-09-18T16:57
at 2011-09-18T16:57
By Madame
at 2011-09-19T21:50
at 2011-09-19T21:50
By Margaret
at 2011-09-20T17:27
at 2011-09-20T17:27
By Kama
at 2011-09-24T21:41
at 2011-09-24T21:41
By Kumar
at 2011-09-26T18:36
at 2011-09-26T18:36
By Hedy
at 2011-09-28T17:29
at 2011-09-28T17:29
Related Posts
小小影評 3D肉蒲團之極樂寶鑑-胸部不會飛出來
By Enid
at 2011-04-20T13:25
at 2011-04-20T13:25
《非普通教慾》:黑色荒謬劇,極權變奏曲
By James
at 2011-04-19T14:41
at 2011-04-19T14:41
奪魂鋸
By Edward Lewis
at 2011-04-18T21:08
at 2011-04-18T21:08
妖顏惑眾
By Emma
at 2011-04-18T11:01
at 2011-04-18T11:01
《艋舺》淺薄的友情,虛假的義氣
By John
at 2011-04-17T13:00
at 2011-04-17T13:00