public Skill(Position pos, SkillType type, int power) : base(pos) { this.Position = pos; this.Type = type; this.Power = power; }
public Obstacle(Position pos, Texture2D texture, bool vis) : base(pos) { this.Position = pos; this.SpriteIndex = texture; this.Visible = vis; }
protected Unit(Position pos, float speed, float range) : base(pos) { this.Speed = speed; this.Alive = true; this.Range = range; }
public Bonus(Position pos, Texture2D texture, string type, Rectangle area) : base(pos) { this.Position = pos; this.SpriteIndex = texture; this.Type = type; this.Area = area; this.SpawnTime = Spawn; this.Alive = true; }
public MeleUnit(Position pos, float speed, bool act, float att, float def, float hp, float exp, bool alive, float range) : base(pos, speed, range) { this.Attack = att; this.Defence = def; this.Health = hp; this.ExpGiven = exp; this.Alive = alive; this.Active = act; this.HitRate = 60; }
private Hero(Position pos, float speed, float hp, float att, float def, float range, float mp, SkillType skillType, int skillPower) : base(pos, speed, range) { this.Health = hp; this.MaxHP = hp; this.Attack = att; this.Defence = def; this.mana = mp; this.maxMP = mp; this.Level = 1; this.Skill = new Skill(pos, skillType, skillPower); }
protected Obj(Position pos) { this.Position = pos; }
public Cursor(Position pos) : base(pos) { this.Position = pos; }
// Singleton public static Hero Instance(Position pos, float speed, float hp, float att, float def, float range, float mp, SkillType skillType, int skillPower) { if (instance == null) { instance = new Hero(pos, speed, hp, att, def, range, mp, skillType, skillPower); } return instance; }
public Bullet(Position pos, Texture2D texture) : base(pos) { this.Position = pos; this.SpriteIndex = texture; }