private void DrawShipStatus(IMapView map) { var ships = map.GetShips(Game.Instance().CurrentPlayer.Color); foreach (var ship in ships) { switch (ship.TurnState) { case TurnState.Ready: Gl.glColor3f(0.1f, 0.9f, 0.1f); break; case TurnState.InAction: Gl.glColor3f(0.8f, 0.8f, 0.1f); break; case TurnState.Finished: Gl.glColor3f(0.9f, 0.1f, 0.1f); break; } var pos = CellToScreen(ShipsInfo[ship.Id].Pos); Gl.glPointSize(5); Gl.glBegin(Gl.GL_POINTS); Gl.glVertex2f(pos.X, pos.Y); Gl.glEnd(); } }