コード例 #1
0
ファイル: Skill.cs プロジェクト: penjurov/TeamGeorgeOrwell
 public Skill(Position pos, SkillType type, int power)
     : base(pos)
 {
     this.Position = pos;
     this.Type = type;
     this.Power = power;
 }
コード例 #2
0
ファイル: Obstacle.cs プロジェクト: penjurov/TeamGeorgeOrwell
 public Obstacle(Position pos, Texture2D texture, bool vis)
     : base(pos)
 {
     this.Position = pos;
     this.SpriteIndex = texture;
     this.Visible = vis;
 }
コード例 #3
0
ファイル: Unit.cs プロジェクト: penjurov/TeamGeorgeOrwell
 protected Unit(Position pos, float speed, float range)
     : base(pos)
 {
     this.Speed = speed;
     this.Alive = true;
     this.Range = range;
 }
コード例 #4
0
ファイル: Bonus.cs プロジェクト: penjurov/TeamGeorgeOrwell
 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;
 }
コード例 #5
0
ファイル: MeleUnit.cs プロジェクト: penjurov/TeamGeorgeOrwell
 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;
 }
コード例 #6
0
ファイル: Hero.cs プロジェクト: penjurov/TeamGeorgeOrwell
 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);
 }
コード例 #7
0
ファイル: Obj.cs プロジェクト: penjurov/TeamGeorgeOrwell
 protected Obj(Position pos)
 {
     this.Position = pos;
 }
コード例 #8
0
ファイル: Cursor.cs プロジェクト: penjurov/TeamGeorgeOrwell
 public Cursor(Position pos)
     : base(pos)
 {
     this.Position = pos;
 }
コード例 #9
0
ファイル: Hero.cs プロジェクト: penjurov/TeamGeorgeOrwell
        // 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;
        }
コード例 #10
0
ファイル: Bullet.cs プロジェクト: penjurov/TeamGeorgeOrwell
 public Bullet(Position pos, Texture2D texture)
     : base(pos)
 {
     this.Position = pos;
     this.SpriteIndex = texture;
 }