diff options
| author | Ben Beltran <ben@nsovocal.com> | 2013-11-11 20:39:35 -0600 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2013-11-11 20:39:35 -0600 |
| commit | f8aec187ea7dc410a32996406109f290f3199ffa (patch) | |
| tree | 0bf06a93ead75dccb9502c14da04215a3ee7d4ea /Super Polarity/ActorFactory.cs | |
| parent | 95d7601b7742ed560a9d8e00269217f62fc7ce32 (diff) | |
Moves to ActorManager arch + Actor Inherited stuff
Diffstat (limited to 'Super Polarity/ActorFactory.cs')
| -rw-r--r-- | Super Polarity/ActorFactory.cs | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/Super Polarity/ActorFactory.cs b/Super Polarity/ActorFactory.cs new file mode 100644 index 0000000..5438b77 --- /dev/null +++ b/Super Polarity/ActorFactory.cs @@ -0,0 +1,30 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using Microsoft.Xna.Framework.Content; + +namespace SuperPolarity +{ + static class ActorFactory + { + static internal ContentManager Content; + + static public MainShip CreateMainShip(Vector2 position) + { + MainShip mainShip = new MainShip(); + mainShip.Initialize(Content, Content.Load<Texture2D>("Graphics\\main-ship"), position); + + ActorManager.CheckIn(mainShip); + + return mainShip; + } + + internal static void SetContentManager(ContentManager content) + { + Content = content; + } + } +} |