project_files/Android-build/SDL-android-project/src/org/hedgewars/mobile/StartGameActivity.java
author Xeli
Thu, 04 Aug 2011 17:35:42 +0200
branchhedgeroid
changeset 5471 081bc0170623
parent 5433 8f82045953c1
child 5607 d3a3e80ad1da
permissions -rw-r--r--
Main activity for starting a local game
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
     1
package org.hedgewars.mobile;
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
     2
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
     3
import java.util.ArrayList;
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
     4
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
     5
import org.hedgewars.mobile.EngineProtocol.FrontendDataUtils;
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
     6
import org.hedgewars.mobile.EngineProtocol.GameConfig;
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
     7
import org.hedgewars.mobile.EngineProtocol.Map;
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
     8
import org.hedgewars.mobile.EngineProtocol.Scheme;
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
     9
import org.hedgewars.mobile.EngineProtocol.Team;
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    10
import org.hedgewars.mobile.EngineProtocol.Weapon;
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    11
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    12
import android.app.Activity;
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    13
import android.content.Intent;
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    14
import android.content.SharedPreferences;
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    15
import android.graphics.drawable.Drawable;
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    16
import android.os.Bundle;
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    17
import android.os.Parcelable;
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    18
import android.preference.PreferenceManager;
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    19
import android.util.Log;
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    20
import android.view.View;
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    21
import android.view.View.OnClickListener;
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    22
import android.widget.AdapterView;
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    23
import android.widget.AdapterView.OnItemSelectedListener;
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    24
import android.widget.ArrayAdapter;
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    25
import android.widget.ImageButton;
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    26
import android.widget.ImageView;
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    27
import android.widget.Spinner;
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    28
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    29
public class StartGameActivity extends Activity {
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    30
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    31
	public static final int ACTIVITY_TEAM_SELECTOR = 0;
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    32
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    33
	private GameConfig config = null;
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    34
	private ImageButton start, back, team;
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    35
	private Spinner maps, gameplay, gamescheme, weapons, themes;
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    36
	private ImageView themeIcon, mapPreview;
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    37
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    38
	public void onCreate(Bundle savedInstanceState){
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    39
		super.onCreate(savedInstanceState);
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    40
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    41
		SharedPreferences sharedPref = PreferenceManager.getDefaultSharedPreferences(this);
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    42
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    43
		Utils.resRawToFilesDir(this,R.array.schemes, Scheme.DIRECTORY_SCHEME);
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    44
		Utils.resRawToFilesDir(this, R.array.weapons, Weapon.DIRECTORY_WEAPON);
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    45
		Scheme.parseBasicFlags(this);
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    46
		config = new GameConfig();
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    47
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    48
		setContentView(R.layout.starting_game);
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    49
		
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    50
		back = (ImageButton) findViewById(R.id.btnBack);
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    51
		team = (ImageButton) findViewById(R.id.btnTeams);
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    52
		start = (ImageButton) findViewById(R.id.btnStart);
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    53
		
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    54
		maps = (Spinner) findViewById(R.id.spinMaps);
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    55
		gameplay = (Spinner) findViewById(R.id.spinGameplay);
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    56
		gamescheme = (Spinner) findViewById(R.id.spinGamescheme);
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    57
		weapons = (Spinner) findViewById(R.id.spinweapons);
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    58
		themes = (Spinner) findViewById(R.id.spinTheme);
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    59
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    60
		themeIcon = (ImageView) findViewById(R.id.imgTheme);
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    61
		mapPreview = (ImageView) findViewById(R.id.mapPreview);
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    62
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    63
		start.setOnClickListener(startClicker);
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    64
		back.setOnClickListener(backClicker);
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    65
		team.setOnClickListener(teamClicker);
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    66
		
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    67
		ArrayAdapter<?> adapter = new ArrayAdapter<Map>(this, android.R.layout.simple_spinner_item, FrontendDataUtils.getMaps(this));
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    68
		adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    69
		maps.setAdapter(adapter);
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    70
		maps.setOnItemSelectedListener(mapsClicker);
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    71
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    72
		adapter = new ArrayAdapter<String>(this, R.layout.listview_item, FrontendDataUtils.getGameplay(this));
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    73
		adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    74
		gameplay.setAdapter(adapter);
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    75
		gameplay.setOnItemSelectedListener(gameplayClicker);
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    76
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    77
		adapter = new ArrayAdapter<Scheme>(this, R.layout.listview_item, FrontendDataUtils.getSchemes(this));
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    78
		adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    79
		gamescheme.setAdapter(adapter);
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    80
		gamescheme.setOnItemSelectedListener(schemeClicker);
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    81
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    82
		adapter = new ArrayAdapter<Weapon>(this, R.layout.listview_item, FrontendDataUtils.getWeapons(this));
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    83
		adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    84
		weapons.setAdapter(adapter);
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    85
		weapons.setOnItemSelectedListener(weaponClicker);
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    86
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    87
		adapter = new ArrayAdapter<String>(this, R.layout.listview_item, FrontendDataUtils.getThemes(this));
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    88
		adapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item);
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    89
		themes.setAdapter(adapter);
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    90
		themes.setOnItemSelectedListener(themesClicker);
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    91
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
    92
	}
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    93
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    94
	public void onActivityResult(int requestCode, int resultCode, Intent data){
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    95
		switch(requestCode){
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    96
		case ACTIVITY_TEAM_SELECTOR:
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    97
			if(resultCode == Activity.RESULT_OK){
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    98
				Parcelable[] parcelables = (Parcelable[])data.getParcelableArrayExtra("teams");
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
    99
				config.teams.clear();
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   100
				for(Parcelable t : parcelables){
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   101
					config.teams.add((Team)t);
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   102
				}
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   103
				
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   104
			}
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   105
			break;
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   106
		}
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   107
	}
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   108
	
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
   109
	
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
   110
	private OnItemSelectedListener themesClicker = new OnItemSelectedListener(){
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
   111
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
   112
		public void onItemSelected(AdapterView<?> arg0, View view, int position, long rowId) {
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
   113
			String themeName = (String) arg0.getAdapter().getItem(position);
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   114
			Drawable themeIconDrawable = Drawable.createFromPath(Utils.getDownloadPath(StartGameActivity.this) + "Themes/" + themeName + "/icon@2X.png");
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
   115
			themeIcon.setImageDrawable(themeIconDrawable);
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   116
			config.theme = themeName;
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   117
		}
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   118
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   119
		public void onNothingSelected(AdapterView<?> arg0) {
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   120
		}
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   121
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   122
	};
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   123
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   124
	private OnItemSelectedListener mapsClicker = new OnItemSelectedListener(){
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   125
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   126
		public void onItemSelected(AdapterView<?> arg0, View view, int position,long rowId) {
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   127
			Map map = (Map)arg0.getAdapter().getItem(position);
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   128
			mapPreview.setImageDrawable(map.getDrawable());
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   129
			config.map = map;
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
   130
		}
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
   131
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
   132
		public void onNothingSelected(AdapterView<?> arg0) {
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   133
		}
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   134
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   135
	};
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   136
	
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   137
	private OnItemSelectedListener weaponClicker = new OnItemSelectedListener(){
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   138
		public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   139
			config.weapon = (Weapon)arg0.getAdapter().getItem(arg2);
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   140
		}
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   141
		public void onNothingSelected(AdapterView<?> arg0) {
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   142
			
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   143
		}
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   144
	};
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   145
	private OnItemSelectedListener schemeClicker = new OnItemSelectedListener(){
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   146
		public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   147
			config.scheme = (Scheme)arg0.getAdapter().getItem(arg2);
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   148
		}
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   149
		public void onNothingSelected(AdapterView<?> arg0) {
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
   150
			
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
   151
		}
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   152
	};
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   153
	private OnItemSelectedListener gameplayClicker = new OnItemSelectedListener(){
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   154
		public void onItemSelected(AdapterView<?> arg0, View arg1, int arg2, long arg3) {
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   155
			//config = ()arg0.getAdapter().getItem(arg2);
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   156
		}
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   157
		public void onNothingSelected(AdapterView<?> arg0) {
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   158
			
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   159
		}
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
   160
	};
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
   161
	
5471
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   162
	private OnClickListener startClicker = new OnClickListener(){
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   163
		public void onClick(View v) {
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   164
			Intent i = new Intent(StartGameActivity.this, SDLActivity.class);
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   165
			i.putExtra("config", config);
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   166
			startActivity(i);
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   167
		}
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   168
	};
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   169
	
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   170
	private OnClickListener backClicker = new OnClickListener(){
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   171
		public void onClick(View v) {
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   172
			finish();
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   173
		}
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   174
	};
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   175
	
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   176
	private OnClickListener teamClicker = new OnClickListener(){
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   177
		public void onClick(View v) {
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   178
			Intent i = new Intent(StartGameActivity.this, TeamSelectionActivity.class);
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   179
			i.putParcelableArrayListExtra("teams", config.teams);
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   180
			startActivityForResult(i, ACTIVITY_TEAM_SELECTOR);
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   181
		}
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   182
	};
081bc0170623 Main activity for starting a local game
Xeli
parents: 5433
diff changeset
   183
5433
8f82045953c1 Main class files for the start-local-game screen
Xeli
parents:
diff changeset
   184
}