mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-08-02 07:41:58 +02:00
start of ai based on kjLotus's code on dsp
This commit is contained in:
parent
c70cf022b7
commit
04890660c0
9 changed files with 191 additions and 1 deletions
48
FFXIVClassic Map Server/actors/chara/ai/state/State.cs
Normal file
48
FFXIVClassic Map Server/actors/chara/ai/state/State.cs
Normal file
|
@ -0,0 +1,48 @@
|
|||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using FFXIVClassic_Map_Server.Actors;
|
||||
using FFXIVClassic.Common;
|
||||
|
||||
namespace FFXIVClassic_Map_Server.actors.chara.ai.state
|
||||
{
|
||||
class State
|
||||
{
|
||||
protected Character owner;
|
||||
protected Character target;
|
||||
|
||||
protected bool canInterrupt;
|
||||
protected bool interrupt;
|
||||
|
||||
protected DateTime startTime;
|
||||
|
||||
protected BasePacket errorPacket;
|
||||
|
||||
public State(Character owner, Character target)
|
||||
{
|
||||
this.owner = owner;
|
||||
this.target = target;
|
||||
this.canInterrupt = true;
|
||||
this.interrupt = false;
|
||||
}
|
||||
|
||||
public virtual void Update(ref DateTime time) { }
|
||||
public virtual void OnStart() { }
|
||||
public virtual void OnInterrupt() { }
|
||||
public virtual void OnComplete() { }
|
||||
|
||||
public virtual void TryInterrupt() { }
|
||||
|
||||
public bool CanInterrupt()
|
||||
{
|
||||
return canInterrupt;
|
||||
}
|
||||
|
||||
public void SetInterrupted(bool interrupt)
|
||||
{
|
||||
this.interrupt = interrupt;
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue