/// <summary>
 /// Constructor that loads the specific name, character stats, and ID in party
 /// </summary>
 /// <param name="nameArg">Name of the character</param>
 /// <param name="stats">Starting stats for the character</param>
 /// <param name="playerID">ID used for position in party</param>
 /// <param name="sprite">Textures that represent the character</param>
 public CharacterBase(string nameArg, CharacterStats stats, CharacterSprite sprite)
     : this(nameArg, stats)
 {
     this.sprite = sprite;
 }
Beispiel #2
0
 /// <summary>
 /// Constructor with provided name and stats
 /// </summary>
 /// <param name="name">Name of the player</param>
 /// <param name="stats">Stats of the player</param>
 /// <param name="playerID">ID used in the party position</param>
 /// <param name="sprite">Textures used to represent the player</param>
 /// <param name="specialID">Special ID for specific players to determine skills and animations</param>
 public PlayerClass(string name, CharacterStats stats, CharacterSprite sprite, int specialID)
     : base(name, stats, sprite)
 {
     this.specialID = specialID;
 }
 /// <summary>
 /// Constructor with default name and loads the provided sprite
 /// </summary>
 /// <param name="sprite">Sprite that represents the character</param>
 public CharacterBase(CharacterSprite sprite)
     : this()
 {
     this.sprite = sprite;
     position.X = 200;
     position.Y = 200;
 }
Beispiel #4
0
 /// <summary>
 /// Constructor with provided name, stats, ID, and sprite
 /// </summary>
 /// <param name="name">Name of the player</param>
 /// <param name="stats">Stats of the player</param>
 /// <param name="playerID">ID used in the party position</param>
 public EnemyClass(string name, CharacterStats stats, CharacterSprite sprite)
     : base(name, stats, sprite)
 {
 }