Esempio n. 1
0
 public override void Initialize(ContentManager content, Vector2 position)
 {
     Name         = "Default";
     IsCollidable = true;
     IsSelected   = false;
     sprite       = content.Load <Texture2D>("default");
     spriteBox    = new Rectangle((int)Position.X - 32, (int)Position.Y - 64, 32, 32);
     boundingBox  = new Rectangle((int)Position.X - 32, (int)Position.Y - 64, 64, 32);
     Elevation    = 0;
     Attributes   = new AttributesStruct();
     Stats        = new stats();
 }
Esempio n. 2
0
        public static void NewPlayer(string name, stats stats, Vector2 position, Texture2D PassedSprite)
        {
            PlayerControlled Character = new PlayerControlled(Content, position, name, stats, PassedSprite);

            PlayerParty.Add(Character);
        }
Esempio n. 3
0
 public PlayerControlled(ContentManager content, Vector2 position, string name, stats stats, Texture2D Passedsprite) : base(content, position)
 {
     Initialize(content, position);
     Name     = name;
     Position = position;
     sprite   = Passedsprite;
 }
Esempio n. 4
0
 public NonPlayer(ContentManager content, Vector2 position, string name, stats stats) : base(content, position)
 {
     Initialize(content, position);
 }