diff options
| author | Ben Beltran <ben@nsovocal.com> | 2014-05-31 11:24:29 -0500 |
|---|---|---|
| committer | Ben Beltran <ben@nsovocal.com> | 2014-05-31 11:24:29 -0500 |
| commit | 8bdfcb11a2c1023c684093c0f19f3cc65799e0f8 (patch) | |
| tree | 7f46b5f9c2d6df58d718bff6b0569a4f19880678 /SuperPolarity/Actors | |
| parent | 078dd693a22cc6793cf6f0f64820369cc606edf6 (diff) | |
Move some files around, relink
Diffstat (limited to 'SuperPolarity/Actors')
| -rw-r--r-- | SuperPolarity/Actors/Actor.cs | 5 | ||||
| -rw-r--r-- | SuperPolarity/Actors/Generators/FanGenerator.cs | 13 | ||||
| -rw-r--r-- | SuperPolarity/Actors/Generators/Generator.cs | 14 | ||||
| -rw-r--r-- | SuperPolarity/Actors/Generators/LineGenerator.cs | 13 | ||||
| -rw-r--r-- | SuperPolarity/Actors/Generators/PointGenerator.cs | 13 | ||||
| -rw-r--r-- | SuperPolarity/Actors/Generators/RingGenerator.cs | 13 | ||||
| -rw-r--r-- | SuperPolarity/Actors/Generators/WaveGenerator.cs | 13 |
7 files changed, 83 insertions, 1 deletions
diff --git a/SuperPolarity/Actors/Actor.cs b/SuperPolarity/Actors/Actor.cs index 3bb06be..5e7e482 100644 --- a/SuperPolarity/Actors/Actor.cs +++ b/SuperPolarity/Actors/Actor.cs @@ -8,7 +8,7 @@ using Microsoft.Xna.Framework.Graphics; namespace SuperPolarity { - class Actor + public class Actor { protected SuperPolarity game; @@ -24,6 +24,7 @@ namespace SuperPolarity // Physical Properties public Vector2 Position; + public bool Collides; protected Vector2 Velocity; protected Vector2 Acceleration; public float Angle; @@ -64,6 +65,8 @@ namespace SuperPolarity Position = position; Active = true; + Collides = true; + Children = new List<Actor>(); Origin = new Vector2(Texture.Width / 2, Texture.Height / 2); diff --git a/SuperPolarity/Actors/Generators/FanGenerator.cs b/SuperPolarity/Actors/Generators/FanGenerator.cs new file mode 100644 index 0000000..af4bf74 --- /dev/null +++ b/SuperPolarity/Actors/Generators/FanGenerator.cs @@ -0,0 +1,13 @@ +using System; + +namespace SuperPolarity +{ + public class FanGenerator : Generator + { + public FanGenerator(SuperPolarity newGame) + : base(newGame) + { + } + } +} + diff --git a/SuperPolarity/Actors/Generators/Generator.cs b/SuperPolarity/Actors/Generators/Generator.cs new file mode 100644 index 0000000..dfbc40b --- /dev/null +++ b/SuperPolarity/Actors/Generators/Generator.cs @@ -0,0 +1,14 @@ +using System; + +namespace SuperPolarity +{ + public class Generator : Actor + { + public Generator(SuperPolarity newGame) + : base(newGame) + { + Collides = false; + } + } +} + diff --git a/SuperPolarity/Actors/Generators/LineGenerator.cs b/SuperPolarity/Actors/Generators/LineGenerator.cs new file mode 100644 index 0000000..abbafa9 --- /dev/null +++ b/SuperPolarity/Actors/Generators/LineGenerator.cs @@ -0,0 +1,13 @@ +using System; + +namespace SuperPolarity +{ + public class LineGenerator : Generator + { + public LineGenerator(SuperPolarity newGame) + : base(newGame) + { + } + } +} + diff --git a/SuperPolarity/Actors/Generators/PointGenerator.cs b/SuperPolarity/Actors/Generators/PointGenerator.cs new file mode 100644 index 0000000..a753480 --- /dev/null +++ b/SuperPolarity/Actors/Generators/PointGenerator.cs @@ -0,0 +1,13 @@ +using System; + +namespace SuperPolarity +{ + public class PointGenerator : Generator + { + public PointGenerator(SuperPolarity newGame) + : base(newGame) + { + } + } +} + diff --git a/SuperPolarity/Actors/Generators/RingGenerator.cs b/SuperPolarity/Actors/Generators/RingGenerator.cs new file mode 100644 index 0000000..81c957d --- /dev/null +++ b/SuperPolarity/Actors/Generators/RingGenerator.cs @@ -0,0 +1,13 @@ +using System; + +namespace SuperPolarity +{ + public class RingGenerator : Generator + { + public RingGenerator(SuperPolarity newGame) + : base(newGame) + { + } + } +} + diff --git a/SuperPolarity/Actors/Generators/WaveGenerator.cs b/SuperPolarity/Actors/Generators/WaveGenerator.cs new file mode 100644 index 0000000..8f1bf18 --- /dev/null +++ b/SuperPolarity/Actors/Generators/WaveGenerator.cs @@ -0,0 +1,13 @@ +using System; + +namespace SuperPolarity +{ + public class WaveGenerator : Generator + { + public WaveGenerator(SuperPolarity newGame) + : base(newGame) + { + } + } +} + |