Exemplo n.º 1
0
        private void handleShipInit(GameEvent e)
        {
            ShipInit ee = (ShipInit)e;
            ClientShip ship = new ClientShip(engine.World, engine.SceneManager, null, ee.PlayerId, ee.Position, ee.Orientation);
            shipTable.Add(ship.ID, ship);

            if (ship.ID == engine.PlayerId)
                engine.AttachCamera(ship);

            Util.Log("Ship " + ship.ID + "inited.  my ID is " + engine.PlayerId);
        }
Exemplo n.º 2
0
        private void handleShipInit(GameEvent e)
        {
            ShipInit   ee   = (ShipInit)e;
            ClientShip ship = new ClientShip(engine.World, engine.SceneManager, null, ee.PlayerId, ee.Position, ee.Orientation);

            shipTable.Add(ship.ID, ship);

            if (ship.ID == engine.PlayerId)
            {
                engine.AttachCamera(ship);
            }

            Util.Log("Ship " + ship.ID + "inited.  my ID is " + engine.PlayerId);
        }
Exemplo n.º 3
0
 public void AttachCamera(ClientShip s)
 {
     shipCam.Target = s.SceneNode;
 }
Exemplo n.º 4
0
 public void AttachCamera(ClientShip s)
 {
     shipCam.Target = s.SceneNode;
 }