啟動原始碼-用source code看Source Code - 電影

Daniel avatar
By Daniel
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();//快樂的結局
}
}

--
Tags: 電影

All Comments

Emma avatar
By Emma
at 2011-04-27T08:38
可以重新排版嗎
Cara avatar
By Cara
at 2011-05-01T05:57
這是爪哇嗎 原po也太閒 XD
Elvira avatar
By Elvira
at 2011-05-05T14:25
看這篇文章使用的翻譯人名 八成是看盜版
Zanna avatar
By Zanna
at 2011-05-09T12:45
我去電影院看 人名用wiki查的
Elma avatar
By Elma
at 2011-05-11T11:30
http://ppt.cc/cNzX
Isabella avatar
By Isabella
at 2011-05-13T12:30
三樓一見黑影就開槍
Michael avatar
By Michael
at 2011-05-17T01:24
沒有destructor被安樂死那段Code咧!
Rachel avatar
By Rachel
at 2011-05-17T17:36
JAVA 沒有Destructor XD GoodWin殺了colter就是囉
Ursula avatar
By Ursula
at 2011-05-21T08:03
XDDDD
Odelette avatar
By Odelette
at 2011-05-24T21:59
XD
Necoo avatar
By Necoo
at 2011-05-28T15:55
三樓指控要先有證據唷~
Skylar DavisLinda avatar
By Skylar DavisLinda
at 2011-05-30T02:38
這篇好讚XD
Blanche avatar
By Blanche
at 2011-06-02T07:01
=.=1F code的排版就是這樣
Hedy avatar
By Hedy
at 2011-06-05T07:38
1F沒寫過程式吧 = =
Jack avatar
By Jack
at 2011-06-07T23:42
我剛剛跑了這段程式把電影看完,算不算盜版?
Charlotte avatar
By Charlotte
at 2011-06-09T15:40
wiki的人名好像是錯的
Elizabeth avatar
By Elizabeth
at 2011-06-12T03:54
維基百科(不可簡稱wiki)的內容是由中國網友寫的 並不是有錯
Ethan avatar
By Ethan
at 2011-06-15T09:48
如果有人願提供台灣的譯法 我可以協助讓台灣正體版做出對應
Caroline avatar
By Caroline
at 2011-06-20T03:02
我剛剛拿去"砍拍樂"一下 發現我進入自強號 旁邊坐了一個正妹
Delia avatar
By Delia
at 2011-06-23T00:40
然後8分鐘就出來推文了!!!
Jacob avatar
By Jacob
at 2011-06-23T12:53
GOOD
Isla avatar
By Isla
at 2011-06-24T14:57
XDDDDDDDDDDDDDDDDDDDDDDDDDDD
Olga avatar
By Olga
at 2011-06-28T20:45
XD.java:37: ';' expected 這要怎麼改啊...
Noah avatar
By Noah
at 2011-07-01T08:11
sean.call (POLICE));
^
Skylar Davis avatar
By Skylar Davis
at 2011-07-04T21:21
快推, 不然會被發現我看不懂
Bethany avatar
By Bethany
at 2011-07-07T18:21
巢狀排版~都不縮排會很難Debug喔!
Zora avatar
By Zora
at 2011-07-10T16:01
這篇被m的點是......?
Poppy avatar
By Poppy
at 2011-07-13T18:55
我該轉去 programming 版嗎 @@
對, 別用 tab 排, 使用 4-space 吧 XD
Ethan avatar
By Ethan
at 2011-07-18T11:01
37 行多打了一個 right paranthesis
parenthesis XD
Megan avatar
By Megan
at 2011-07-21T12:09
幾罷昏
Mia avatar
By Mia
at 2011-07-25T21:29
Ina avatar
By Ina
at 2011-07-28T16:23
酷耶
John avatar
By John
at 2011-08-01T03:31
推推推!!!
Noah avatar
By Noah
at 2011-08-04T22:04
資工人當然要推一下
Una avatar
By Una
at 2011-08-09T01:24
1F XDDDD
Mason avatar
By Mason
at 2011-08-12T21:29
1F不錯笑~
Adele avatar
By Adele
at 2011-08-15T21:56
這個程式碼也排版的太工整了
George avatar
By George
at 2011-08-17T05:19
靠盃 看不懂全部 但部分懂xd
Connor avatar
By Connor
at 2011-08-17T14:32
XD Good
Gary avatar
By Gary
at 2011-08-18T00:07
XD
Oliver avatar
By Oliver
at 2011-08-22T09:48
一股濃濃的宅味
Kyle avatar
By Kyle
at 2011-08-24T15:44
被m的點是...?
Oliver avatar
By Oliver
at 2011-08-29T05:07
股濃濃的宅味
Harry avatar
By Harry
at 2011-08-29T11:37
給我過大大跑來這裡XDDDDDDDDDDDD
Lily avatar
By Lily
at 2011-09-02T19:23
寫c寫到走火入魔了,推一下
Xanthe avatar
By Xanthe
at 2011-09-06T08:55
寫Java推推
Freda avatar
By Freda
at 2011-09-09T11:37
這種無聊文也要 M?
Mia avatar
By Mia
at 2011-09-11T01:55
好酷喔
Yuri avatar
By Yuri
at 2011-09-14T03:50
很有創意阿
Damian avatar
By Damian
at 2011-09-18T16:57
這太屌了XDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDDD
Madame avatar
By Madame
at 2011-09-19T21:50
推阿!
Margaret avatar
By Margaret
at 2011-09-20T17:27
XD
Kama avatar
By Kama
at 2011-09-24T21:41
沒想到居然有人反這篇神文,太不可思議了!!
Kumar avatar
By Kumar
at 2011-09-26T18:36
太神啦
Hedy avatar
By Hedy
at 2011-09-28T17:29
朝聖

