text
stringlengths
3
1.18M
/***************************************************************************** ** ANGRYBIRDS AI AGENT FRAMEWORK ** Copyright (c) 2014, XiaoYu (Gary) Ge, Stephen Gould, Jochen Renz ** Sahan Abeyasinghe,Jim Keys, Andrew Wang, Peng Zhang ** All rights reserved. **This work is licensed under the Creative Commons Att...
/***************************************************************************** ** ANGRYBIRDS AI AGENT FRAMEWORK ** Copyright (c) 2014, XiaoYu (Gary) Ge, Stephen Gould, Jochen Renz ** Sahan Abeyasinghe,Jim Keys, Andrew Wang, Peng Zhang ** All rights reserved. **This work is licensed under the Creative Commons Att...
/***************************************************************************** ** ANGRYBIRDS AI AGENT FRAMEWORK ** Copyright (c) 2014, XiaoYu (Gary) Ge, Stephen Gould, Jochen Renz ** Sahan Abeyasinghe,Jim Keys, Andrew Wang, Peng Zhang ** All rights reserved. **This work is licensed under the Creative Commons Att...
/***************************************************************************** ** ANGRYBIRDS AI AGENT FRAMEWORK ** Copyright (c) 2014, XiaoYu (Gary) Ge, Stephen Gould, Jochen Renz ** Sahan Abeyasinghe,Jim Keys, Andrew Wang, Peng Zhang ** All rights reserved. **This work is licensed under the Creative Common...
/***************************************************************************** ** ANGRYBIRDS AI AGENT FRAMEWORK ** Copyright (c) 2014, XiaoYu (Gary) Ge, Stephen Gould, Jochen Renz ** Sahan Abeyasinghe,Jim Keys, Andrew Wang, Peng Zhang ** All rights reserved. **This work is licensed under the Creative Common...
/***************************************************************************** ** ANGRYBIRDS AI AGENT FRAMEWORK ** Copyright (c) 2014, XiaoYu (Gary) Ge, Stephen Gould, Jochen Renz ** Sahan Abeyasinghe,Jim Keys, Andrew Wang, Peng Zhang ** All rights reserved. **This work is licensed under the Creative Common...
/***************************************************************************** ** ANGRYBIRDS AI AGENT FRAMEWORK ** Copyright (c) 2014, XiaoYu (Gary) Ge, Stephen Gould, Jochen Renz ** Sahan Abeyasinghe,Jim Keys, Andrew Wang, Peng Zhang ** All rights reserved. **This work is licensed under the Creative Common...
/***************************************************************************** ** ANGRYBIRDS AI AGENT FRAMEWORK ** Copyright (c) 2014, XiaoYu (Gary) Ge, Stephen Gould, Jochen Renz ** Sahan Abeyasinghe,Jim Keys, Andrew Wang, Peng Zhang ** All rights reserved. **This work is licensed under the Creative Common...
/***************************************************************************** ** ANGRYBIRDS AI AGENT FRAMEWORK ** Copyright (c) 2014, XiaoYu (Gary) Ge, Stephen Gould, Jochen Renz ** Sahan Abeyasinghe,Jim Keys, Andrew Wang, Peng Zhang ** All rights reserved. **This work is licensed under the Creative Commons Att...
// AngryBer AI Agent // Copyright (c) 2014 by Georgios Papagiannis <gepapagia@gmail.com> and Nikolaos Tziortziotis <ntziorzi@gmail.com> /*************************************************************************** * * * This program is free sof...
package ab.demo; import java.awt.Point; import java.awt.Rectangle; import ab.demo.other.ActionRobot; import ab.demo.other.Shot; import ab.planner.TrajectoryPlanner; import ab.vision.Vision; public class ShootingAgent { public static void shoot(String[] args, boolean cshoot) { ActionRobot ar...
// AngryBer AI Agent // Copyright (c) 2014 by Georgios Papagiannis <gepapagia@gmail.com> and Nikolaos Tziortziotis <ntziorzi@gmail.com> /*************************************************************************** * * * This program is free soft...
// AngryBer AI Agent // Copyright (c) 2014 by Georgios Papagiannis <gepapagia@gmail.com> and Nikolaos Tziortziotis <ntziorzi@gmail.com> /*************************************************************************** * * * This program is free s...
// AngryBer AI Agent // Copyright (c) 2014 by Georgios Papagiannis <gepapagia@gmail.com> and Nikolaos Tziortziotis <ntziorzi@gmail.com> /*************************************************************************** * * * This program is free s...
/***************************************************************************** ** ANGRYBIRDS AI AGENT FRAMEWORK ** Copyright (c) 2014, XiaoYu (Gary) Ge, Stephen Gould, Jochen Renz ** Sahan Abeyasinghe , Jim Keys, Andrew Wang, Peng Zhang ** All rights reserved. **This work is licensed under the Creative Commons A...
/***************************************************************************** ** ANGRYBIRDS AI AGENT FRAMEWORK ** Copyright (c) 2014,XiaoYu (Gary) Ge, Stephen Gould,Jochen Renz ** Sahan Abeyasinghe, Jim Keys, Andrew Wang, Peng Zhang ** All rights reserved. **This work is licensed under the Creative Commons Att...
/***************************************************************************** ** ANGRYBIRDS AI AGENT FRAMEWORK ** Copyright (c) 2014, XiaoYu (Gary) Ge, Stephen Gould, Jochen Renz ** Sahan Abeyasinghe,Jim Keys, Andrew Wang, Peng Zhang ** All rights reserved. **This work is licensed under the Creative Commons Att...
/***************************************************************************** ** ANGRYBIRDS AI AGENT FRAMEWORK ** Copyright (c) 2014,XiaoYu (Gary) Ge, Stephen Gould,Jochen Renz ** Sahan Abeyasinghe, Jim Keys, Andrew Wang, Peng Zhang ** All rights reserved. **This work is licensed under the Creative Commons Att...
/***************************************************************************** a ** ANGRYBIRDS AI AGENT FRAMEWORK ** Copyright (c) 2014,XiaoYu (Gary) Ge, Stephen Gould,Jochen Renz ** Sahan Abeyasinghe, Jim Keys, Andrew Wang, Peng Zhang ** All rights reserved. **This work is licensed under the Creative Commo...
/***************************************************************************** ** ANGRYBIRDS AI AGENT FRAMEWORK ** Copyright (c) 2014,XiaoYu (Gary) Ge, Stephen Gould,Jochen Renz ** Sahan Abeyasinghe, Jim Keys, Andrew Wang, Peng Zhang ** All rights reserved. **This work is licensed under the Creative Commons Att...
/***************************************************************************** ** ANGRYBIRDS AI AGENT FRAMEWORK ** Copyright (c) 2014, XiaoYu (Gary) Ge, Stephen Gould, Jochen Renz ** Sahan Abeyasinghe,Jim Keys, Andrew Wang, Peng Zhang ** All rights reserved. **This work is licensed under the Creative Common...
// AngryBer AI Agent // Copyright (c) 2014 by Georgios Papagiannis <gepapagia@gmail.com> and Nikolaos Tziortziotis <ntziorzi@gmail.com> /*************************************************************************** * * * This program is free s...
// AngryBer AI Agent // Copyright (c) 2014 by Georgios Papagiannis <gepapagia@gmail.com> and Nikolaos Tziortziotis <ntziorzi@gmail.com> /*************************************************************************** * * * This program is free soft...
package ab.demo; import ab.planner.abTrajectory; import ab.utils.GameImageRecorder; import ab.vision.ShowSeg; /***************************************************************************** ** ANGRYBIRDS AI AGENT FRAMEWORK ** Copyright (c) 2014, XiaoYu (Gary) Ge, Jochen Renz,Stephen Gould, ** Sahan Abeyas...
// AngryBer AI Agent // Copyright (c) 2014 by Georgios Papagiannis <gepapagia@gmail.com> and Nikolaos Tziortziotis <ntziorzi@gmail.com> /*************************************************************************** * * * This program is free soft...
// AngryBer AI Agent // Copyright (c) 2014 by Georgios Papagiannis <gepapagia@gmail.com> and Nikolaos Tziortziotis <ntziorzi@gmail.com> /*************************************************************************** * * * This program is free s...
// AngryBer AI Agent // Copyright (c) 2014 by Georgios Papagiannis <gepapagia@gmail.com> and Nikolaos Tziortziotis <ntziorzi@gmail.com> /*************************************************************************** * * * This program is free s...
/* * Copyright (c) 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 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 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 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 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 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 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 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 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 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 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 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 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 * * Unless required by applicable law or agreed to in ...
/* * Copyright (c) 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 * * Unless required by applicable law or agreed to in ...
package edu.tufts.cs.mchow.Planet1; import edu.tufts.cs.mchow.Game.GameEngine; import edu.tufts.cs.mchow.Game.Level; public class Level1 extends Level { public Level1(GameEngine ge) { super(ge); } @Override public void init() { addBaddie(0, 0, 5); addBaddie(1, 0, 5); addBaddie(2, 0, 4); addBaddie(3,...
package edu.tufts.cs.mchow.Planet1; import edu.tufts.cs.mchow.Game.GameEngine; import edu.tufts.cs.mchow.Game.Level; public class Level4 extends Level { public Level4(GameEngine ge) { super(ge); } @Override public void init() { addBaddie(0, 0, 2); addBaddie(1, 0, 2); addBaddie(2, 0, 2); addBaddie(3, 0,...
package edu.tufts.cs.mchow.Planet1; import edu.tufts.cs.mchow.Game.GameEngine; import edu.tufts.cs.mchow.Game.Level; public class Level6 extends Level { public Level6(GameEngine ge) { super(ge); } @Override public void init() { addBaddie(0, 0, 5); addBaddie(1, 0, 5); // addBaddie(2, 0, 3); // addBaddie(3...
package edu.tufts.cs.mchow.Planet1; import edu.tufts.cs.mchow.R; import edu.tufts.cs.mchow.Game.GameEngine; import edu.tufts.cs.mchow.Game.GameSprite; import edu.tufts.cs.mchow.Game.Level; import edu.tufts.cs.mchow.Game.Planet; import edu.tufts.cs.mchow.Planet0.Boss0; public class Planet1 extends Planet { public Lev...
package edu.tufts.cs.mchow.Planet1; import edu.tufts.cs.mchow.Game.GameEngine; import edu.tufts.cs.mchow.Game.Level; public class Level3 extends Level { public Level3(GameEngine ge) { super(ge); } @Override public void init() { // addBaddie(0, 0, 2); // addBaddie(1, 0, 5); // addBaddie(2, 0, 1); addBaddie...
package edu.tufts.cs.mchow.Planet1; import edu.tufts.cs.mchow.Game.GameEngine; import edu.tufts.cs.mchow.Game.Level; public class Level9 extends Level { public Level9(GameEngine ge) { super(ge); } @Override public void init() { addBaddie(0, 0, 2); addBaddie(1, 0, 3); addBaddie(2, 0, 3); addBaddie(3, 0,...
package edu.tufts.cs.mchow.Planet1; import edu.tufts.cs.mchow.Game.GameEngine; import edu.tufts.cs.mchow.Game.Level; public class Level5 extends Level { public Level5(GameEngine ge) { super(ge); } @Override public void init() { addBaddie(0, 0, 5); addBaddie(1, 0, 5); addBaddie(2, 0, 1); addBaddie(3, 0,...
package edu.tufts.cs.mchow.Planet1; import edu.tufts.cs.mchow.Game.GameEngine; import edu.tufts.cs.mchow.Game.Level; public class Level7 extends Level { public Level7(GameEngine ge) { super(ge); } @Override public void init() { addBaddie(0, 0, 1); addBaddie(1, 0, 4); addBaddie(2, 0, 4); addBaddie(3, 0,...
package edu.tufts.cs.mchow.Planet1; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Rect; import android.graphics.RectF; import edu.tufts.cs.mchow.R; import edu.tufts.cs.mchow.Game.GameEngine; import edu.tufts.cs.mchow.Game.GameSprite; public class Boss1 extends GameSprite { pr...
package edu.tufts.cs.mchow.Planet1; import edu.tufts.cs.mchow.Game.GameEngine; import edu.tufts.cs.mchow.Game.Level; public class Level0 extends Level { public Level0(GameEngine ge) { super(ge); } @Override public void init() { addBaddie(0, 0, 2); addBaddie(1, 0, 1); addBaddie(2, 0, 1); addBaddie(3, 0,...
package edu.tufts.cs.mchow.Planet1; import edu.tufts.cs.mchow.Game.GameEngine; import edu.tufts.cs.mchow.Game.Level; public class Level8 extends Level { public Level8(GameEngine ge) { super(ge); } @Override public void init() { addBaddie(0, 0, 5); // addBaddie(1, 0, 4); addBaddie(2, 0, 5); // addBaddie(3...
package edu.tufts.cs.mchow.Planet1; import edu.tufts.cs.mchow.Game.GameEngine; import edu.tufts.cs.mchow.Game.Level; public class Level2 extends Level { public Level2(GameEngine ge) { super(ge); } @Override public void init() { addBaddie(0, 0, 2); addBaddie(1, 0, 5); addBaddie(2, 0, 1); addBaddie(3, 0,...
package edu.tufts.cs.mchow.Menu; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import android.widget.TextView; import edu.tufts.cs.mchow.R; import edu.tufts.cs.mchow.Settings.SettingsScreen; public class MainMenu extends MenuActivity { p...
package edu.tufts.cs.mchow.Menu; import android.content.Intent; import android.os.Bundle; import android.view.KeyEvent; import android.view.View; import android.widget.Button; import android.widget.TextView; import edu.tufts.cs.mchow.R; import edu.tufts.cs.mchow.Game.AndroidInvaders; import edu.tufts.cs.mc...
package edu.tufts.cs.mchow.Menu; import android.app.Activity; import android.graphics.Typeface; import android.os.Bundle; import android.widget.Button; import android.widget.TextView; public class MenuActivity extends Activity { private Typeface f; public void onCreate(Bundle savedInstanceState) { s...
package edu.tufts.cs.mchow.Menu; import android.content.Intent; import android.os.Bundle; import android.view.View; import android.widget.Button; import edu.tufts.cs.mchow.R; import edu.tufts.cs.mchow.Game.AndroidInvaders; import edu.tufts.cs.mchow.Settings.MyLog; public class ChooseDifficultyScreen extends...
package edu.tufts.cs.mchow.Menu; import android.os.Bundle; import android.view.View; import android.widget.LinearLayout; import edu.tufts.cs.mchow.R; public class HelpScreen extends MenuActivity { LinearLayout fullScreen; private int screenNum; public void onCreate(Bundle savedInstanceState) { supe...
package edu.tufts.cs.mchow.Menu; import android.os.Bundle; import android.view.View; import android.widget.LinearLayout; import android.widget.TextView; import edu.tufts.cs.mchow.R; public class LoseScreen extends MenuActivity { private TextView congrats; private TextView score; private TextView highsco...
package edu.tufts.cs.mchow.Menu; import android.os.Bundle; import android.view.View; import android.widget.LinearLayout; import android.widget.TextView; import edu.tufts.cs.mchow.R; public class WinScreen extends MenuActivity { private TextView congrats; private TextView score; private TextView highscor...
package edu.tufts.cs.mchow.Menu; import android.os.Bundle; import android.widget.TextView; import edu.tufts.cs.mchow.R; import edu.tufts.cs.mchow.Settings.Settings; public class HighScoreScreen extends MenuActivity{ private TextView[] scores = new TextView[5]; public void onCreate(Bundle savedInstanceSt...
package edu.tufts.cs.mchow.Menu; import android.os.Bundle; import android.view.View; import android.widget.RelativeLayout; import android.widget.TextView; import edu.tufts.cs.mchow.R; public class CreditsScreen extends MenuActivity { private RelativeLayout fullScreen; public void onCreate(Bundle savedInst...
package edu.tufts.cs.mchow.Game; public class TapListener { public TapListener() { } }
package edu.tufts.cs.mchow.Game; public abstract class Planet { protected int MIN_SHOTS; public abstract Level getLevel(int levelNum, GameEngine ge); public abstract GameSprite getBoss(GameEngine ge); public int getMinShots() {return MIN_SHOTS;}; public abstract Planet getNextPlanet(); public abstract ...
package edu.tufts.cs.mchow.Game; import edu.tufts.cs.mchow.R; public class SpecialShot4 extends SpecialShot { private static final double SHOT_SPEED = 9; private static final double SHOT_SPREAD = SHOT_SPEED*1.3; private boolean spread; private int dir; private SpecialShot4 partner; public Specia...
package edu.tufts.cs.mchow.Game; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Rect; import android.graphics.RectF; import edu.tufts.cs.mchow.R; public class Box extends GameSprite { public Box(GameEngine gameEngine, double x, double y) { super(gameEngine, x, y); this.se...
package edu.tufts.cs.mchow.Game; import edu.tufts.cs.mchow.R; public class SpecialShot3 extends SpecialShot { private static final int SHOT_SPEED = 9; private boolean goRight; public SpecialShot3(GameEngine ge, double x, double y) { super(ge, x, y); this.setImage(R.drawable.shot4); this.set((...
package edu.tufts.cs.mchow.Game; import edu.tufts.cs.mchow.R; import edu.tufts.cs.mchow.Aliens.Alien; public class SpecialShot5 extends SpecialShot { private static final int SHOT_SPEED = 9; private Alien target; public SpecialShot5(GameEngine ge, double x, double y, Alien target) { super(ge, x, y); this.setI...
package edu.tufts.cs.mchow.Game; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Rect; import android.graphics.RectF; import edu.tufts.cs.mchow.R; public class Explosion extends GameSprite { int frame; public Explosion(GameEngine gameEngine, double x, double y) { ...
package edu.tufts.cs.mchow.Game; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Rect; import android.graphics.RectF; import edu.tufts.cs.mchow.R; public class Shot extends GameSprite { private int id; private static final int SHOT_SPEED = 9; public Shot(GameEngine ge, doubl...
package edu.tufts.cs.mchow.Game; import java.util.List; import android.app.Activity; import android.content.Context; import android.content.Intent; import android.content.pm.ActivityInfo; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware.SensorEventListener; impor...
package edu.tufts.cs.mchow.Game; import android.app.Application; public class TriageApplication extends Application { private static TriageApplication instance = null; public static final String PREFS = "AndInvPrefs"; public void onCreate() { super.onCreate(); instance = this; } public stati...
package edu.tufts.cs.mchow.Game; import android.app.Activity; import android.content.Intent; import android.graphics.Typeface; import android.os.Bundle; import android.util.Log; import android.view.View; import android.view.View.OnClickListener; import android.widget.TextView; import edu.tufts.cs.mchow.R; i...
package edu.tufts.cs.mchow.Game; import java.util.Random; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Rect; import android.graphics.RectF; import edu.tufts.cs.mchow.R; public class Mothership extends GameSprite { private static final int SHIP_SPEED = 3; privat...
package edu.tufts.cs.mchow.Game; import android.content.Context; import android.content.Intent; import android.graphics.Canvas; import android.view.MotionEvent; import android.view.SurfaceHolder; import edu.tufts.cs.mchow.Menu.LoseScreen; import edu.tufts.cs.mchow.Settings.Settings; public class GameThread extends Th...
package edu.tufts.cs.mchow.Game; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Rect; import android.graphics.RectF; public class SpecialShot extends GameSprite { protected static final int size = 5; public SpecialShot(GameEngine ge, double x, double y) { super(...
package edu.tufts.cs.mchow.Game; import edu.tufts.cs.mchow.R; public class SpecialShot2 extends SpecialShot { private static final int SHOT_SPEED = 9; private boolean goLeft; public SpecialShot2(GameEngine ge, double x, double y) { super(ge, x, y); this.setImage(R.drawable.shot3); this.set((f...
package edu.tufts.cs.mchow.Game; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import edu.tufts.cs.mchow.Aliens.Alien; import edu.tufts.cs.mchow.Aliens.Alien1; import edu.tufts.cs.mchow.Aliens.Alien2; import edu.tufts.cs.mchow.Aliens.Alien3; import edu.tufts.cs.mchow.Aliens.Alien4; imp...
package edu.tufts.cs.mchow.Game; import android.content.Context; import android.view.Display; import android.view.KeyEvent; import android.view.MotionEvent; import android.view.SurfaceHolder; import android.view.SurfaceView; public class AnimationView extends SurfaceView implements SurfaceHolder.Callback { // The ga...
package edu.tufts.cs.mchow.Game; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.RectF; public abstract class GameSprite extends RectF { protected GameEngine gameEngine; protected double x, y; protected String label; protected int poin...
package edu.tufts.cs.mchow.Game; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Rect; import android.graphics.RectF; import android.graphics.drawable.BitmapDrawable; import edu.tufts.cs.mchow.R; public class PlayerShip extends GameSprite {...
package edu.tufts.cs.mchow.Game; import edu.tufts.cs.mchow.R; public class SpecialShot1 extends SpecialShot { private static final int SHOT_SPEED = 9; public SpecialShot1(GameEngine ge, double x, double y) { super(ge, x, y); this.setImage(R.drawable.shot2); this.set((float) x, (float) y, (float...
package edu.tufts.cs.mchow.Game; import java.util.ArrayList; import java.util.Iterator; import android.content.Context; import android.content.Intent; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Rect; imp...
package edu.tufts.cs.mchow.Game; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Rect; import android.graphics.RectF; import edu.tufts.cs.mchow.R; public class AlienShot extends GameSprite { private int id; private static final int SHOT_SPEED = 3; public AlienShot(GameEngine...
package edu.tufts.cs.mchow.Game; import java.util.Random; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.Rect; import android.graphics.RectF; import android.graphics.Typeface; import edu.tufts.cs.mchow.R; public class Powerup extends ...
package edu.tufts.cs.mchow.Game; import android.graphics.Bitmap; import android.graphics.BitmapFactory; import android.graphics.Canvas; import android.graphics.Color; import android.graphics.Paint; import android.graphics.RectF; import android.graphics.Typeface; import edu.tufts.cs.mchow.R; public class HUD extends G...
package edu.tufts.cs.mchow.Settings; import edu.tufts.cs.mchow.R; import android.os.Bundle; import android.preference.PreferenceActivity; public class SettingsScreen extends PreferenceActivity { public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); addPreferencesFromRe...
package edu.tufts.cs.mchow.Settings; import android.content.SharedPreferences; import android.preference.PreferenceManager; import edu.tufts.cs.mchow.Game.TriageApplication; public class Settings { public static SharedPreferences getSharedPreferences() { TriageApplication app = TriageApplication.getInstanc...
package edu.tufts.cs.mchow.Settings; import android.util.Log; public class MyLog { public static void debug(String tag, String msg) { Log.d(tag, "TRIAGE_"+msg); } }
package edu.tufts.cs.mchow.Planet0; import edu.tufts.cs.mchow.Game.GameEngine; import edu.tufts.cs.mchow.Game.Level; public class Level1 extends Level { public Level1(GameEngine ge) { super(ge); } @Override public void init() { addBaddie(0, 0, 2); addBaddie(1, 0, 2); addBaddie(2, 0, 2); addBaddie(3,...
package edu.tufts.cs.mchow.Planet0; import edu.tufts.cs.mchow.Game.GameEngine; import edu.tufts.cs.mchow.Game.Level; public class Level4 extends Level { public Level4(GameEngine ge) { super(ge); } @Override public void init() { addBaddie(0, 0, 4); addBaddie(1, 0, 4); addBaddie(2, 0, 4); ...
package edu.tufts.cs.mchow.Planet0; import edu.tufts.cs.mchow.Game.GameEngine; import edu.tufts.cs.mchow.Game.Level; public class Level6 extends Level { public Level6(GameEngine ge) { super(ge); } @Override public void init() { addBaddie(0, 0, 1); addBaddie(1, 0, 2); addBaddie(2, 0, 3); ...
package edu.tufts.cs.mchow.Planet0; import edu.tufts.cs.mchow.Game.GameEngine; import edu.tufts.cs.mchow.Game.Level; public class Level3 extends Level { public Level3(GameEngine ge) { super(ge); } @Override public void init() { addBaddie(0, 0, 4); addBaddie(1, 0, 4); addBaddie(2, 0, 4); ...
package edu.tufts.cs.mchow.Planet0; import edu.tufts.cs.mchow.Game.GameEngine; import edu.tufts.cs.mchow.Game.Level; public class Level9 extends Level { public Level9(GameEngine ge) { super(ge); } @Override public void init() { addBaddie(0, 0, 2); addBaddie(1, 0, 1); addBaddie(2, 0, 1); ...
package edu.tufts.cs.mchow.Planet0; import edu.tufts.cs.mchow.Game.GameEngine; import edu.tufts.cs.mchow.Game.Level; public class Level5 extends Level { public Level5(GameEngine ge) { super(ge); } @Override public void init() { addBaddie(0, 0, 1); addBaddie(1, 0, 1); addBaddie(2, 0, 2); ...
package edu.tufts.cs.mchow.Planet0; import edu.tufts.cs.mchow.Game.GameEngine; import edu.tufts.cs.mchow.Game.Level; public class Level7 extends Level { public Level7(GameEngine ge) { super(ge); } @Override public void init() { addBaddie(0, 0, 1); addBaddie(1, 0, 1); addBaddie(2, 0, 2); ...
package edu.tufts.cs.mchow.Planet0; import edu.tufts.cs.mchow.Game.GameEngine; import edu.tufts.cs.mchow.Game.Level; public class Level0 extends Level { public Level0(GameEngine ge) { super(ge); } @Override public void init() { addBaddie(0, 0, 1); addBaddie(1, 0, 1); addBaddie(2, 0, 1); addBaddie(3, 0,...
package edu.tufts.cs.mchow.Planet0; import edu.tufts.cs.mchow.Game.GameEngine; import edu.tufts.cs.mchow.Game.Level; public class Level8 extends Level { public Level8(GameEngine ge) { super(ge); } @Override public void init() { addBaddie(0, 0, 1); addBaddie(2, 0, 1); addBaddie(4, 0, 1); ...
package edu.tufts.cs.mchow.Planet0; import edu.tufts.cs.mchow.R; import edu.tufts.cs.mchow.Game.GameEngine; import edu.tufts.cs.mchow.Game.GameSprite; import edu.tufts.cs.mchow.Game.Level; import edu.tufts.cs.mchow.Game.Planet; import edu.tufts.cs.mchow.Planet1.Planet1; public class Planet0 extends Planet { ...
package edu.tufts.cs.mchow.Planet0; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Rect; import android.graphics.RectF; import edu.tufts.cs.mchow.R; import edu.tufts.cs.mchow.Game.GameEngine; import edu.tufts.cs.mchow.Game.GameSprite; public class Boss0 extends GameSprite { pr...
package edu.tufts.cs.mchow.Planet0; import edu.tufts.cs.mchow.Game.GameEngine; import edu.tufts.cs.mchow.Game.Level; public class Level2 extends Level { public Level2(GameEngine ge) { super(ge); } @Override public void init() { addBaddie(4, 0, 3); addBaddie(5, 0, 3); addBaddie(6, 0, 3); addBaddie(7, 0,...
package edu.tufts.cs.mchow.Aliens; import java.util.Random; import android.graphics.Canvas; import edu.tufts.cs.mchow.R; import edu.tufts.cs.mchow.Game.GameEngine; public class Alien4 extends Alien { public Alien4(GameEngine ge, double x, double y) { super(ge, x, y); hp = MAX_HP = 1; points = 10; type = 4;...
package edu.tufts.cs.mchow.Aliens; import java.util.Random; import android.graphics.Canvas; import edu.tufts.cs.mchow.R; import edu.tufts.cs.mchow.Game.GameEngine; public class Alien3 extends Alien { public Alien3(GameEngine ge, double x, double y) { super(ge, x, y); hp = MAX_HP = 1; points = 10; type = 2;...
package edu.tufts.cs.mchow.Aliens; import java.util.Random; import android.graphics.Canvas; import edu.tufts.cs.mchow.R; import edu.tufts.cs.mchow.Game.GameEngine; public class Alien1 extends Alien { public Alien1(GameEngine ge, double x, double y) { super(ge, x, y); hp = MAX_HP = 1; points = 10; type = 1;...
package edu.tufts.cs.mchow.Aliens; import java.util.Random; import android.graphics.Canvas; import edu.tufts.cs.mchow.R; import edu.tufts.cs.mchow.Game.GameEngine; public class Alien2 extends Alien { public Alien2(GameEngine ge, double x, double y) { super(ge, x, y); hp = MAX_HP = 1; points = 10; type = 3;...
package edu.tufts.cs.mchow.Aliens; import java.util.Random; import edu.tufts.cs.mchow.Game.GameEngine; import edu.tufts.cs.mchow.Game.GameSprite; import android.graphics.Canvas; import android.graphics.Paint; import android.graphics.Rect; import android.graphics.RectF; public class Alien extends GameSprite { priva...