Example #1
0
 public Skill(Position pos, SkillType type, int power)
     : base(pos)
 {
     this.Position = pos;
     this.Type = type;
     this.Power = power;
 }
Example #2
0
 public Obstacle(Position pos, Texture2D texture, bool vis)
     : base(pos)
 {
     this.Position = pos;
     this.SpriteIndex = texture;
     this.Visible = vis;
 }
Example #3
0
 protected Unit(Position pos, float speed, float range)
     : base(pos)
 {
     this.Speed = speed;
     this.Alive = true;
     this.Range = range;
 }
Example #4
0
 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;
 }
Example #5
0
 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;
 }
Example #6
0
 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);
 }
Example #7
0
 protected Obj(Position pos)
 {
     this.Position = pos;
 }
Example #8
0
 public Cursor(Position pos)
     : base(pos)
 {
     this.Position = pos;
 }
Example #9
0
        // 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;
        }
Example #10
0
 public Bullet(Position pos, Texture2D texture)
     : base(pos)
 {
     this.Position = pos;
     this.SpriteIndex = texture;
 }