Source
stringclasses
1 value
Date
int32
2.01k
2.01k
Text
stringlengths
3
15.9M
Token_count
int32
1
2.44M
github-java-corpus
2,012
package com.cribbstechnologies.clients.mandrill.request; import java.util.List; import org.codehaus.jackson.type.TypeReference; import com.cribbstechnologies.clients.mandrill.exception.RequestFailedException; import com.cribbstechnologies.clients.mandrill.model.BaseMandrillRequest; import com.cribbstechnologies.clie...
506
github-java-corpus
2,012
package com.cribbstechnologies.clients.mandrill.request; import java.util.List; import org.codehaus.jackson.type.TypeReference; import com.cribbstechnologies.clients.mandrill.exception.RequestFailedException; import com.cribbstechnologies.clients.mandrill.model.BaseMandrillRequest; import com.cribbstechnologies.clie...
971
github-java-corpus
2,012
package com.cribbstechnologies.clients.mandrill.request; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.net.MalformedURLException; import java.util.List; import org.apache.http.HttpResponse; import org.apache.http.client.HttpClient; import org.apache.http.clie...
1,164
github-java-corpus
2,012
package com.cribbstechnologies.clients.mandrill.util; import static org.junit.Assert.assertEquals; import org.junit.Test; public class MandrillConfigurationTest { @Test public void testGetServiceUrl() { MandrillConfiguration config = new MandrillConfiguration(); config.setApiVersion("1.0"); config.setBaseU...
116
github-java-corpus
2,012
package com.cribbstechnologies.clients.mandrill.util; import static org.junit.Assert.assertEquals; import static org.junit.Assert.fail; import java.text.ParseException; import java.util.Calendar; import java.util.Date; import org.junit.Test; public class MandrillSimpleDateFormatTest { MandrillSimpleDateFormat fo...
308
github-java-corpus
2,012
package com.cribbstechnologies.clients.mandrill.request; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import static org.mockito.Matchers.isA; import static org.mockito.Mockito.doReturn; import st...
6,284
github-java-corpus
2,012
package com.cribbstechnologies.clients.mandrill.request; import static org.mockito.MockitoAnnotations.initMocks; import org.junit.Before; import org.junit.Test; import org.mockito.Mock; import org.mockito.Mockito; import com.cribbstechnologies.clients.mandrill.exception.RequestFailedException; import com.cribbstechn...
841
github-java-corpus
2,012
package com.cribbstechnologies.clients.mandrill.it; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.fail; import java.io.IOException; import java.util.Properties; import org.apache.http.client.HttpClient; import org.apache.http.impl.client.Defau...
898
github-java-corpus
2,012
package com.cribbstechnologies.clients.mandrill.it; import static org.junit.Assert.assertEquals; import static org.junit.Assert.fail; import java.io.IOException; import java.util.Properties; import org.apache.http.client.HttpClient; import org.apache.http.impl.client.DefaultHttpClient; import org.codehaus.jackson.ma...
883
github-java-corpus
2,012
package com.cribbstechnologies.clients.mandrill.it; import static org.junit.Assert.fail; import java.io.IOException; import java.util.Properties; import org.apache.http.client.HttpClient; import org.apache.http.impl.client.DefaultHttpClient; import org.codehaus.jackson.map.ObjectMapper; import org.junit.Before; impo...
658
github-java-corpus
2,012
package com.cribbstechnologies.clients.mandrill.it; import static org.junit.Assert.fail; import java.io.IOException; import java.util.Properties; import org.apache.http.client.HttpClient; import org.apache.http.impl.client.DefaultHttpClient; import org.codehaus.jackson.map.ObjectMapper; import org.junit.Before; impo...
639
github-java-corpus
2,012
package com.cribbstechnologies.clients.mandrill.it; import static org.junit.Assert.fail; import java.io.IOException; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import java.util.Properties; import com.cribbstechnologies.clients.mandrill.model.*; import com.cribb...
1,157
github-java-corpus
2,012
package core; //============================================================================== // Date Created: 19 December 2011 // Last Updated: 26 May 2012 // // File Name: GameFrame.java // File Author: M Matthew Hydock // // File Description: An abstract class representing a generic game frame. It // su...
2,986
github-java-corpus
2,012
package core; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Toolkit; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import scenes.Scene; import engine.Engine; import engine.Input; import graphics.ContentPanel; /** * GameRunner * @author nhydock * * The extended GameFrame...
1,190
github-java-corpus
2,012
package item; import java.io.File; import java.io.FilenameFilter; import java.util.ArrayList; import java.util.HashMap; import java.util.prefs.Preferences; import org.ini4j.Ini; import org.ini4j.IniPreferences; import spell.Spell; /** * Item.java * @author nhydock * * Class that stores information for item obje...
2,038
github-java-corpus
2,012
package tests; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import static org.junit.Assert.fail; import item.Item; import java.io.File; import java.util.Arrays; import java.util.prefs.Preferences; import org.ini4j.Ini; import org.ini4j.IniPreferences; import org.junit.Test;...
983
github-java-corpus
2,012
package tests; import junit.framework.TestCase; import org.junit.Test; import actors.Enemy; /** * TestEnemy.java * @author nhydock * Junit test for enemies */ public class TestEnemy extends TestCase { /** * Tests initializing of an enemy...there's not much else to really test */ @Test public void testIn...
174
github-java-corpus
2,012
package tests; /** * TestParty.java * @author Nicholas Hydock * * Description: JUnit test for testing the capabilities of * the party class */ import groups.Party; import java.io.File; import junit.framework.TestCase; import org.junit.Test; import actors.Player; public class PartyTest extends TestCase...
665
github-java-corpus
2,012
package tests; import actors.Actor; import graphics.Sprite; public class MockActor extends Actor{ public MockActor(String n) { name = n.substring(0,4); //char limit of 4 hp = 10; maxhp = 10; str = 10; def = 10; spd = 10; evd = 10; vit = 10; acc = 10; itl = 10; loadSprites(); } @Override p...
168
github-java-corpus
2,012
package tests; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import groups.Formation; import groups.Party; import org.junit.Test; import commands.FleeCommand; import actors.Player; /** * FleeTest * @author nhydock * * JUnit ...
328
github-java-corpus
2,012
package tests; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import groups.Formation; import org.junit.Test; import scenes.BattleScene.BattleScene; import scenes.BattleScene.System.BattleSystem; import actors.Enemy; /** * BattleSceneTest * @author nhydock * * JUnit test...
255
github-java-corpus
2,012
package tests; import static org.junit.Assert.assertEquals; import org.junit.Test; import scenes.BattleScene.System.BattleSystem; import scenes.BattleScene.System.EngageState; import actors.Actor; import actors.Player; import commands.AttackCommand; import engine.Engine; import groups.Formation; import groups.Par...
299
github-java-corpus
2,012
package tests; import static org.junit.Assert.assertEquals; import java.io.File; import java.util.prefs.Preferences; import org.ini4j.Ini; import org.ini4j.IniPreferences; import org.junit.Test; import scenes.ShopScene.System.Shop; public class ShopTest { @Test public void test() { String path = "maps/test/";...
178
github-java-corpus
2,012
package tests; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import org.junit.Test; import commands.AttackCommand; import commands.Command; import actors.Actor; import actors.Player; /** * AttackTest * @author nhydock * * JUnit test for the attack command */ public cl...
518
github-java-corpus
2,012
package tests; import static org.junit.Assert.assertEquals; import groups.Formation; import org.junit.Test; import actors.Enemy; /** * FormationTest.java * @author Nicholas Hydock * * Description: JUnit test for testing the capabilities of * the formation class */ public class FormationTest { @Test ...
185
github-java-corpus
2,012
package tests; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import org.junit.Test; import scenes.BattleScene.System.BattleSystem; import scenes.BattleScene.System.IssueState; import commands.AttackCommand; import commands.SpellCo...
1,077
github-java-corpus
2,012
package tests; import static org.junit.Assert.assertTrue; import org.junit.Test; import scenes.BattleScene.System.BattleSystem; import scenes.BattleScene.System.EngageState; import scenes.BattleScene.System.IssueState; import scenes.BattleScene.System.MessageState; import engine.Engine; import groups.Formation; imp...
603
github-java-corpus
2,012
package tests; import static org.junit.Assert.assertTrue; import groups.Formation; import groups.Party; import org.junit.Test; import commands.SpellCommand; import spell.Spell; import actors.Actor; import actors.Player; /** * SpellTest * @author nhydock * * JUnit test for spells */ public class SpellCommandTe...
413
github-java-corpus
2,012
package tests; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; import org.junit.Test; import spell.Spell; public class SpellTest { /** * Test basic loading spell from file * Since this is really all a spell by itself can do, w...
208
github-java-corpus
2,012
package tests; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; import org.junit.Test; import engine.Engine; import scenes.CreationScene.CreationScene; import scenes.TitleScene.TitleScene; /** * EngineTest * @author nhydock * * JUnit test for the Engine */ public class E...
379
github-java-corpus
2,012
package commands; import org.nfunk.jep.JEP; import org.nfunk.jep.ParseException; import spell.Spell; import actors.Actor; /** * Spell.java * @author nhydock * * Base class for Spell commands. Spells are special in that * their attack is usually specialized on a type of element. * Additionally, their strength ...
788
github-java-corpus
2,012
package commands; import actors.Actor; /** * Flee.java * @author nhydock * * Flee command tries to end the battle early */ public class FleeCommand extends Command { public FleeCommand(Actor a, Actor[] t) { super(a, t); invoker = a; name = "RUN"; } /** * Executes the running * if run is ...
238
github-java-corpus
2,012
package commands; import graphics.Animation; import actors.Actor; /** * Command * @author nhydock * * Base battle command class */ public abstract class Command { public static final int TARGET_SOLO = 0; public static final int TARGET_GROUP = 1; public static final int TARGET_ALL = 2; protected String nam...
754
github-java-corpus
2,012
package commands; import item.Item; import actors.Actor; import engine.Engine; /** * ItemCommand * @author nhydock * * ItemCommand is identical to Spell command, except it will use up the party's items * instead of the invoker's mp. Items can only be used by the party, so the command * directly access's the pa...
293
github-java-corpus
2,012
package commands; import graphics.Animation; import actors.Actor; import actors.Player; public class AttackCommand extends Command { final int base = 168; //this is the base hit chance value /** * Constructs a basic physical attack command * @param a * @param t */ public AttackCommand(Actor a, Actor[] t...
766
github-java-corpus
2,012
package commands; import actors.Actor; /** * Drink.java * @author nhydock * * Drink command is very simple and automatically makes the actor * use a potion on himself if he has one in his possession */ public class Drink extends Command { /** * Constructs the command * @param a */ public Drink(Actor ...
157
github-java-corpus
2,012
package scenes.WorldScene.GUI; import java.awt.Font; import java.awt.Graphics; import java.util.List; import map.Map; import map.NPC; import map.TileSet; import scenes.HUD; import scenes.WorldScene.WorldSystem.DialogState; import scenes.WorldScene.WorldSystem.WorldSystem; /** * WorldHUD * @author nhydock * * Gr...
574
github-java-corpus
2,012
package scenes.WorldScene.GUI; import graphics.ContentPanel; import graphics.SWindow; import java.awt.Color; import java.awt.Graphics; import scenes.HUD; /** * DialogWindow * @author nhydock * * Simple window for displaying the text of an event or npc */ public class DialogWindow extends HUD { SWindow window...
298
github-java-corpus
2,012
package scenes.WorldScene.WorldSystem; import map.Map; import map.NPC; import scenes.GameState; import engine.Engine; import engine.Input; /** * ExploreState * @author nhydock * * World state for handling moving the character around a map */ public class ExploreState extends GameState { WorldSystem parent; ...
558
github-java-corpus
2,012
package scenes.WorldScene.WorldSystem; import map.NPC; import engine.Input; import graphics.ContentPanel; import graphics.NES; import graphics.SFont; import scenes.GameState; import scenes.GameSystem; /** * DialogState * @author nhydock * * WorldState for handling displaying dialog between characters */ public c...
389
github-java-corpus
2,012
package scenes.WorldScene.WorldSystem; import map.Map; import map.NPC; import map.Terrain; import scenes.GameSystem; import engine.Engine; import groups.Formation; public class WorldSystem extends GameSystem { Engine e; Map map; //player's coordinates static int encounterNum; //current count until next enc...
786
github-java-corpus
2,012
package scenes.WorldScene; import map.Map; import scenes.Scene; import scenes.WorldScene.GUI.WorldHUD; import scenes.WorldScene.WorldSystem.WorldSystem; import engine.Engine; /** * WorldScene * @author nhydock * * Scene for showing npcs and characters wandering around maps */ public class WorldScene extends Sce...
224
github-java-corpus
2,012
package scenes; import java.awt.Graphics; /** * Scene.java * @author nhydock * * Scene class to encapsulate logic and display */ public class Scene{ protected GameSystem system; //logic system of the scene protected HUD display; //display system of the scene /** * Starts the s...
344
github-java-corpus
2,012
package scenes.ShopScene; import scenes.Scene; import scenes.ShopScene.GUI.ShopGUI; import scenes.ShopScene.System.Shop; import scenes.ShopScene.System.ShopSystem; public class ShopScene extends Scene { /** * Since the shops are spontaneously created and depend on NPCs, * the system and display can be set to ...
133
github-java-corpus
2,012
package scenes.ShopScene.System; import scenes.GameState; import scenes.GameSystem; import engine.Engine; import engine.Input; public class GreetState extends GameState { public static final String[] commands = {"Buy", "Sell", "Exit"}; public GreetState(GameSystem c) { super(c); } @Override public void sta...
249
github-java-corpus
2,012
package scenes.ShopScene.System; import scenes.GameSystem; public class ShopSystem extends GameSystem { Shop shop; //different states of the system BuyState bs; //SellState ss; GreetState gs; public ShopSystem(Shop s) { shop = s; bs = new BuyState(this); //ss = new SellState(this); gs = new GreetS...
236
github-java-corpus
2,012
package scenes.ShopScene.System; import engine.Engine; import engine.Input; import groups.Party; import item.Item; import scenes.GameState; /** * BuyState * @author nhydock * * GameState for ShopSystem, allows player to buy items from the shop */ public class BuyState extends GameState { ShopSystem parent; //p...
689
github-java-corpus
2,012
package scenes.ShopScene.System; import graphics.Sprite; import item.Item; import java.util.ArrayList; import java.util.prefs.Preferences; import audio.MP3; /** * Shop * @author nhydock * * Location where players can buy items and sell their excess ones * for money. */ public class Shop { Item[] items; ...
329
github-java-corpus
2,012
package scenes.ShopScene.GUI; import engine.Engine; import graphics.ContentPanel; import graphics.NES; import graphics.SFont; import graphics.SWindow; import graphics.Sprite; import groups.Party; import item.Item; import java.awt.Graphics; import scenes.GameState; import scenes.HUD; import scenes.ShopScene.System.Bu...
1,372
github-java-corpus
2,012
package scenes; import graphics.ContentPanel; import graphics.NES; import graphics.SFont; import graphics.Sprite; import java.awt.Color; import java.awt.Graphics; /** * HUD * @author nhydock * * Heads up display, mainly used for facading sprites for a scene to render */ public abstract class HUD extends Sprite...
425
github-java-corpus
2,012
package scenes.MenuScene.System; import engine.Engine; import engine.Input; import groups.Party; import scenes.GameState; import scenes.GameSystem; import actors.Player; /** * OrderState * @author nhydock * * State for handling the reorganization of party members */ public class OrderState extends GameState { ...
660
github-java-corpus
2,012
package scenes.MenuScene.System; import scenes.GameState; import scenes.GameSystem; import engine.Engine; import groups.Party; /** * MenuSystem * @author nhydock * * System for the main menu */ public class MenuSystem extends GameSystem { //game engine instance Engine e = Engine.getInstance(); //different g...
702
github-java-corpus
2,012
package scenes.MenuScene.System; import item.Item; import scenes.GameSystem; import engine.Input; public class ArmorState extends EquipmentState { public ArmorState(GameSystem c) { super(c); } /** * Handles input/navigating the list of items */ @Override public void handleKeyInput(int key) { if (mode...
158
github-java-corpus
2,012
package scenes.MenuScene.System; /** * EquipmentState.java * @author nhydock * * The armor and weapon states are actually generic enough to follow the same structure */ import scenes.GameState; import scenes.GameSystem; import actors.Player; import engine.Engine; import engine.Input; public class EquipmentState...
607
github-java-corpus
2,012
package scenes.MenuScene.System; import scenes.GameState; import engine.Engine; import engine.Input; /** * MenuState * @author nhydock * * Enter state for the main menu * Allows selecting of sub menus */ public class MenuState extends GameState { Engine e; public static String[] commands = {"ITEM", "MAGIC", "...
478
github-java-corpus
2,012
package scenes.MenuScene.System; import scenes.GameState; import engine.Input; /** * InventoryState * @author nhydock * * State that handles managing and viewing the party's * items in possession */ public class InventoryState extends GameState { String[] items; //items to display boolean hasItems = false;...
519
github-java-corpus
2,012
package scenes.MenuScene.System; import scenes.GameState; import scenes.GameSystem; import engine.Input; public class StatusState extends GameState { public StatusState(GameSystem c) { super(c); } @Override public void start() { } @Override public void handle() { } @Override public void finish()...
113
github-java-corpus
2,012
package scenes.MenuScene.System; import scenes.GameSystem; import engine.Input; public class WeaponState extends EquipmentState { public WeaponState(GameSystem c) { super(c); } /** * Handles input/navigating the list of items */ @Override public void handleKeyInput(int key) { if (mode != 0) { if...
157
github-java-corpus
2,012
package scenes.MenuScene.System; import actors.Actor; import actors.Player; import scenes.GameState; import engine.Input; /** * InventoryState * @author nhydock * * State that handles managing and viewing the party's * items in possession */ public class MagicState extends GameState { //item selection int row...
466
github-java-corpus
2,012
package scenes.MenuScene.GUI; import java.awt.Graphics; import scenes.HUD; import scenes.MenuScene.System.MenuState; import scenes.MenuScene.System.MenuSystem; import actors.Player; import engine.Engine; import graphics.NES; import graphics.SFont; import graphics.SWindow; import graphics.Sprite; import groups.Party; ...
1,604
github-java-corpus
2,012
package scenes.MenuScene.GUI; import java.awt.Graphics; import scenes.HUD; import scenes.MenuScene.System.OrderState; import engine.Engine; import graphics.NES; import graphics.SFont; import graphics.SWindow; import graphics.Sprite; import groups.Party; /** * OrderGUI * @author nhydock * * This gui provides an i...
956
github-java-corpus
2,012
package scenes.MenuScene.GUI; import java.awt.Graphics; import scenes.HUD; import scenes.MenuScene.System.EquipmentState; import scenes.MenuScene.System.WeaponState; import actors.Player; import engine.Engine; import graphics.NES; import graphics.SFont; import graphics.SWindow; import groups.Party; /** * Equipment ...
1,246
github-java-corpus
2,012
package scenes.MenuScene.GUI; import java.awt.Graphics; import scenes.HUD; import scenes.MenuScene.System.InventoryState; import engine.Engine; import graphics.NES; import graphics.SFont; import graphics.SWindow; import graphics.Sprite; import groups.Inventory; import groups.Party; /** * MainGUI * @author nhydock ...
915
github-java-corpus
2,012
package scenes.MenuScene.GUI; import java.awt.Graphics; import actors.Actor; import actors.Player; import scenes.HUD; import scenes.MenuScene.System.InventoryState; import scenes.MenuScene.System.MagicState; import engine.Engine; import graphics.NES; import graphics.SFont; import graphics.SWindow; import graphics.Sp...
889
github-java-corpus
2,012
package scenes.MenuScene.GUI; import graphics.NES; import graphics.Sprite; import java.awt.Graphics; import scenes.GameState; import scenes.HUD; import scenes.MenuScene.System.*; /** * MenuGUI * @author nhydock * * Displays the interface for the main system menu gui */ public class MenuGUI extends HUD { Spri...
638
github-java-corpus
2,012
package scenes.MenuScene.GUI; import java.awt.Graphics; import scenes.HUD; import actors.Player; import engine.Engine; import graphics.NES; import graphics.SFont; import graphics.SWindow; import graphics.Sprite; /** * StatusGUI * @author nhydock * * Status screen that shows the status of an individual player */...
1,176
github-java-corpus
2,012
package scenes.MenuScene; import scenes.Scene; import scenes.MenuScene.GUI.MenuGUI; import scenes.MenuScene.System.MenuSystem; /** * MenuScene * @author nhydock * * Menu scene for showing your party's stats and stuff */ public class MenuScene extends Scene{ /** * Starts the scene */ @Override public v...
162
github-java-corpus
2,012
package scenes.BattleScene; import graphics.Sprite; import groups.Formation; import scenes.Scene; import scenes.BattleScene.GUI.BattleHUD; import scenes.BattleScene.System.BattleSystem; public class BattleScene extends Scene { /** * Starts the scene */ @Override public void start() { //start(null, new Sprit...
289
github-java-corpus
2,012
package scenes.BattleScene.System; import java.util.ArrayList; import scenes.GameState; import actors.Actor; import actors.Player; import commands.Command; import commands.FleeCommand; import commands.SpellCommand; import core.GameRunner; /** * MessageState.java * @author nhydock * * Displays the results of the...
680
github-java-corpus
2,012
package scenes.BattleScene.System; import engine.Engine; import engine.Input; import groups.Formation; import groups.Party; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import core.GameRunner; import scenes.GameState; import actors.Player; import audio.MP3; /** * VictoryState * @...
1,435
github-java-corpus
2,012
package scenes.BattleScene.System; import item.Item; import java.util.ArrayList; import scenes.GameState; import spell.Spell; import actors.Actor; import actors.Player; import commands.AttackCommand; import commands.Command; import commands.FleeCommand; import commands.ItemCommand; import commands.SpellCommand; im...
2,812
github-java-corpus
2,012
package scenes.BattleScene.System; import scenes.GameState; import actors.Actor; import actors.Player; /** * EngageState * @author nhydock * * BattleSystem state that executes the moves of * the current active actor in the battle */ public class EngageState extends GameState { private Actor activeActor; E...
434
github-java-corpus
2,012
package scenes.BattleScene.System; import scenes.GameState; import audio.MP3; /** * GameOverState * @author nhydock * * BattleSystem state that is invoked when all the members * of your party are dead. Program is killed upon striking any * key. */ public class GameOverState extends GameState { /** *...
227
github-java-corpus
2,012
package scenes.BattleScene.System; import java.util.ArrayList; import java.util.Collections; import java.util.Iterator; import java.util.List; import scenes.GameSystem; import spell.Spell; import actors.Actor; import actors.Enemy; import actors.Player; import audio.MP3; import commands.AttackCommand; import commands...
1,959
github-java-corpus
2,012
package scenes.BattleScene.GUI; import graphics.SFont; import graphics.SWindow; import groups.Inventory; import java.awt.Graphics; import scenes.HUD; import scenes.BattleScene.System.BattleSystem; /** * DrinkDisplay * @author nhydock * * Displays a list of the party's drinkables */ public class DrinkDisplay ex...
408
github-java-corpus
2,012
package scenes.BattleScene.GUI; import graphics.SWindow; import item.Item; import java.awt.Graphics; import java.util.ArrayList; import scenes.HUD; import scenes.BattleScene.System.IssueState; /** * ItemDisplay * @author nhydock * * Displays a list of the player's weapons/armor/accessories being carries */ pub...
289
github-java-corpus
2,012
package scenes.BattleScene.GUI; import graphics.SWindow; import graphics.Sprite; import groups.Party; import java.awt.Graphics; import scenes.HUD; import scenes.BattleScene.System.BattleSystem; import actors.Player; /** * PartySpriteDisplay * @author nhydock * * Displays the party's sprites during battle */ pu...
846
github-java-corpus
2,012
package scenes.BattleScene.GUI; import graphics.SFont; import graphics.SWindow; import java.awt.Graphics; import scenes.HUD; import scenes.BattleScene.System.BattleSystem; import scenes.BattleScene.System.IssueState; import actors.Actor; /** * SpellDisplay * @author nhydock * * Displays a list of the player's s...
444
github-java-corpus
2,012
package scenes.BattleScene.GUI; import graphics.SWindow; import java.awt.Graphics; import scenes.GameState; import scenes.HUD; import scenes.BattleScene.System.EngageState; import scenes.BattleScene.System.MessageState; import commands.Command; import commands.FleeCommand; /** * MessageDisplay * @author nhydock ...
755
github-java-corpus
2,012
package scenes.BattleScene.GUI; import graphics.SWindow; import groups.Formation; import java.awt.Graphics; import java.util.ArrayList; import scenes.HUD; import scenes.BattleScene.System.BattleSystem; import actors.Enemy; /** * EnemyListDisplay * @author nhydock * * Small window that displays a list of all the...
289
github-java-corpus
2,012
package scenes.BattleScene.GUI; import graphics.NES; import graphics.Sprite; import java.awt.Graphics; import scenes.GameState; import scenes.GameSystem; import scenes.HUD; import scenes.BattleScene.System.BattleSystem; import scenes.BattleScene.System.EngageState; import scenes.BattleScene.System.GameOverState; imp...
1,287
github-java-corpus
2,012
package scenes.BattleScene.GUI; import graphics.SWindow; import graphics.Sprite; import java.awt.Graphics; import scenes.HUD; import scenes.BattleScene.System.VictoryState; /** * VictoryDisplay * @author nhydock * * Displays message upon victory of the experience and gold gained */ public class VictoryDisplay ...
616
github-java-corpus
2,012
package scenes.BattleScene.GUI; import graphics.SWindow; import java.awt.Graphics; import scenes.HUD; import scenes.BattleScene.System.IssueState; /** * CommandDisplay * @author nhydock * * Shows list of commands that the player can select and execute */ public class CommandDisplay extends HUD{ SWindow wind...
265
github-java-corpus
2,012
package scenes.BattleScene.GUI; import graphics.SWindow; import graphics.Sprite; import java.awt.Graphics; import scenes.HUD; import scenes.BattleScene.System.BattleSystem; import actors.Enemy; public class EnemySpriteDisplay extends HUD{ SWindow window; Sprite background; //distance away from the window boar...
608
github-java-corpus
2,012
package scenes.BattleScene.GUI; import engine.Engine; import graphics.SWindow; import graphics.Sprite; import java.awt.Color; import java.awt.Graphics; /** * GameOverDisplay * @author nhydock * * Displays game over message */ public class GameOverDisplay extends Sprite{ SWindow window; String leadName; p...
191
github-java-corpus
2,012
package scenes.BattleScene.GUI; import graphics.SFont; import graphics.SWindow; import java.awt.Graphics; import scenes.HUD; import scenes.BattleScene.System.BattleSystem; import actors.Player; /** * PartyStatusDisplay * @author nhydock * * Group window display for showing your party members' status */ public ...
388
github-java-corpus
2,012
package scenes; /** * GameSystem * @author nhydock * * GameSystems is the base class for scene controlling systems * They house all the logic for the scene */ public abstract class GameSystem { protected GameState state; //current state of the scene /** * Updates the system */ ...
194
github-java-corpus
2,012
package scenes.CreationScene; import scenes.Scene; import scenes.CreationScene.GUI.CreationHUD; import scenes.CreationScene.System.CreationSystem; /** * CreationScene * @author nhydock * * This scene displays the party creation scene at the beginning of FF1. */ public class CreationScene extends Scene { @Overr...
152
github-java-corpus
2,012
package scenes.CreationScene.System; import scenes.GameSystem; import actors.Player; import engine.Engine; import groups.Party; /** * CreationSystem * @author nhydock * * Logic system that handles how the creation scene should work */ public class CreationSystem extends GameSystem{ Engine e; Player activeP...
594
github-java-corpus
2,012
package scenes.CreationScene.System; import scenes.GameState; import engine.Input; /** * NamingState * @author nhydock * * CreationState that handles naming the character */ public class NamingState extends GameState{ String name; int x; int y; public static final char[][] letters = {{'A', 'B', 'C', 'D', ...
769
github-java-corpus
2,012
package scenes.CreationScene.System; import scenes.GameState; import actors.Player; import engine.Input; /** * ChooseJobsState * @author nhydock * * Sets the job of the character */ public class ChooseJobsState extends GameState { Player p; Player[] jobs; Player selectedJob; int index; ChooseJobsState(Cr...
317
github-java-corpus
2,012
package scenes.CreationScene.GUI; import graphics.NES; import graphics.Sprite; import java.awt.Graphics; import scenes.HUD; import scenes.CreationScene.System.CreationSystem; import scenes.CreationScene.System.NamingState; /** * HUD.java * @author nhydock * * Collection of GUI components for the creation system...
316
github-java-corpus
2,012
package scenes.CreationScene.GUI; import graphics.Sprite; import groups.Party; import java.awt.Graphics; import scenes.CreationScene.System.CreationSystem; /** * PartyDisplay * @author nhydock * * Displays the members of the party you are building */ public class PartyDisplay extends Sprite { PlayerWindow[] ...
324
github-java-corpus
2,012
package scenes.CreationScene.GUI; import graphics.NES; import graphics.SWindow; import java.awt.Color; import java.awt.Graphics; import scenes.HUD; import scenes.CreationScene.System.CreationSystem; import scenes.CreationScene.System.NamingState; public class NamingDisplay extends HUD { CreationSystem parent; SW...
375
github-java-corpus
2,012
package scenes.CreationScene.GUI; import graphics.NES; import graphics.SWindow; import java.awt.Graphics; import scenes.HUD; import actors.Player; /** * PlayerWindow * @author nhydock * * Simple window for the creation scene that shows the players, * their names, and the sprites for their jobs. */ public cla...
331
github-java-corpus
2,012
package scenes.TitleScene.System; import engine.Input; import graphics.ContentPanel; import graphics.NES; import graphics.SFont; import java.io.FileInputStream; import java.util.ArrayList; import java.util.Scanner; import scenes.GameState; import audio.MP3; import core.GameRunner; public class IntroState extends G...
683
github-java-corpus
2,012
package scenes.TitleScene.System; import audio.MP3; import scenes.GameSystem; import engine.Engine; /** * TitleSystem * @author nhydock * * Main title screen system */ public class TitleSystem extends GameSystem { Engine engine; IntroState is; //state for showing the blue backed intro story TitleState ts;...
247
github-java-corpus
2,012
package scenes.TitleScene.System; import core.GameRunner; import scenes.GameState; import engine.Engine; import engine.Input; /** * TitleState * @author nhydock * * Very simple, just allows the player to select between a new game or * continue from their previous save data. */ public class TitleState extends Ga...
343
github-java-corpus
2,012
package scenes.TitleScene; import scenes.Scene; import scenes.TitleScene.GUI.TitleGUI; import scenes.TitleScene.System.TitleSystem; public class TitleScene extends Scene { @Override public void start() { system = new TitleSystem(); display = new TitleGUI((TitleSystem)system); } @Override public void stop...
85
github-java-corpus
2,012
package scenes.TitleScene.GUI; import graphics.ContentPanel; import graphics.NES; import graphics.SFont; import java.awt.Color; import java.awt.Graphics; import scenes.HUD; import scenes.TitleScene.System.IntroState; /** * Intro * @author nhydock * * Displays that classic intro animation that tells the story *...
284