作者coldfly (// Forsaken)
看板TigerBlue
標題Re: [創作] 腐女 v1.0
時間Mon Nov 26 17:07:09 2007
※ 引述《averywu (我是阿Q )》之銘言:
// port to C....:P
#include <otaku_f.h>
#include <otaku_f/comic.h>
#include <otaku_f/cake.h>
#include <otaku_f/coffee.h>
#include <otaku_f/util/identify.h>
using namespace otaku_f;
enum eSch {
study = 1, homework, sleep, internet
};
status_t system_status = checkpc(PC_MYPC);
msn_status_t tools_status = msn.getGroup("tools", STATUS, true);
int schedule = getSchedule(SC_TODAY);
status_t tools;
int main(int argc, char * argv[]) {
int i, t;
spec_t attack, defense;
photo_t photo;
album_t album;
if(!schedule) schedule = sleep;
switch(schedule) {
case study:
while(schedule) readComic();
break;
case homework:
while(schedule) playGame();
break;
case sleep:
BBS ptt = runSomethingEx("telnet ptt.cc");
ptt.login(_username, _password);
ptt.goto("Hate");
break;
case internet:
BROWSER browser;
browser.init("Firefox", "Iexplore", LST_BROWSER);
if(browser.status()) {
t = getClock();
while(testTimeOut(t)) {
getPhoto(PH_MALE, EV_NICE, &photo)
identifyPhoto(&attack,&defense);
if(attack>defense)
photo.spec = SP_ATK;
else
photo.spec = SP_DEF;
album.push_back(photo);
}
}
break;
}
if(system_status.getValue() & PC_BROKEN) {
for(i=0;i<tools_status.size();i++) {
msn.setTarget(tools_status[i]);
msn.sendMessage(HI,I need you ^_<");
msn.waitMessage();
if(msn.status & TIME_OUT && strEq(msn.response, "")
msn.moveGroup(i, "block);
else
tools = ST_OK;
}
if(tools != ST_OK) {
msn_status_t new_tools;
new_tools = msn.getGroup("photo")
for(i=0;i<new_tools.size();i++) {
if(new_tools[i].photo.eval() == EV_GREAT)
msn.moveTo(new_tools[i], "ATM");
else if(new_tools[i].photo.eval() == EV_NICE)
msn.moveTo(new_tools[i], "goodman");
else if(new_tools[i].photo.eval() == EV_GREAT)
msn.moveTo(new_tools[i], "tools");
}
}
}
}
--
Shattered Hand Assassin [
Aimed shot (1.09)]
(…)
○ゞ ○_▇▄▄▂
Black Rat
<│ /﹀
↓ …狩るか、狩られるか。
/\ />
@~ WOW::zhTW, 米奈希爾, Kal
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 163.23.231.89