ComAIActor.cs 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. using CommonAI.ZoneClient;
  2. using CommonAI.Zone;
  3. using CommonLang;
  4. namespace CommonAIClient.Unity.Battle
  5. {
  6. public interface IComAIActor
  7. {
  8. }
  9. /// <summary>
  10. /// 主角
  11. /// </summary>
  12. public class ComAIActor : ComAIUnit, IComAIActor
  13. {
  14. protected ZoneActor ZActor { get { return ZObject as ZoneActor; } }
  15. public ComAIActor(BattleScene battleScene, ZoneActor obj)
  16. : base(battleScene, obj)
  17. {
  18. }
  19. public void SendUnitAxis(float dx, float dy, bool smooth_turn = false)
  20. {
  21. ZActor.SendUnitAxis(dx, dy, smooth_turn);
  22. }
  23. public void SendUnitLaunchSkill(UnitLaunchSkillAction launch)
  24. {
  25. ZActor.SendUnitLaunchSkill(launch);
  26. }
  27. public void SendUnitLaunchSkill(int skillID)
  28. {
  29. ZActor.SendUnitLaunchSkill(skillID);
  30. }
  31. public void SendUnitLaunchSkill(int skillID, uint targetObjectID)
  32. {
  33. ZActor.SendUnitLaunchSkill(skillID, targetObjectID);
  34. }
  35. public void SendUnitLaunchSkill(int skillID, float x, float y)
  36. {
  37. ZActor.SendUnitLaunchSkill(skillID, x, y);
  38. }
  39. }
  40. }