예제 #1
0
파일: ShieldBrick.cs 프로젝트: xfanw/Game
        public override void Visit(ShipBulletLeaf b)
        {
            CollisionPair pair = ColPairMan.Find(CollisionPairName.Bullet_Shield);

            pair.SetCollision(b, this);
            pair.Notify();
        }
예제 #2
0
파일: BombLeaf.cs 프로젝트: xfanw/Game
        public override void Visit(ShipBulletLeaf b)
        {
            //Bullet hit Bullet --> Do Something
            CollisionPair pair = ColPairMan.Find(CollisionPairName.Bullet_Bomb);

            pair.SetCollision(b, this);
            pair.Notify();
        }
예제 #3
0
        public override void Visit(ShipBulletLeaf a)
        {
            //Bullet Hit WallLeaf ---> reset
            CollisionPair pair = ColPairMan.Find(CollisionPairName.Bullet_Wall);

            pair.SetCollision(a, this);
            pair.Notify();
        }
예제 #4
0
파일: ShipMan.cs 프로젝트: xfanw/Game
        private ShipMan()//:base(1,1)
        {
            // Store the states
            ReadyState  = new ShipReadyState();
            FlyingState = new ShipMissleFlyingState();
            DeadState   = new ShipDeadState();

            // set active
            Ship       = null;
            BulletLeaf = null;
        }
예제 #5
0
파일: Visitor.cs 프로젝트: xfanw/Game
 public virtual void Visit(ShipBulletLeaf b)
 {
 }