project_files/Android-build/SDL-android-project/src/org/hedgewars/hedgeroid/LobbyPlayerlistFragment.java
equal
deleted
inserted
replaced
|
1 /* |
|
2 * Hedgewars, a free turn based strategy game |
|
3 * Copyright (C) 2012 Simeon Maxein <smaxein@googlemail.com> |
|
4 * |
|
5 * This program is free software; you can redistribute it and/or |
|
6 * modify it under the terms of the GNU General Public License |
|
7 * as published by the Free Software Foundation; either version 2 |
|
8 * of the License, or (at your option) any later version. |
|
9 * |
|
10 * This program is distributed in the hope that it will be useful, |
|
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
13 * GNU General Public License for more details. |
|
14 * |
|
15 * You should have received a copy of the GNU General Public License |
|
16 * along with this program; if not, write to the Free Software |
|
17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
18 */ |
|
19 |
1 package org.hedgewars.hedgeroid; |
20 package org.hedgewars.hedgeroid; |
2 |
21 |
3 import org.hedgewars.hedgeroid.R; |
22 import org.hedgewars.hedgeroid.R; |
4 import org.hedgewars.hedgeroid.Datastructures.Player; |
23 import org.hedgewars.hedgeroid.Datastructures.Player; |
5 import org.hedgewars.hedgeroid.netplay.Netplay; |
24 import org.hedgewars.hedgeroid.netplay.Netplay; |
13 import android.view.MenuItem; |
32 import android.view.MenuItem; |
14 import android.view.View; |
33 import android.view.View; |
15 import android.view.ViewGroup; |
34 import android.view.ViewGroup; |
16 import android.widget.AdapterView.AdapterContextMenuInfo; |
35 import android.widget.AdapterView.AdapterContextMenuInfo; |
17 |
36 |
|
37 /** |
|
38 * Shows the list of players in the lobby and allows some interactions with them |
|
39 * over the context menu. |
|
40 */ |
18 public class LobbyPlayerlistFragment extends ListFragment { |
41 public class LobbyPlayerlistFragment extends ListFragment { |
19 private Netplay netplay; |
42 private Netplay netplay; |
20 private LobbyPlayerlistAdapter adapter; |
43 private LobbyPlayerlistAdapter adapter; |
21 |
44 |
22 @Override |
45 @Override |