目录结构调整
This commit is contained in:
30
codes/games/client/Projects/tgly/js/Box.js
Normal file
30
codes/games/client/Projects/tgly/js/Box.js
Normal file
@@ -0,0 +1,30 @@
|
||||
Box = function(){//构造方法
|
||||
this.state = -1; //方格状态
|
||||
this.sp = -1; //精灵号
|
||||
}
|
||||
if(typeof(Box.prototype.create) == "undefined"){
|
||||
Box.prototype.create = function(sp){//创建方格
|
||||
|
||||
};
|
||||
}
|
||||
if(typeof(Box.prototype.init) == "undefined"){
|
||||
Box.prototype.init = function(){//初始化方格
|
||||
|
||||
};
|
||||
}
|
||||
if(typeof(Box.prototype.clear) == "undefined"){
|
||||
Box.prototype.clear = function(){//消除方格
|
||||
this.state = -1;
|
||||
};
|
||||
}
|
||||
if(typeof(Box.prototype.change) == "undefined"){
|
||||
Box.prototype.change = function(st){//更改方格
|
||||
this.state = st;
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user