mirror of
https://gitee.com/jisol/jisol-game/
synced 2025-09-27 10:46:17 +00:00
update
This commit is contained in:
25
JisolGameCocos/assets/script/battle/base/fsm/PVP/GFSMPVP.ts
Normal file
25
JisolGameCocos/assets/script/battle/base/fsm/PVP/GFSMPVP.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import GRoleBase from "../../role/GRoleBase";
|
||||
import GRolePVPEntity from "../../role/PVP/GRolePVPEntity";
|
||||
import GFSMBattle from "../GFSMBattle";
|
||||
|
||||
|
||||
//PVP 状态机
|
||||
export default class GFSMPVP extends GFSMBattle{
|
||||
|
||||
player:GRolePVPEntity;
|
||||
|
||||
constructor(player:GRolePVPEntity){
|
||||
super();
|
||||
this.player = player;
|
||||
}
|
||||
|
||||
//寻敌
|
||||
onSeekEnemy(): GRoleBase<any> {
|
||||
return this.player.mode.getEnumy(this.player);
|
||||
}
|
||||
|
||||
//攻击
|
||||
onAttack() {
|
||||
}
|
||||
}
|
||||
|
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"ver": "4.0.23",
|
||||
"importer": "typescript",
|
||||
"imported": true,
|
||||
"uuid": "86cd6fa1-1340-4343-8929-7c5363727b1c",
|
||||
"files": [],
|
||||
"subMetas": {},
|
||||
"userData": {}
|
||||
}
|
Reference in New Issue
Block a user