Esempio n. 1
0
    // public WarshipL CreateWarship(GirlData data)
    // {
    //  WarshipL ws = GetWarship(data.WarShipID);
    //
    //  if (ws != null)
    //      return ws;
    //
    //  ws = new WarshipL(data);
    //  ws.Initialize();
    //
    //  _mWarshipList.Add(data.WarShipID, ws);
    //
    //  return ws;
    // }

    public void RemoveWarship(WarshipL ws)
    {
        _mWarshipList.Remove(ws);

        if (null != ws)
        {
            ws.Release();
        }
        if (_mWarshipList.Count == 0)
        {
            _mIsDeath = true;
            return;
        }
    }
Esempio n. 2
0
    public void RemoveWarship(WarshipL ws)
    {
        _mWarshipList.Remove(ws);

        if (null != ws)
        {
            ws.Release();
        }
        if (_mWarshipList.Count == 0)
        {
            _isDeath = true;
            return;
        }

        // LocateFleetPosition();
        // CalculateFleetRect();
    }