mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 02:36:14 +00:00
提交
This commit is contained in:
@@ -101,6 +101,17 @@ export class GTactical{
|
||||
return null;
|
||||
}
|
||||
|
||||
//获取XY的位置
|
||||
getPosXYPosition(x:number,y:number,father:Vec2 = this.offset){
|
||||
return this.getPosition(this.getPosXY(x,y),father);
|
||||
}
|
||||
|
||||
//获取XY的 Index
|
||||
getPosXY(x:number,y:number):number{
|
||||
return this.tactical[y][x];
|
||||
}
|
||||
|
||||
|
||||
//返回我在第几排
|
||||
getRow(index:number):number{
|
||||
let pos;
|
||||
|
Reference in New Issue
Block a user