Exemplo n.º 1
0
 public override void Hit(GameEntity owner)
 {
     base.Hit (owner);
     Damage += 1;
 }
Exemplo n.º 2
0
 public virtual void Hit(GameEntity owner)
 {
 }
Exemplo n.º 3
0
 public void Add(CollisionEntityType type, GameEntity owner, GetCenterDelegate center, GetRadiusDelegate radius)
 {
     CollisionEntry entry = new CollisionEntry () { type = type, owner = owner, center = center, radius = radius };
     List<CollisionEntry> entries = typed_entries [(int)type];
     entries.Add (entry);
 }
Exemplo n.º 4
0
        // あたった時の処理
        public override void Hit(GameEntity owner)
        {
            base.Hit (owner);

            //			Console.WriteLine ("Hit!!");
            //	this.RemoveChild (owner.Sprite, true);
            if (owner is PlayerBullet) {
                this.RemoveChild (owner.Sprite, true);
                Game.Instance.RemoveQueue.Add (owner);
            }
            // ダメージ加算
            Damage += 1;
        }