小小影評 3D肉蒲團之極樂寶鑑-胸部不會飛出來

Enid avatar
By Enid
at 2011-04-20T13:25
內文含豐富大雷,請趕快出去 網誌無音樂有圖有真相版:http://gogojimmy.net/?p=82 其實也沒有甚麼好丟臉的,去太晚還怕買不到好座位,散場時我看大概有一半是女生, 所以我想各路英雄好漢是不用擔心去買票時會很丟臉的問題了,只是售票員會大聲重複 你買甚麼著實讓人有點尷尬… 憑良心說,這 ...

《非普通教慾》:黑色荒謬劇,極權變奏曲

James avatar
By James
at 2011-04-19T14:41
http://blog.yam.com/tzaralin/article/37331762 《非普通教慾》:黑色荒謬劇,極權變奏曲 文:Tzara   築高的圍牆,謎樣的別墅,一男二女,兄妹同住。在這 看似優渥富裕的生活環境,除了父母雙親,以及排解哥哥性 需求的援交女子,兄妹一生未曾與外界接觸,外人也不得 ...

奪魂鋸

Edward Lewis avatar
By Edward Lewis
at 2011-04-18T21:08
有人在看奪魂鋸嗎 我1到7集都有看過歐 有誰跟我一樣呢 歡迎愛看血腥片的人 加入奪魂鋸 - ...

妖顏惑眾

Emma avatar
By Emma
at 2011-04-18T11:01
你是妖 我是人 我們一點關係都沒有 如果 你是妖 還是個正妖 我是人 還是個有種的人 那就新倩女幽魂了 我有罪嗎? god~ - ...

《艋舺》淺薄的友情,虛假的義氣

John avatar
By John
at 2011-04-17T13:00
雖然《艋舺》是近年來繼《海角七號》之後票房破億的國片,但是根據我在網路上 搜尋到的觀後感或影評,批評的聲浪稍嫌大了點。當然給予《艋舺》好評的觀後感 跟影評還是居多,不過就破億的電影來說,劣評似乎有點多。 然而,比起網路上的評論,即便是專業評論家的評論,我也比較傾向相信「市場」 這項價值(特別是大眾取向的創作 ...