]> git.r.bdr.sh - rbdr/super-polarity/blob - Super Polarity/Ship.cs
51058820f656c41d4bdc434d198b24ba56738ce0
[rbdr/super-polarity] / Super Polarity / Ship.cs
1 using System;
2 using System.Collections.Generic;
3 using System.Linq;
4 using System.Text;
5 using Microsoft.Xna.Framework;
6 using Microsoft.Xna.Framework.Graphics;
7
8 namespace SuperPolarity
9 {
10 class Ship : Actor
11 {
12 public enum Polarity : byte { Negative, Positive, Neutral };
13
14 protected uint HP;
15 protected Polarity CurrentPolarity;
16
17 public void SwitchPolarity()
18 {
19 if (CurrentPolarity == Polarity.Positive)
20 {
21 CurrentPolarity = Polarity.Negative;
22 }
23 else
24 {
25 CurrentPolarity = Polarity.Positive;
26 }
27 }
28
29 public void SetPolarity(Polarity newPolarity)
30 {
31 CurrentPolarity = newPolarity;
32 }
33
34 public virtual void Shoot()
35 {
36 }
37 }
38 }