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(); }
public static void NewPlayer(string name, stats stats, Vector2 position, Texture2D PassedSprite) { PlayerControlled Character = new PlayerControlled(Content, position, name, stats, PassedSprite); PlayerParty.Add(Character); }
public PlayerControlled(ContentManager content, Vector2 position, string name, stats stats, Texture2D Passedsprite) : base(content, position) { Initialize(content, position); Name = name; Position = position; sprite = Passedsprite; }
public NonPlayer(ContentManager content, Vector2 position, string name, stats stats) : base(content, position) { Initialize(content, position); }