Beispiel #1
0
        private void Handle(phaser_spacket msg)
        {
            Phaser phaser = galaxy.GetPhaser(msg.pnum);

            phaser.Dir    = msg.dir;
            phaser.Status = (PhaserStatus)msg.status;
            phaser.Target = msg.target;
            phaser.SetLocationOrientation(msg.x, msg.y, msg.dir);

            if (msg.Status != PhaserStatus.Free)
            {
                l.Debug("Unimplemented: " + msg.ToString());
            }
        }
        private void Handle(phaser_spacket msg)
        {
            Phaser phaser = galaxy.GetPhaser(msg.pnum);
            phaser.Dir = msg.dir;
            phaser.Status = (PhaserStatus)msg.status;
            phaser.Target = msg.target;
            phaser.SetLocationOrientation(msg.x, msg.y, msg.dir);

            if (msg.Status != PhaserStatus.Free)
            {
                l.Debug("Unimplemented: " + msg.ToString());
            }
        }