private void Remove(LiveMonster mon) { mon.OwnerPlayer.State.CheckMonsterEvent(false, mon); if (BattleManager.Instance.MemMap.GetMouseCell(mon.Position.X, mon.Position.Y).Owner == -mon.Id) { BattleLocationManager.ClearCellOwner(mon.Position.X, mon.Position.Y); } monsters.Remove(mon); }
public void UpdateCellOwner(Point mouse, int ownerId) { if (ownerId == 0) { BattleLocationManager.ClearCellOwner(mouse.X, mouse.Y); } else { BattleLocationManager.UpdateCellOwner(mouse.X, mouse.Y, ownerId); } }