From ced3d03bdb3ce866d832e03fb212865140905a9a Mon Sep 17 00:00:00 2001 From: Thomas Leyh Date: Sun, 24 Jul 2016 08:14:18 +0200 Subject: Add project files. --- V3/AI/Internal/IActionFactory.cs | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 V3/AI/Internal/IActionFactory.cs (limited to 'V3/AI/Internal/IActionFactory.cs') diff --git a/V3/AI/Internal/IActionFactory.cs b/V3/AI/Internal/IActionFactory.cs new file mode 100644 index 0000000..eb62222 --- /dev/null +++ b/V3/AI/Internal/IActionFactory.cs @@ -0,0 +1,27 @@ +using Microsoft.Xna.Framework; +using V3.Objects; + +namespace V3.AI.Internal +{ + /// + /// Creates IAction instances. Automatically implemented by Ninject. + /// + public interface IActionFactory + { + /// + /// Creates a new MoveAction to move the given creature to the given + /// destination. + /// + /// the creature to mvoe + /// the destination of the creature + MoveAction CreateMoveAction(ICreature creature, Vector2 destination); + + /// + /// Creates a new SpawnAction that spawns the given creature at the + /// given position. + /// + /// the creature to spawn + /// the spawn position + SpawnAction CreateSpawnAction(ICreature creature, Vector2 position); + } +} -- cgit v1.2.1