text stringlengths 3 1.18M |
|---|
/*
* Copyright (C) 2013 Android Shuffle Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
/*
* Copyright (C) 2012 Android Shuffle Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
package org.dodgybits.shuffle.android.server.sync;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.util.Log;
public class SyncReceiver extends BroadcastReceiver {
public static final String TAG = "SyncReceiver";
@Override
public void... |
package org.dodgybits.shuffle.android.server.gcm;
import android.app.Activity;
import android.content.Context;
import android.content.SharedPreferences;
import android.os.AsyncTask;
import android.util.Log;
import com.google.android.gms.common.ConnectionResult;
import com.google.android.gms.common.GooglePlayServicesU... |
package org.dodgybits.shuffle.android.server.gcm;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Context;
import android.content.Intent;
import android.support.v4.content.WakefulBroadcastReceiver;
import android.util.Log;
/**
* This {@code WakefulBroadcastReceiver} takes c... |
package org.dodgybits.shuffle.android.server.gcm;
/*
* Copyright 2012 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
*... |
package org.dodgybits.shuffle.android.server.gcm.event;
import android.content.Context;
public class RegisterGcmEvent {
private Context context;
public RegisterGcmEvent(Context context) {
this.context = context;
}
public Context getContext() {
return context;
}
public void s... |
package org.dodgybits.shuffle.android.server;
import android.content.Context;
import android.content.res.AssetManager;
import com.google.inject.Inject;
import java.io.IOException;
import java.io.InputStream;
import java.net.MalformedURLException;
import java.net.URL;
import java.util.Properties;
import roboguice.in... |
package org.dodgybits.shuffle.android.preference.view;
public class Progress {
private int mProgressPercent;
private String mDetails;
private boolean mIsError;
private Runnable mErrorUIAction;
public static Progress createProgress(int progressPercent, String details) {
return new Progress(progressPercent, det... |
package org.dodgybits.shuffle.android.preference.fragment;
import android.accounts.Account;
import android.accounts.AccountManager;
import android.app.AlertDialog;
import android.app.Dialog;
import android.content.DialogInterface;
import android.content.Intent;
import android.content.SharedPreferences;
import android.... |
package org.dodgybits.shuffle.android.preference.model;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.preference.PreferenceManager;
import android.util.Log;
import org.dodgybits.shuffle.android.core.model.Id;
import org... |
/*
* Copyright (C) 2009 Android Shuffle Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
package org.dodgybits.shuffle.android.preference.activity;
import android.app.Dialog;
import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
import android.view.View;
import com.google.inject.Inject;
import org.dodgybits.android.shuffle.R;
import org.dodgybits.shuffle.android.preference.fragment.... |
/*
* Copyright (C) 2009 Android Shuffle Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
/*
* Copyright (C) 2009 Android Shuffle Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
package org.dodgybits.shuffle.android.preference.activity;
import android.content.DialogInterface;
import android.content.DialogInterface.OnCancelListener;
import android.content.DialogInterface.OnClickListener;
import android.database.Cursor;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.En... |
/*
* Copyright (C) 2009 Android Shuffle Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
/*
* Copyright (C) 2009 Android Shuffle Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
/*
* Copyright (C) 2009 Android Shuffle Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
package org.dodgybits.shuffle.android.preference.activity;
import android.database.Cursor;
import android.os.AsyncTask;
import android.os.Bundle;
import android.os.Environment;
import android.text.TextUtils;
import android.util.Log;
import android.view.View;
import android.widget.*;
import com.google.common.collect.Se... |
package org.dodgybits.shuffle.android.persistence.migrations;
import org.dodgybits.shuffle.android.persistence.provider.ContextProvider;
import org.dodgybits.shuffle.android.persistence.provider.ProjectProvider;
import org.dodgybits.shuffle.android.persistence.provider.TaskProvider;
import android.database.sqli... |
package org.dodgybits.shuffle.android.persistence.migrations;
import android.database.sqlite.SQLiteDatabase;
public interface Migration {
public void migrate(SQLiteDatabase db);
}
|
package org.dodgybits.shuffle.android.persistence.migrations;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import org.dodgybits.shuffle.android.persistence.provider.ContextProvider;
import org.dodgybits.shuffle.android.persistence.provider.ProjectProvider;
import org.dodgybits.shuffle.... |
package org.dodgybits.shuffle.android.persistence.migrations;
import org.dodgybits.shuffle.android.persistence.provider.TaskProvider;
import android.database.sqlite.SQLiteDatabase;
public class V11Migration implements Migration {
@Override
public void migrate(SQLiteDatabase db) {
// Shuffle v1.1.1 (2n... |
package org.dodgybits.shuffle.android.persistence.migrations;
import static org.dodgybits.shuffle.android.persistence.provider.ContextProvider.CONTEXT_TABLE_NAME;
import android.database.sqlite.SQLiteDatabase;
public class V9Migration implements Migration {
@Override
public void migrate(SQLiteDatabase db) ... |
package org.dodgybits.shuffle.android.persistence.migrations;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.provider.BaseColumns;
import android.util.Log;
import java.util.HashMap;
import java.util.Map;
import java.util.Se... |
package org.dodgybits.shuffle.android.persistence.migrations;
import org.dodgybits.shuffle.android.persistence.provider.ContextProvider;
import org.dodgybits.shuffle.android.persistence.provider.ProjectProvider;
import org.dodgybits.shuffle.android.persistence.provider.TaskProvider;
import android.database.sq... |
package org.dodgybits.shuffle.android.persistence.migrations;
import org.dodgybits.shuffle.android.persistence.provider.ContextProvider;
import org.dodgybits.shuffle.android.persistence.provider.ProjectProvider;
import org.dodgybits.shuffle.android.persistence.provider.TaskProvider;
import android.database.sqli... |
package org.dodgybits.shuffle.android.persistence.migrations;
import org.dodgybits.shuffle.android.persistence.provider.ProjectProvider;
import android.database.sqlite.SQLiteDatabase;
public class V13Migration implements Migration {
@Override
public void migrate(SQLiteDatabase db) {
// Shuffle v1.4... |
package org.dodgybits.shuffle.android.persistence.migrations;
import org.dodgybits.shuffle.android.persistence.provider.AbstractCollectionProvider;
import org.dodgybits.shuffle.android.persistence.provider.ProjectProvider;
import org.dodgybits.shuffle.android.persistence.provider.TaskProvider;
import android.da... |
package org.dodgybits.shuffle.android.persistence.migrations;
import org.dodgybits.shuffle.android.persistence.provider.TaskProvider;
import android.database.sqlite.SQLiteDatabase;
public class V10Migration implements Migration {
@Override
public void migrate(SQLiteDatabase db) {
// Shuffle v1.1 (1st ... |
package org.dodgybits.shuffle.android.persistence.migrations;
import android.content.ContentValues;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.util.Log;
import com.google.common.collect.Sets;
import org.dodgybits.shuffle.android.persistence.provider.TaskProvide... |
package org.dodgybits.shuffle.android.persistence.provider;
import android.net.Uri;
import android.provider.BaseColumns;
public class ContextProvider extends AbstractCollectionProvider {
public static final String CONTEXT_TABLE_NAME = "context";
public static final String UPDATE_INTENT = "org.dodgybits... |
package org.dodgybits.shuffle.android.persistence.provider;
import android.content.ContentUris;
import android.content.ContentValues;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteQueryBuilder;
import android.net.Uri;
import android.pr... |
/**
*
*/
package org.dodgybits.shuffle.android.persistence.provider;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
import org.dodgybits.shuffle.android.persistence.migrations.*;
import java.util.Se... |
package org.dodgybits.shuffle.android.persistence.provider;
import android.app.SearchManager;
import android.content.*;
import android.database.Cursor;
import android.database.SQLException;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteQueryBuilder;
import android.net.Uri;... |
/*
* Copyright (C) 2009 Android Shuffle Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by... |
package org.dodgybits.shuffle.android.persistence.provider;
import android.net.Uri;
import android.provider.BaseColumns;
public class ProjectProvider extends AbstractCollectionProvider {
public static final String PROJECT_TABLE_NAME = "project";
public static final String UPDATE_INTENT = "org.dodg... |
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2008 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2010 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
/*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
package org.dodgybits.shuffle.android.widget;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.*;
import org.dodgybits.android.shuffle.R;
import org.dodgybits.shuffle.android.core.view.IconNameCountListAdaptor;
import org.dodgybits.shuffle.android.core.view.ListIcons;
... |
package org.dodgybits.shuffle.android.widget;
import android.app.Dialog;
import android.appwidget.AppWidgetManager;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.support.v4.app.FragmentTransaction;
import com.google.inject.Inject;
import org.dodgybits... |
/*
* Copyright (C) 2011 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by app... |
package org.dodgybits.shuffle.android.widget;
import android.graphics.Bitmap;
import android.graphics.Canvas;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.GradientDrawable;
import android.widget.RelativeLayout;
import org.dodgybits.android.shuffle.R;
import org.dodgybits.shuffle.android.... |
/*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
/*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
/*
* Copyright 2011 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in ... |
package edu.gatech.bsbmule.model;
import java.util.List;
import java.util.Random;
/**
* This class represents the Land Office, where players can
* buy and sell land.
*
* @author Melissa, Hanjie
* @version 1.0 11/11/13
*/
public class LandOffice {
private Random randomGen;
public LandOffice() {
this.r... |
package edu.gatech.bsbmule.model;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Random;
import com.google.gson.Gson;
/**
* This is a class that represents the game and contains details about number of
* players, difficulty and current turn.
*
* Uses Si... |
package edu.gatech.bsbmule.model;
import java.util.Random;
/**
* This class represents the Pub, where players can win money based
* on the round and their time bonus.
*
* @author Melissa
* @version 1.0 10/26/13
*
*/
public class Pub {
private Random rand;
public Pub() {
this.rand = new Random();
}
... |
package edu.gatech.bsbmule.model;
import java.awt.Point;
/**
* This class represents an individual Tile that hold information
* of itself (where it is, what kind of tile it is, and the mule
* that may be assigned to it)
*
* @author BSB
* @version 1.0 10/8/2013
*/
public class Tile {
privat... |
package edu.gatech.bsbmule.model;
import com.google.gson.Gson;
/**
* This class represents the store where player can buy/sell items.
*
* @author Melissa, Vania, Manav
* version 1.0 10/20/13
*/
public class Store {
private int[][] resources = new int[4][2];
private int basePriceMule;
private int feeFoodMule... |
package edu.gatech.bsbmule.model;
import java.awt.Point;
import java.util.Random;
import com.google.gson.Gson;
/**
* This class represents a map in the game. It consists of various types of
* tiles
*
* @author Hanjie, Greg
* @version 1.0 10/6/2013
*
*/
public class Map {
private Tile[][] ti... |
package edu.gatech.bsbmule.model;
import java.awt.Color;
import java.util.ArrayList;
import java.util.List;
/**
* This is a class that represents a player in the game. It contains
* a player's attributes, tiles and resources.
*
* @author BSB
* @version 1.0 10/5/2013
*
*/
public class Player ... |
package edu.gatech.bsbmule.model;
import java.util.Timer;
import java.util.TimerTask;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTextArea;
import edu.gatech.bsbmule.presenter.MapScreenPresenter;
import edu.gatech.bsbmule.util.StatisticsManager;
import edu.gatech.bsbmule.util... |
package edu.gatech.bsbmule.model;
// manav, writing this for use in store class
// the int values of muletype are same as those in Store;
/**
* This class represents the Mule object once it is bought from the store and assigned to a Tile
*
* @author BSB
*
*/
public class Mule {
int muleType = 0;... |
package edu.gatech.bsbmule.presenter;
import edu.gatech.bsbmule.model.Store;
import edu.gatech.bsbmule.view.IStoreScreen;
/**
* Presenter for store screen
*
* @author Li
* @version 1.0 11/04/13
*
*/
public class StoreScreenPresenter {
private IStoreScreen view;
private Store model;
public StoreScreenPr... |
package edu.gatech.bsbmule.presenter;
import java.awt.Point;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.List;
import javax.swing.JLabel;
import edu.gatech.bsbmule.model.Game;
import edu.gatech.bsbmule.model.LandOffice;
import edu.gatech.bsbmule.model.Map;
import edu.gatech.... |
package edu.gatech.bsbmule.presenter;
import java.awt.Color;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.util.ArrayList;
import java.util.List;
import javax.swing.JOptionPane;
import javax.swing.JPanel;
import edu.gatech.bsbmule.model.CustomizedTimer;
import edu.gatech.bsbmule.m... |
package edu.gatech.bsbmule.presenter;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import javax.swing.JFileChooser;
import javax.swing.JPanel;
import javax.swing.filechooser.F... |
package edu.gatech.bsbmule.presenter;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import edu.gatech.bsbmule.view.ITownScreen;
import edu.gatech.bsbmule.view.TownWindow;
/**
* Town screen presenter
*
* @author Hanjie
* @version 1.0 10/29/13
*/
public class TownScreenPre... |
package edu.gatech.bsbmule.presenter;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.JPanel;
import edu.gatech.bsbmule.model.Game;
import edu.gatech.bsbmule.model.Map;
import edu.gatech.bsbmule.view.IGameConfig;
import edu.gatech.bsbmule.view.MainWindow;
/**
*... |
package edu.gatech.bsbmule.view;
import java.awt.Color;
import java.awt.Point;
import java.awt.event.MouseAdapter;
import javax.swing.JLabel;
import edu.gatech.bsbmule.model.Player;
import edu.gatech.bsbmule.model.Tile;
/**
* View interface of map screen
*
* @author BSB
* @version 1.0 10/26/2013
*/
public int... |
package edu.gatech.bsbmule.view;
import java.awt.Color;
import java.awt.Font;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.BoxLayout;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JColorChooser;
import javax.swing.JComboB... |
package edu.gatech.bsbmule.view;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.File;
import java.io.FileWriter;
import java.io.IOException;
import javax.swing.JFileChooser;
import javax.swing.JFrame;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import ja... |
package edu.gatech.bsbmule.view;
import java.awt.Font;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.BoxLayout;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;
import ... |
package edu.gatech.bsbmule.view;
import java.awt.Font;
import java.awt.event.MouseAdapter;
import java.awt.event.MouseEvent;
import javax.swing.BoxLayout;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JLabel;
import javax.swing.JPanel;... |
package edu.gatech.bsbmule.view;
import java.awt.Font;
import java.awt.GridLayout;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import org.jfree.data.xy.XYDataset;
import edu.gatech.bsbmule.util.StatisticsManager;
import edu.gatech... |
package edu.gatech.bsbmule.view;
/**
* the interface for the StoreScreen
* @author bsb
*
*/
public interface IStoreScreen {
/**
*
* @param resources
*/
public void setLabel(int[][] resources);
/**
* @return the quantity
*/
public int getQuantity();
/**
* @return the number wrt selected resour... |
package edu.gatech.bsbmule.view;
import java.awt.Color;
import java.awt.event.MouseAdapter;
public interface IPlayerConfig {
/**
* Retrieve player's name from view
*
* @return player's name
*/
public String getPlayerName();
/**
* Retrieve player's race from view
*
* @return player's race
*/
... |
package edu.gatech.bsbmule.view;
import javax.swing.JFrame;
import javax.swing.JPanel;
/**
* @author bsb
*a class which represents the townwindow
*/
public class TownWindow extends JFrame {
private static TownWindow instance = null;
/**
*
* @return object of type TownWindow
*/
publi... |
package edu.gatech.bsbmule.view;
import java.awt.event.MouseAdapter;
/**
* @author bsb
* this represents the interface for the TownScreen
*
*/
public interface ITownScreen {
/**
* @param e : the MouseAdapter object
*/
public void setLOButtonListener(MouseAdapter e);
}
|
package edu.gatech.bsbmule.view;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.MouseAdapter;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
/**
* @author bsb... |
package edu.gatech.bsbmule.view;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import edu.gatech.bsbmule.model.Game;
import edu.gatech.bsbmule.model.Map;
import edu.gatech.bsbmule.model.Player;
import edu.gatech.bsbmule.model.Store;
import edu.gatech.bsbmule.presenter.GameCo... |
package edu.gatech.bsbmule.view;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.Image;
import java.awt.Point;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.awt.event.Mous... |
package edu.gatech.bsbmule.view;
import java.awt.BorderLayout;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.MouseAdapter;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.SwingConstants;
import javax.swing.border.EmptyBorder;
... |
package edu.gatech.bsbmule.view;
import javax.swing.JPanel;
import java.awt.GridLayout;
import javax.swing.JLabel;
import javax.swing.SwingConstants;
import org.jfree.chart.ChartFactory;
import org.jfree.chart.ChartPanel;
import org.jfree.chart.JFreeChart;
import org.jfree.chart.plot.PlotOrientation;
i... |
package edu.gatech.bsbmule.view;
import java.awt.event.MouseAdapter;
/**
* View interface for welcome screen
*
* @author BSB
* @version 1.0 10/26/2013
*/
public interface IWelcomeScreen {
/**
* Set play button with a specific listener when clicked
*
* @param e listener
*/
public vo... |
package edu.gatech.bsbmule.view;
import java.awt.Font;
import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.JButton;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import edu.gatech.bsbmule.model.CustomizedTimer;
import... |
package edu.gatech.bsbmule.view;
import java.awt.event.MouseAdapter;
public interface IGameConfig {
/**
* Retrieve number of players from the view
*
* @return number of players
*/
public int getNumberOfPlayers();
/**
* Retrieve difficulty level from the view
* @return string represe... |
package edu.gatech.bsbmule.util;
/**
* A primitive record of a player's state after a round ends
*
* @author BSB
*
*/
public class StatisticsRecord {
private int money;
private int tiles;
private int food;
private int energy;
private int score;
public static StatisticsRecord buildRecord... |
package edu.gatech.bsbmule.util;
import java.util.Iterator;
import java.util.Set;
import org.jfree.data.xy.XYDataset;
import org.jfree.data.xy.XYSeries;
import org.jfree.data.xy.XYSeriesCollection;
import com.google.common.collect.Table;
/**
* Converts a Table to a XYDataSet for plotting statistics
*... |
package edu.gatech.bsbmule.util;
import java.util.ArrayList;
import java.util.List;
import com.google.common.collect.ArrayTable;
import com.google.common.collect.Table;
import com.google.gson.Gson;
import edu.gatech.bsbmule.model.Game;
/**
* Keeping records of game and player states for displaying stat... |
package edu.gatech.bsbmule.util;
import java.util.Scanner;
import edu.gatech.bsbmule.model.CustomizedTimer;
import edu.gatech.bsbmule.model.Game;
import edu.gatech.bsbmule.model.Map;
import edu.gatech.bsbmule.model.Store;
/**
* Manages saving to JSON and loading from JSON
* @author BSB
*
*/
public ... |
package edu.gatech.bsbmule.tests;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.awt.Color;
import java.awt.Point;
import java.util.ArrayList;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import edu.gatech.bsbmule.model.Game;... |
package edu.gatech.bsbmule.tests;
import static org.junit.Assert.assertFalse;
import static org.junit.Assert.assertTrue;
import java.awt.Color;
import org.junit.Before;
import org.junit.Test;
import edu.gatech.bsbmule.model.Store;
import edu.gatech.bsbmule.model.Player;
/*
* This class tests the method sellRes... |
package edu.gatech.bsbmule.tests;
import static org.junit.Assert.*;
import java.awt.Color;
import org.junit.Test;
import edu.gatech.bsbmule.model.Player;
import edu.gatech.bsbmule.model.Store;
/**
* @author manav kothari
* This class contains the required JUnit Test
*
*/
public class JUnitTest_Mana... |
package edu.gatech.bsbmule.tests;
import static org.junit.Assert.*;
import java.awt.Color;
import java.util.ArrayList;
import java.util.List;
import org.junit.Before;
import org.junit.Test;
import edu.gatech.bsbmule.model.Game;
import edu.gatech.bsbmule.model.Player;
import edu.gatech.bsbmule.model.Store;
/**
* T... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Enemigo here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Enemigo extends Actor
{
/**
* Act - do whatever the Enemigo wants to do. This metho... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Heroe here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Heroe extends Actor
{
/**
* Act - do whatever the Heroe wants to do. This method is... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Nivel1 here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Nivel1 extends Actor
{
/**
* Act - do whatever the Nivel1 wants to do. This method i... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Nivel3 here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Nivel3 extends Nivel1
{
/**
* Act - do whatever the Nivel3 wants to do. This method ... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class PlataformaDinamica here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class PlataformaDinamica extends PlataformaEstatica
{
/**
* Act - do whatever ... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class Menu here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class Menu extends Actor
{
/**
* Act - do whatever the Menu wants to do. This method is call... |
import greenfoot.*; // (World, Actor, GreenfootImage, Greenfoot and MouseInfo)
/**
* Write a description of class PlataformaEstatica here.
*
* @author (your name)
* @version (a version number or a date)
*/
public class PlataformaEstatica extends Actor
{
/**
* Act - do whatever the Plataform... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.