stubbed some more functions from kj's ai stuff

- fixed some typos
- cleaned some debug code
This commit is contained in:
Tahir Akhlaq
2017-06-18 22:01:55 +01:00
parent 6b023ceb3c
commit 62055eff04
13 changed files with 97 additions and 223 deletions

View File

@@ -13,6 +13,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai.state
base(owner, target)
{
this.startTime = DateTime.Now;
// todo: should handle everything here instead of on next tick..
}
public override void OnStart()
@@ -32,7 +33,7 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai.state
public override void OnComplete()
{
isCompleted = true;
}
public override void TryInterrupt()

View File

@@ -20,6 +20,8 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai.state
protected SubPacket errorPacket;
protected bool isCompleted;
public State(Character owner, Character target)
{
this.owner = owner;
@@ -29,9 +31,9 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai.state
}
public virtual void Update(DateTime tick) { }
public virtual void OnStart() { }
public virtual void OnStart() { }
public virtual void OnInterrupt() { }
public virtual void OnComplete() { }
public virtual void OnComplete() { isCompleted = true; }
public virtual void TryInterrupt() { }
@@ -47,5 +49,10 @@ namespace FFXIVClassic_Map_Server.actors.chara.ai.state
this.interrupt = interrupt;
}
public bool IsCompleted()
{
return isCompleted;
}
}
}