OSDN Git Service
(root)
/
chnosproject
/
AI004.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
エッジの同期を追加。まだ不完全。
[chnosproject/AI004.git]
/
aijobbas.js
1
function AI_Job(env){
2
this.env = env;
3
}
4
AI_Job.prototype = {
5
tick: function(){
6
//定期的に呼ばれることを期待する
7
//戻り値がundefinedで処理終了
8
},
9
input: function(s){
10
//ジョブが登録されているときに入力があると呼ばれる。
11
//戻り値がundefinedで処理終了
12
},
13
addJobToStack: function(){
14
this.env.think.jobStack.push(this);
15
},
16
/*
17
dequeueJob(): function(){
18
19
},
20
*/
21
}