This commit is contained in:
PC-20230316NUNE\Administrator
2023-12-13 10:51:31 +08:00
parent 7e36704e54
commit 5bc3f1d954
6 changed files with 75 additions and 22 deletions

View File

@@ -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;