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.grupolainmaculada.sictem.dao; import java.util.List; import com.grupolainmaculada.sictem.dominio.Sucursales; /** * * @author Gerald * */ public interface SucursalDAO { public List<Sucursales> listarTodo(); }
66
github-java-corpus
2,012
/** * */ package com.grupolainmaculada.sictem.dao; /** * @author Gerald * */ public interface GeneradorCorrelativosDAO { public Integer obtnerCorrelativoSerieEmpresa(String nombreTabla); }
50
github-java-corpus
2,012
package com.grupolainmaculada.sictem.dao; import java.util.List; import com.grupolainmaculada.sictem.dominio.Clientes; public interface ClienteDAO { public List<Clientes> listarCliente(); public void actualizarCliente(Clientes clientes); public Clientes obtenerClientePorId(Long codigoCliente); public v...
78
github-java-corpus
2,012
package com.grupolainmaculada.sictem.dao; import com.grupolainmaculada.sictem.dominio.UserSystema; public interface UserSystemaDAO { UserSystema findByUsername(String username); void registrarUsuario(UserSystema userSystema,String password); }
61
github-java-corpus
2,012
package com.grupolainmaculada.sictem.dao; import java.util.List; import com.grupolainmaculada.sictem.dominio.CondiPago; public interface CondiPagoDAO { public List<CondiPago> listarCondiPago(); public void actualizarCondiPago(CondiPago condiPago); public CondiPago obtenerCondiPagoPorId(String codigoCondi...
100
github-java-corpus
2,012
package com.grupolainmaculada.sictem.dao; import com.grupolainmaculada.sictem.dominio.CobranzaAnu; public interface CobranzaAnuDAO { public CobranzaAnu obtenerCobranzaAnuPorId(Long codigoCobranza); public void registrarCobranzaAnu(CobranzaAnu cobranzaAnu); }
90
github-java-corpus
2,012
/** * */ package com.grupolainmaculada.sictem.dao; import java.util.List; import com.grupolainmaculada.sictem.dominio.Roles; /** * @author Gerald * */ public interface RolDAO { List<Roles> getRolesByUser(Integer codUser); }
66
github-java-corpus
2,012
package com.grupolainmaculada.sictem.dao; import java.util.List; import com.grupolainmaculada.sictem.dominio.Linea; public interface LineaDAO { public List<Linea> listarLinea(); public void actualizarLinea(Linea linea); public Linea obtenerLineaPorId(Long codigoLinea); public void registrarLinea(Linea ...
85
github-java-corpus
2,012
package com.grupolainmaculada.sictem.dao.jdbc; import java.sql.ResultSet; import java.sql.SQLException; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.RowMapper; import org.springfra...
739
github-java-corpus
2,012
/** * */ package com.grupolainmaculada.sictem.dao.jdbc; import java.sql.ResultSet; import java.sql.SQLException; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.RowMapper; impor...
303
github-java-corpus
2,012
/** * */ package com.grupolainmaculada.sictem.dao.jdbc; import java.sql.ResultSet; import java.sql.SQLException; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.RowMapper; impor...
274
github-java-corpus
2,012
package com.grupolainmaculada.sictem.dao.jdbc; import java.math.BigDecimal; import java.sql.Date; import java.sql.ResultSet; import java.sql.SQLException; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.sprin...
1,334
github-java-corpus
2,012
/** * */ package com.grupolainmaculada.sictem.dao.jdbc; import java.sql.ResultSet; import java.sql.SQLException; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.RowMapper; import org.springframework.st...
403
github-java-corpus
2,012
/** * */ package com.grupolainmaculada.sictem.dao.jdbc; import java.sql.ResultSet; import java.sql.SQLException; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.RowMapper; impor...
801
github-java-corpus
2,012
package com.grupolainmaculada.sictem.dao.jdbc; import java.sql.ResultSet; import java.sql.SQLException; import java.util.List; import org.springframework.jdbc.core.RowMapper; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springfra...
710
github-java-corpus
2,012
package com.grupolainmaculada.sictem.dao.jdbc; import java.sql.ResultSet; import java.sql.SQLException; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.RowMapper; import org.springfra...
676
github-java-corpus
2,012
/** * */ package com.grupolainmaculada.sictem.dao.jdbc; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.stereotype.Repository; import com.grupolainmaculada.sictem.dao.UserDetailsDAO; /** * @author Gerald * ...
165
github-java-corpus
2,012
package com.grupolainmaculada.sictem.dao.jdbc; import java.sql.ResultSet; import java.sql.SQLException; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.RowMapper; import org.springfra...
721
github-java-corpus
2,012
/** * */ package com.grupolainmaculada.sictem.dao.jdbc; import java.sql.ResultSet; import java.sql.SQLException; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.RowMapper; impor...
280
github-java-corpus
2,012
/** * */ package com.grupolainmaculada.sictem.dao.jdbc; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.stereotype.Repository; import org.springframework.tr...
277
github-java-corpus
2,012
package com.grupolainmaculada.sictem.dao.jdbc; import java.sql.ResultSet; import java.sql.SQLException; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.RowMapper; import org.springf...
746
github-java-corpus
2,012
/** * */ package com.grupolainmaculada.sictem.dao.jdbc; import java.sql.ResultSet; import java.sql.SQLException; import java.util.List; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.RowMapper; impor...
274
github-java-corpus
2,012
package com.grupolainmaculada.sictem.dao; import java.util.List; import com.grupolainmaculada.sictem.dominio.Fabricante; /** * * @author Gerald * */ public interface FabricanteDAO { public List<Fabricante> listarFabricantes(); public void actualizarFabricante(Fabricante fabricante); public Fabr...
100
github-java-corpus
2,012
/** * */ package com.grupolainmaculada.sictem.dao; import java.util.List; import com.grupolainmaculada.sictem.dominio.Empresa; /** * @author Gerald * */ public interface EmpresaDAO { public List<Empresa> listarTodo(); }
65
github-java-corpus
2,012
package com.grupolainmaculada.sictem.dao; import java.util.List; import com.grupolainmaculada.sictem.dominio.Provincia; public interface ProvinciaDAO { public List<Provincia> ListarProvincia(); public void actualizarProvincia(Provincia provincia); public Provincia obtenerProvinciaPorId(Long codigoProvinc...
88
github-java-corpus
2,012
/** * */ package com.grupolainmaculada.sictem.controlador; /** * @author Gerald * */ public class HomeControllerTest { }
33
github-java-corpus
2,012
package com.simplenote.android; import android.app.Activity; import android.os.Bundle; public class SimpleNote extends Activity { /** Called when the activity is first created. */ @Override public void onCreate(Bundle savedInstanceState) { super.onCreate(savedInstanceState); setContentView...
62
github-java-corpus
2,012
package edu.chl.codenameg.model; import static org.junit.Assert.*; import org.junit.Test; public class GameModelTest { @Test public final void testStartGame() { GameModel gm = new GameModel(); gm.startGame(); assertTrue(gm.isRunning()); } @Test public final void testRestartGame() { GameModel gm = new ...
294
github-java-corpus
2,012
package edu.chl.codenameg.model.entity; import static org.junit.Assert.*; import org.junit.Test; import edu.chl.codenameg.model.CollisionEvent; import edu.chl.codenameg.model.Direction; import edu.chl.codenameg.model.Position; import edu.chl.codenameg.model.World; public class LethalMovingBlockTest { @Test publi...
152
github-java-corpus
2,012
package edu.chl.codenameg.model.entity.blocktest; import static org.junit.Assert.*; import org.junit.Test; import edu.chl.codenameg.model.Vector2D; import edu.chl.codenameg.model.entity.*; public class LiftableBlockTest1 { @Test public void testLift() { PlayerCharacter pc = new PlayerCharacter(); LiftableBlo...
131
github-java-corpus
2,012
package edu.chl.codenameg.model.entity.blocktest; import static org.junit.Assert.assertTrue; import org.junit.Test; import edu.chl.codenameg.model.CollisionEvent; import edu.chl.codenameg.model.Direction; import edu.chl.codenameg.model.Hitbox; import edu.chl.codenameg.model.Position; import edu.chl.codenameg.model.V...
370
github-java-corpus
2,012
package edu.chl.codenameg.model.entity.blocktest; import static org.junit.Assert.*; import org.junit.Test; import edu.chl.codenameg.model.CollisionEvent; import edu.chl.codenameg.model.Direction; import edu.chl.codenameg.model.Hitbox; import edu.chl.codenameg.model.Position; import edu.chl.codenameg.model.Vector2D; ...
383
github-java-corpus
2,012
package edu.chl.codenameg.model.entity.blocktest; import static org.junit.Assert.*; import org.junit.Test; import edu.chl.codenameg.model.CollisionEvent; import edu.chl.codenameg.model.Direction; import edu.chl.codenameg.model.Position; import edu.chl.codenameg.model.Vector2D; import edu.chl.codenameg.model.entity.M...
405
github-java-corpus
2,012
package edu.chl.codenameg.model.entity.blocktest; import static org.junit.Assert.*; import org.junit.Test; import edu.chl.codenameg.model.CollisionEvent; import edu.chl.codenameg.model.Direction; import edu.chl.codenameg.model.Hitbox; import edu.chl.codenameg.model.Position; import edu.chl.codenameg.model.Vector2D; i...
435
github-java-corpus
2,012
package edu.chl.codenameg.model.entity; import static org.junit.Assert.*; import org.junit.Test; import edu.chl.codenameg.model.CollisionEvent; import edu.chl.codenameg.model.Direction; import edu.chl.codenameg.model.World; public class MovingWallTest { @Test public void testCollide() { MovingWall mw = new Mov...
186
github-java-corpus
2,012
package edu.chl.codenameg.model.entity; import static org.junit.Assert.*; import org.junit.Test; import edu.chl.codenameg.model.Direction; import edu.chl.codenameg.model.Hitbox; import edu.chl.codenameg.model.Position; import edu.chl.codenameg.model.World; public class PlayerCharacterTest { /* * no Time to compl...
536
github-java-corpus
2,012
package edu.chl.codenameg.model.entity; import static org.junit.Assert.assertTrue; import org.junit.Test; import edu.chl.codenameg.model.CollisionEvent; import edu.chl.codenameg.model.Direction; public class WaterTest { @Test public void testCollide() { Water water = new Water(); Block b = new Block(); Col...
107
github-java-corpus
2,012
package edu.chl.codenameg.model.entity; import static org.junit.Assert.*; import org.junit.Test; import edu.chl.codenameg.model.CollisionEvent; import edu.chl.codenameg.model.Direction; import edu.chl.codenameg.model.World; public class MovableBlockTest { @Test public void testCollide() { PlayerCharacter pc = ...
176
github-java-corpus
2,012
package edu.chl.codenameg.model.entity; import static org.junit.Assert.assertTrue; import org.junit.Test; import edu.chl.codenameg.model.CollisionEvent; import edu.chl.codenameg.model.Direction; import edu.chl.codenameg.model.Hitbox; import edu.chl.codenameg.model.Position; import edu.chl.codenameg.model.Vector2D; p...
988
github-java-corpus
2,012
package edu.chl.codenameg.model.entity; import static org.junit.Assert.*; import org.junit.Test; import edu.chl.codenameg.model.CollisionEvent; import edu.chl.codenameg.model.Direction; import edu.chl.codenameg.model.Vector2D; import edu.chl.codenameg.model.World; public class FallingBlockTest { @Test public voi...
371
github-java-corpus
2,012
package edu.chl.codenameg.model.entity; import static org.junit.Assert.*; import org.junit.Test; import edu.chl.codenameg.model.Position; import edu.chl.codenameg.model.Vector2D; import edu.chl.codenameg.model.World; import edu.chl.codenameg.model.entity.PlayerCharacter; public class CameraTest { /* * Since Cam...
431
github-java-corpus
2,012
package edu.chl.codenameg.model.entity; import static org.junit.Assert.*; import org.junit.Test; import edu.chl.codenameg.model.CollisionEvent; import edu.chl.codenameg.model.Direction; import edu.chl.codenameg.model.World; public class GoalBlockTest { @Test public void testCollide() { PlayerCharacter pc = new...
123
github-java-corpus
2,012
package edu.chl.codenameg.model.entity; import static org.junit.Assert.assertTrue; import org.junit.Test; import edu.chl.codenameg.model.CollisionEvent; import edu.chl.codenameg.model.Direction; import edu.chl.codenameg.model.Position; import edu.chl.codenameg.model.Vector2D; import edu.chl.codenameg.model.World; p...
597
github-java-corpus
2,012
package edu.chl.codenameg.model.entity; import static org.junit.Assert.*; import org.junit.Test; import edu.chl.codenameg.model.CollisionEvent; import edu.chl.codenameg.model.Direction; import edu.chl.codenameg.model.World; public class LethalBlockTest { @Test public void testCollide() { PlayerCharacter pc = n...
127
github-java-corpus
2,012
package edu.chl.codenameg.model.entity; import static org.junit.Assert.*; import org.junit.Test; import edu.chl.codenameg.model.CollisionEvent; import edu.chl.codenameg.model.Direction; import edu.chl.codenameg.model.World; public class MovingBlockTest { @Test public void testCollide() { PlayerCharacter pc = n...
173
github-java-corpus
2,012
package edu.chl.codenameg.model; import static org.junit.Assert.assertTrue; import edu.chl.codenameg.model.Camera; import edu.chl.codenameg.model.Position; import edu.chl.codenameg.model.Vector2D; import edu.chl.codenameg.model.World; import edu.chl.codenameg.model.entity.PlayerCharacter; public class CameraTest { ...
381
github-java-corpus
2,012
package edu.chl.codenameg.model; import static org.junit.Assert.assertTrue; import java.util.ArrayList; import java.util.List; import org.junit.Test; import org.newdawn.slick.geom.Rectangle; import edu.chl.codenameg.model.entity.Block; public class WorldTest { @Test public void testAdd() { World world = new W...
1,970
github-java-corpus
2,012
package edu.chl.codenameg.main; import org.newdawn.slick.AppGameContainer; import org.newdawn.slick.SlickException; import edu.chl.codenameg.controller.GameController; /** * This is the runnable main class that starts Romijam * @author ??? * */ public class GameApp { public static void main(String[] args) { ...
175
github-java-corpus
2,012
package edu.chl.codenameg.sound; import org.newdawn.slick.SlickException; import org.newdawn.slick.Sound; /** * Plays sound files */ public class GSound implements ISound { private Sound sound; private boolean loop; private float volume; public GSound(String path) throws SlickException { sound = new Sou...
195
github-java-corpus
2,012
package edu.chl.codenameg.sound; import org.newdawn.slick.Music; import org.newdawn.slick.SlickException; /** * Controls the music in the game * * *Can only play one track at the time* */ public class GMusic implements IMusic { private Music music; private boolean loop; private float volume; public GMusi...
271
github-java-corpus
2,012
package edu.chl.codenameg.sound; /** * Interface for playing music */ public interface IMusic { public void setLooping(boolean loop); public void setVolume(float volume); public void play(); public void resume(); public void stop(); public void pause(); }
60
github-java-corpus
2,012
package edu.chl.codenameg.sound; /** * Interface for classes playing sound files. */ public interface ISound { public void play(); public void stop(); public void setLooping(boolean loop); public void setVolume(float volume); }
48
github-java-corpus
2,012
package edu.chl.codenameg.model; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.newdawn.slick.geom.Rectangle; import edu.chl.codenameg.model.entity.Block; import edu.chl.codenameg.model.entity.PlayerCharacter; import edu.chl.codenameg.model.levels.Level;...
2,806
github-java-corpus
2,012
package edu.chl.codenameg.model; import java.util.List; /** * This interface specifies constitutes what an * entity should be able to do * @author ??? * */ public interface Entity { public void setPosition(Position p); public Position getPosition(); public Hitbox getHitbox(); public Vector2D getVect...
108
github-java-corpus
2,012
package edu.chl.codenameg.model; /** * This is an enum that lists all the actions that can be sent to the game's model * @author Mike Phoohad * */ public enum Action { START_GAME, RESTART_GAME, PLAYER_1_MOVE_LEFT, PLAYER_1_MOVE_RIGHT, PLAYER_1_JUMP, PLAYER_2_MOVE_RIGHT, PLAYER_2_MOVE_LEFT, PLAYER_2_JUMP, ...
137
github-java-corpus
2,012
package edu.chl.codenameg.model; /** * This represents a two dimensional vector * @author ??? * */ public class Vector2D { private float x; private float y; public Vector2D(float x,float y){ this.setX(x); this.setY(y); } public float getX() { return x; } public void setX(float x) { this.x = x;...
422
github-java-corpus
2,012
package edu.chl.codenameg.model; /** * This class is used to give an object a position or coordinates * @author ??? * */ public class Position { private float x; private float y; public Position(){ this(0,0); } public Position(float x, float y){ this.setX(x); this.setY(y); } public Position(Posi...
318
github-java-corpus
2,012
package edu.chl.codenameg.model; /** * An enumerated class representing directions * @author ??? * */ public enum Direction { RIGHT, LEFT, TOP, BOTTOM, NONE }
43
github-java-corpus
2,012
package edu.chl.codenameg.model; import java.util.ArrayList; import edu.chl.codenameg.model.entity.PlayerCharacter; /** * Class that represents a camera with width, height and a position depending on * the player character's position. * * @author ??? */ public class Camera { private int minWidth; pr...
924
github-java-corpus
2,012
package edu.chl.codenameg.model; /** * Represents a collision by defining an entity and a direction of the collision * @author ??? * */ public class CollisionEvent { private Entity e; private Direction d; public CollisionEvent(Entity e, Direction d) { this.e = e; this.d = d; } public Entity getEntity(...
97
github-java-corpus
2,012
package edu.chl.codenameg.model.entity; import edu.chl.codenameg.model.CollisionEvent; import edu.chl.codenameg.model.Position; /** * A moving block that is capable of killing a player character * @author ??? * */ public class LethalMovingBlock extends MovingBlock{ /** * Handles collision with this */ @Ov...
192
github-java-corpus
2,012
package edu.chl.codenameg.model.entity; import java.util.ArrayList; import java.util.List; import edu.chl.codenameg.model.CollisionEvent; import edu.chl.codenameg.model.Direction; import edu.chl.codenameg.model.Hitbox; import edu.chl.codenameg.model.Position; import edu.chl.codenameg.model.Vector2D; /** ...
1,004
github-java-corpus
2,012
package edu.chl.codenameg.model.entity; import java.util.ArrayList; import java.util.List; import edu.chl.codenameg.model.CollisionEvent; import edu.chl.codenameg.model.Entity; import edu.chl.codenameg.model.Hitbox; import edu.chl.codenameg.model.Position; import edu.chl.codenameg.model.Vector2D; /** * This is the ...
407
github-java-corpus
2,012
package edu.chl.codenameg.model.entity; import java.util.ArrayList; import java.util.List; import org.newdawn.slick.geom.Rectangle; import edu.chl.codenameg.model.CollisionEvent; import edu.chl.codenameg.model.Direction; import edu.chl.codenameg.model.Entity; import edu.chl.codenameg.model.Hitbox; import edu.chl.cod...
2,854
github-java-corpus
2,012
package edu.chl.codenameg.model.entity; import java.util.ArrayList; import java.util.List; import edu.chl.codenameg.model.Hitbox; import edu.chl.codenameg.model.Position; import edu.chl.codenameg.model.Vector2D; /** * A block that is movable by a player character pushing it * It is affected by gravity ...
277
github-java-corpus
2,012
package edu.chl.codenameg.model.entity; import java.util.ArrayList; import java.util.List; import edu.chl.codenameg.model.CollisionEvent; import edu.chl.codenameg.model.Direction; import edu.chl.codenameg.model.Hitbox; import edu.chl.codenameg.model.Position; import edu.chl.codenameg.model.Vector2D; /** * This is a...
463
github-java-corpus
2,012
package edu.chl.codenameg.model.entity; import aurelienribon.tweenengine.TweenEquation; import aurelienribon.tweenengine.equations.Quad; import edu.chl.codenameg.model.Hitbox; import edu.chl.codenameg.model.Position; import edu.chl.codenameg.model.Vector2D; /** * A block that is in constant motion between a start- a...
557
github-java-corpus
2,012
package edu.chl.codenameg.model.entity; import edu.chl.codenameg.model.CollisionEvent; import edu.chl.codenameg.model.Hitbox; import edu.chl.codenameg.model.Position; /** * This is a block that kills a player if he touches it * @author ??? * */ public class LethalBlock extends Block{ /** * Handles collision ...
219
github-java-corpus
2,012
package edu.chl.codenameg.model.entity; import java.util.ArrayList; import java.util.List; import edu.chl.codenameg.model.CollisionEvent; import edu.chl.codenameg.model.Entity; import edu.chl.codenameg.model.Hitbox; import edu.chl.codenameg.model.Position; import edu.chl.codenameg.model.Vector2D; /** * An Entity th...
487
github-java-corpus
2,012
package edu.chl.codenameg.model.entity; import edu.chl.codenameg.model.CollisionEvent; import edu.chl.codenameg.model.Hitbox; import edu.chl.codenameg.model.Position; /** * A block that represents the goal of the game * If a player walks through it they win */ public class GoalBlock extends Block{ /** * Handl...
219
github-java-corpus
2,012
package edu.chl.codenameg.model.entity; import edu.chl.codenameg.model.CollisionEvent; import edu.chl.codenameg.model.Direction; import edu.chl.codenameg.model.Hitbox; import edu.chl.codenameg.model.Position; public class MovingWall extends MovingBlock{ private boolean lethal; private int travelTime; private Dire...
416
github-java-corpus
2,012
package edu.chl.codenameg.model; import java.awt.Dimension; /** * Represents an area which is used to define an entity's "hitbox" * (i.e. the area that other areas collide or interact with) * @author ??? * */ public class Hitbox { private int width; private int height; public Hitbox(Hitbox hb) { this.setW...
326
github-java-corpus
2,012
package edu.chl.codenameg.model.levels; import java.util.List; import edu.chl.codenameg.model.Entity; import edu.chl.codenameg.model.Position; /** * The interface for levels */ public interface Level { public List<Entity> getListOfEntities(); public Position getPlayerSpawnPosition(int playerno); public in...
75
github-java-corpus
2,012
package edu.chl.codenameg.model.levels; import java.util.ArrayList; import java.util.HashMap; import java.util.List; import java.util.Map; import org.newdawn.slick.SlickException; import org.newdawn.slick.tiled.TiledMap; import edu.chl.codenameg.model.Entity; import edu.chl.codenameg.model.Hitbox; import edu.chl.cod...
2,423
github-java-corpus
2,012
package edu.chl.codenameg.model; import java.util.ArrayList; import java.util.List; import edu.chl.codenameg.model.entity.PlayerCharacter; import edu.chl.codenameg.model.levels.Level; import edu.chl.codenameg.model.levels.LevelFactory; /** * This is the main model of Romijam. * The main objective of this class is ...
1,462
github-java-corpus
2,012
package edu.chl.codenameg.view; import java.util.HashMap; import java.util.Map; import org.newdawn.slick.Graphics; import org.newdawn.slick.Image; import org.newdawn.slick.SlickException; import org.newdawn.slick.tiled.TiledMap; import edu.chl.codenameg.model.Entity; import edu.chl.codenameg.model.GameModel; import ...
1,267
github-java-corpus
2,012
package edu.chl.codenameg.view; import org.newdawn.slick.Graphics; import org.newdawn.slick.Image; import org.newdawn.slick.SlickException; /** * Represents menu graphics that changes according to the selected option. */ public class MenuView { private int selectedId = 0; private Image background; private Ima...
412
github-java-corpus
2,012
package edu.chl.codenameg.view; import org.newdawn.slick.Graphics; import org.newdawn.slick.Image; import org.newdawn.slick.SlickException; /** * Represents "Select level"-menu graphics that changes according to the selected option. */ public class SelectLevelMenuView { private Image romijam; private Image bac...
434
github-java-corpus
2,012
package edu.chl.codenameg.view; import org.newdawn.slick.Graphics; import org.newdawn.slick.Image; import org.newdawn.slick.SlickException; /** * Represents the pause menu graphics that changes according to the selected option. */ public class PauseMenuView { private Image continueImg; private Image selectLeve...
349
github-java-corpus
2,012
package edu.chl.codenameg.view; import org.newdawn.slick.Graphics; import edu.chl.codenameg.model.Entity; /** * The interface for entities views */ public interface EntityView { public void render(Entity ent, Graphics g); }
52
github-java-corpus
2,012
package edu.chl.codenameg.view.entity; import java.io.File; import java.util.ArrayList; import java.util.List; import org.newdawn.slick.Animation; import org.newdawn.slick.Graphics; import org.newdawn.slick.SlickException; import org.newdawn.slick.SpriteSheet; import edu.chl.codenameg.model.Entity; imp...
2,208
github-java-corpus
2,012
package edu.chl.codenameg.view.entity; import org.newdawn.slick.Animation; import org.newdawn.slick.Color; import org.newdawn.slick.Graphics; import org.newdawn.slick.SlickException; import org.newdawn.slick.SpriteSheet; import edu.chl.codenameg.model.Entity; import edu.chl.codenameg.model.entity.LethalBlock...
300
github-java-corpus
2,012
package edu.chl.codenameg.view.entity; import org.newdawn.slick.Color; import org.newdawn.slick.Graphics; import edu.chl.codenameg.model.Entity; import edu.chl.codenameg.view.EntityView; /** * Displays a rectangle around hitboxes for easier visual debugging */ public class HitboxView implements EntityView { @Ov...
136
github-java-corpus
2,012
package edu.chl.codenameg.view.entity; import org.newdawn.slick.Graphics; import org.newdawn.slick.Image; import org.newdawn.slick.SlickException; import edu.chl.codenameg.model.Entity; /** * The falling block's view that sets the graphic for the entity */ public class FallingBlockView extends BasicEnti...
166
github-java-corpus
2,012
package edu.chl.codenameg.view.entity; import org.newdawn.slick.Animation; import org.newdawn.slick.Color; import org.newdawn.slick.Graphics; import org.newdawn.slick.SlickException; import org.newdawn.slick.SpriteSheet; import edu.chl.codenameg.model.Entity; import edu.chl.codenameg.model.entity.LethalMovin...
311
github-java-corpus
2,012
package edu.chl.codenameg.view.entity; import org.newdawn.slick.Graphics; import edu.chl.codenameg.model.Entity; import edu.chl.codenameg.view.EntityView; /** * The water's view that sets the animations and graphics for the entity * **Basically empty since water is drawn in straight from Tiled */ public ...
102
github-java-corpus
2,012
package edu.chl.codenameg.view.entity; import org.newdawn.slick.Graphics; import org.newdawn.slick.Image; import org.newdawn.slick.SlickException; import edu.chl.codenameg.model.Entity; /** * The movable block's view that sets the graphic for the entity */ public class MovableBlockView extends BasicEnti...
168
github-java-corpus
2,012
package edu.chl.codenameg.view.entity; import org.newdawn.slick.Animation; import org.newdawn.slick.Color; import org.newdawn.slick.Graphics; import org.newdawn.slick.SlickException; import org.newdawn.slick.SpriteSheet; import edu.chl.codenameg.model.Entity; import edu.chl.codenameg.model.entity.GoalBlock; i...
289
github-java-corpus
2,012
package edu.chl.codenameg.view.entity; import org.newdawn.slick.Graphics; import org.newdawn.slick.Image; import org.newdawn.slick.SlickException; import edu.chl.codenameg.model.Entity; /** * The moving block's view that sets the graphic for the entity */ public class MovingBlockView extends BasicEntity...
167
github-java-corpus
2,012
package edu.chl.codenameg.view.entity; import org.newdawn.slick.Color; import org.newdawn.slick.Graphics; import edu.chl.codenameg.model.Entity; import edu.chl.codenameg.model.entity.LethalBlock; import edu.chl.codenameg.model.entity.MovableBlock; import edu.chl.codenameg.model.entity.MovingBlock; import edu.chl.code...
228
github-java-corpus
2,012
package edu.chl.codenameg.view.entity; import org.newdawn.slick.Graphics; import org.newdawn.slick.Image; import org.newdawn.slick.SlickException; import edu.chl.codenameg.model.Entity; public class LiftableBlockView extends BasicEntityView{ private Image liftableBlock; public LiftableBlockView(){ ...
155
github-java-corpus
2,012
package edu.chl.codenameg.view.entity; import org.newdawn.slick.Animation; import org.newdawn.slick.Color; import org.newdawn.slick.Graphics; import org.newdawn.slick.SlickException; import org.newdawn.slick.SpriteSheet; import edu.chl.codenameg.model.Direction; import edu.chl.codenameg.model.Entity; import edu.chl.c...
672
github-java-corpus
2,012
package edu.chl.codenameg.controller; import org.newdawn.slick.Input; import edu.chl.codenameg.model.Action; /** * This binds different keys to "actions". * If you would like to change the controls of the game you only have * to change them here. * * @author Mike Phoohad * */ public class KeyBindings { /*...
385
github-java-corpus
2,012
package edu.chl.codenameg.controller; import org.newdawn.slick.GameContainer; import org.newdawn.slick.Graphics; import org.newdawn.slick.Input; import org.newdawn.slick.SlickException; import org.newdawn.slick.state.BasicGameState; import org.newdawn.slick.state.StateBasedGame; import edu.chl.codenameg.model.Action;...
1,102
github-java-corpus
2,012
package edu.chl.codenameg.controller; import org.newdawn.slick.GameContainer; import org.newdawn.slick.Graphics; import org.newdawn.slick.Input; import org.newdawn.slick.SlickException; import org.newdawn.slick.state.BasicGameState; import org.newdawn.slick.state.StateBasedGame; import edu.chl.codenameg.view.PauseMen...
533
github-java-corpus
2,012
package edu.chl.codenameg.controller; import org.newdawn.slick.GameContainer; import org.newdawn.slick.Graphics; import org.newdawn.slick.Input; import org.newdawn.slick.SlickException; import org.newdawn.slick.state.BasicGameState; import org.newdawn.slick.state.StateBasedGame; import edu.chl.codenameg.view.MenuView...
469
github-java-corpus
2,012
package edu.chl.codenameg.controller; import org.newdawn.slick.GameContainer; import org.newdawn.slick.Graphics; import org.newdawn.slick.Input; import org.newdawn.slick.SlickException; import org.newdawn.slick.state.BasicGameState; import org.newdawn.slick.state.GameState; import org.newdawn.slick.state.StateBasedGam...
629
github-java-corpus
2,012
package edu.chl.codenameg.controller; import org.newdawn.slick.GameContainer; import org.newdawn.slick.Graphics; import org.newdawn.slick.SlickException; import org.newdawn.slick.state.StateBasedGame; /** * This controller starts a StateBasedGame and adds the states that Romijam requires * * @author ???? */ publ...
250
github-java-corpus
2,012
package com.Acrobot.ChestShop.Commands; import com.Acrobot.Breeze.Commands.Command; import com.Acrobot.Breeze.Utilities.EventUtils; import com.Acrobot.Breeze.Utilities.MaterialUtil; import com.Acrobot.Breeze.Utilities.NumberUtil; import com.Acrobot.Breeze.Utilities.StringUtil; import com.Acrobot.ChestShop.Events.Messa...
544
github-java-corpus
2,012
package com.Acrobot.ChestShop.Modules.SignModule; import com.Acrobot.Breeze.Plugins.BreezePlugin.BreezePlugin; import com.Acrobot.Breeze.Utilities.MaterialUtil; import com.Acrobot.Breeze.Utilities.NumberUtil; import com.Acrobot.ChestShop.Events.ShopSignClickEvent; import com.Acrobot.ChestShop.Events.SignInformationEve...
710