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 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 414 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list ... | 590 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 662 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 414 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 1,079 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 1,491 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list ... | 733 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 514 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list ... | 376 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 353 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 531 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 457 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 351 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 1,422 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 347 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 409 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 2,866 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list ... | 495 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 770 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list ... | 556 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list ... | 732 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list ... | 558 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list ... | 508 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list ... | 964 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list ... | 866 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 419 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 388 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list ... | 351 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 400 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 373 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 596 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 457 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 462 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 461 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 469 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 444 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 469 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 460 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 567 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 495 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 349 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 458 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 443 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 489 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 470 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 457 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 458 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 1,175 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 501 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of con... | 407 |
github-java-corpus | 2,012 | /*
* Copyright (c) 2012, dooApp <contact@dooapp.com>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list ... | 556 |
github-java-corpus | 2,012 | /*******************************************************************************
*
* Copyright 2011 Spiffy UI Team
*
* 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
*
* ... | 2,558 |
github-java-corpus | 2,012 | /*******************************************************************************
*
* Copyright 2012 Spiffy UI Team
*
* 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://w... | 502 |
github-java-corpus | 2,012 | /*******************************************************************************
*
* Copyright 2012 Spiffy UI Team
*
* 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://w... | 672 |
github-java-corpus | 2,012 | /*******************************************************************************
*
* Copyright 2012 Spiffy UI Team
*
* 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://w... | 1,134 |
github-java-corpus | 2,012 | /*******************************************************************************
*
* Copyright 2012 Spiffy UI Team
*
* 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://w... | 5,774 |
github-java-corpus | 2,012 | /*******************************************************************************
*
* Copyright 2011 Spiffy UI Team
*
* 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
*
* ... | 295 |
github-java-corpus | 2,012 | /**
* TestEventBus.java
*
* @author Johan
*/
package event;
import static org.junit.Assert.*;
import java.awt.Dimension;
import java.awt.Rectangle;
import java.util.Arrays;
import model.character.Player;
import model.weapon.AbstractWeapon;
import model.weapon.Melee;
import model.weapon.WeaponBelt;
import org.j... | 414 |
github-java-corpus | 2,012 | /**
* TestCollectableItem.java
*
* @author Johan
*/
package model;
import static org.junit.Assert.*;
import java.awt.Dimension;
import java.awt.Rectangle;
import java.util.Arrays;
import model.character.Player;
import model.item.AmmoCrate;
import model.item.ICollectableItem;
import model.item.MedPack;
import mo... | 445 |
github-java-corpus | 2,012 | /**
* TestWeapon.java
*
* @author Johan
* @author jesperpersson
*/
package model;
import static org.junit.Assert.*;
import java.awt.Dimension;
import java.awt.Rectangle;
import model.character.Player;
import model.weapon.*;
import model.weapon.Projectile.Range;
import org.junit.Before;
import org.junit.Test;
... | 550 |
github-java-corpus | 2,012 | /**
* TestGameModel.java
*
* @author Johan
*/
package model;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
import tools.factory.Level;
import tools.factory.ObjectFactory;
import event.Event;
import event.EventBus;
import event.IEventHandler;
public class TestGameModel imple... | 424 |
github-java-corpus | 2,012 | /**
* TestPortalGun.java
*
* @author Johan
*/
package model;
import static org.junit.Assert.*;
import model.weapon.PortalGun;
import model.weapon.PortalGun.Mode;
import org.junit.Before;
import org.junit.Test;
public class TestPortalGun {
private PortalGun gun;
@Before
public void setUp() throws Exception {
... | 149 |
github-java-corpus | 2,012 | /**
* TestEntity.java
*
* @author Johan
*/
package model;
import static org.junit.Assert.*;
import java.awt.Dimension;
import java.awt.Point;
import java.awt.Rectangle;
import model.character.Player;
import org.junit.Before;
import org.junit.Test;
import event.Event;
import event.EventBus;
import event.IEventHand... | 320 |
github-java-corpus | 2,012 | /**
* TestPortal.java
*
* @author Johan
*/
package model;
import static org.junit.Assert.*;
import java.awt.Dimension;
import java.awt.Point;
import java.awt.Rectangle;
import model.character.Player;
import model.weapon.Portal;
import model.weapon.PortalGun.Mode;
import org.junit.Before;
import org.junit.Test;... | 417 |
github-java-corpus | 2,012 | /**
* TestJSON.java
*
* @author Johan
*/
package model;
import static org.junit.Assert.*;
import model.character.Enemy;
import model.character.Player;
import model.item.AmmoCrate;
import model.item.MedPack;
import model.weapon.Portal;
import model.weapon.PortalGun.Mode;
import org.json.JSONArray;
import org.json.JS... | 447 |
github-java-corpus | 2,012 | /**
* TestPlayer.java
*
* @author Johan
*/
package model;
import static org.junit.Assert.*;
import java.awt.Dimension;
import java.awt.Rectangle;
import java.util.Arrays;
import model.character.Player;
import model.weapon.*;
import model.weapon.Projectile.Range;
import org.junit.Before;
import org.junit.Test;
... | 725 |
github-java-corpus | 2,012 | package model;
import static org.junit.Assert.*;
import org.junit.Before;
import org.junit.Test;
/**
* TestPosition.java
*
* @author Johan
* @deprecated 2012-04-15
*/
public class TestPosition {
private Position position;
@Before
public void setUp() throws Exception {
this.position = new Position(1, 3);... | 190 |
github-java-corpus | 2,012 | /**
* TestCollidableObject.java
*
* @author Johan
*/
package model;
import static org.junit.Assert.*;
import java.awt.Dimension;
import java.awt.Rectangle;
import org.junit.Before;
import org.junit.Test;
import event.Event;
import event.EventBus;
import event.IEventHandler;
import model.CollidableObject;
impo... | 863 |
github-java-corpus | 2,012 | /**
* TestProjectile.java
*
* @author Johan
*/
package model;
import static org.junit.Assert.*;
import java.awt.Dimension;
import java.awt.Rectangle;
import model.character.AbstractCharacter;
import model.character.Player;
import model.weapon.AbstractWeapon;
import model.weapon.MachineGun;
import model.weapon.P... | 539 |
github-java-corpus | 2,012 | /**
* TestWeaponbelt.java
*
* @author Johan
*/
package model;
import static org.junit.Assert.*;
import java.util.Arrays;
import model.weapon.AbstractWeapon;
import model.weapon.Grenade;
import model.weapon.MachineGun;
import model.weapon.Melee;
import model.weapon.PortalGun;
import model.weapon.Sword;
import model.... | 439 |
github-java-corpus | 2,012 | /**
* TestBitTags.java
*
* @author Johan
*/
package model;
import static org.junit.Assert.*;
import graphics.ITaggable;
import java.awt.Dimension;
import java.awt.Point;
import java.awt.Rectangle;
import model.character.AbstractCharacter;
import model.character.Player;
import model.weapon.AbstractWeapon;
import mo... | 1,632 |
github-java-corpus | 2,012 | /**
* TestObjectFactory.java
*
* @author Johan
*/
package tools;
import static org.junit.Assert.*;
import java.util.List;
import model.CollidableObject;
import model.character.Enemy;
import model.character.Player;
import model.item.ICollectableItem;
import model.item.MedPack;
import model.weapon.AbstractWeapon;
imp... | 696 |
github-java-corpus | 2,012 | /**
* TestMath.java
*
* @author Johan
*/
package tools;
import static org.junit.Assert.*;
import org.junit.Test;
public class TestMath {
@Test
public void testFibonacci() {
assertEquals(1, Math.fib(1));
assertEquals(1, Math.fib(2));
assertEquals(2, Math.fib(3));
assertEquals(3, Math.fib(4));
assertE... | 227 |
github-java-corpus | 2,012 | /**
* TestResourceLoader.java
*
* @author Johan
*/
package tools;
import static org.junit.Assert.*;
import org.json.JSONObject;
import org.junit.Test;
import tools.datamanagement.ResourceLoader;
public class TestResourceLoader {
@Test(expected=IllegalArgumentException.class)
public void testParseNonExistingFile... | 280 |
github-java-corpus | 2,012 | /**
* TestCharacterMove.java
*
* @author Johan
*/
package usecase;
import static org.junit.Assert.*;
import java.awt.Dimension;
import java.awt.Point;
import java.awt.Rectangle;
import model.Direction;
import model.character.*;
import org.junit.Before;
import org.junit.Test;
public class TestCharacterMove {
... | 749 |
github-java-corpus | 2,012 | package event;
/**
* A message sender.
*
* @author Johan
*/
public interface IMessageSender {
/**
* Add a receiver, "listener".
*
* @param listener
* The receiver
*/
public void addReceiver(IEventHandler listener);
}
| 59 |
github-java-corpus | 2,012 | package event;
/**
* A single event on the event bus.
*
* @author Joachim von Hacht
* @modified Johan Brook, 2012-03-26
*/
public class Event {
/**
* Enum describing different event property names, i.e. the different types
* of events.
*
* @author Johan
*/
public enum Property {
WAS_CREATED,
C... | 502 |
github-java-corpus | 2,012 | package event;
import java.util.ArrayList;
import java.util.List;
/**
* The Event Bus singleton.
*
* @author Joachim von Hacht
* @modified Johan Brook, 2012-03-26
*/
public enum EventBus {
INSTANCE;
private final List<IEventHandler> handlers = new ArrayList<IEventHandler>();
/**
* Registers a event hand... | 342 |
github-java-corpus | 2,012 | /**
* Event classes.
*
* Includes all code related to the event handling in the system.
*
* <p>The system uses two kinds of event handling as of now: the global event bus and
* the tighter coupled messaging system. The event bus is meant for global communication
* between the model and the view, while the messaging imp... | 114 |
github-java-corpus | 2,012 | package event;
import java.util.LinkedList;
import java.util.List;
/**
* Messager class. Sends messages with events to its listeners.
*
* @author Johan
*/
public class Messager {
private List<IEventHandler> listeners;
/**
* Create a new messager.
*/
public Messager() {
listeners = new LinkedList<IEven... | 171 |
github-java-corpus | 2,012 | package event;
/**
* Classes implementing this interface are event handlers, i.e. they are
* registered to listen for events.
*
* @author Joachim von Hacht
* @modified Johan Brook, 2012-03-26
*/
public interface IEventHandler {
/**
* Event callback.
*
* @param evt
* The event object contai... | 93 |
github-java-corpus | 2,012 | package event;
/**
* A message listener.
*
* @author Johan
* @deprecated Use IEventHandler instead (2012-05-16).
*/
public interface IMessageListener {
/**
* Message callback. Senders call this method with an event object.
*
* @param evt
* The event object
*/
public void onMessage(Event ... | 80 |
github-java-corpus | 2,012 | package main;
import gui.Launcher;
import java.io.File;
import java.io.IOException;
import java.lang.reflect.Field;
import javax.imageio.ImageIO;
import tools.Logger;
import controller.AppController;
import org.lwjgl.LWJGLUtil;
import org.simplericity.macify.eawt.*;
import static controller.AppController.MODE;... | 473 |
github-java-corpus | 2,012 | /**
* The application entry point.
*
*/
package main; | 12 |
github-java-corpus | 2,012 | /**
* IGameModel.java
*
* @author Johan
*/
package model;
import java.util.List;
import model.character.Enemy;
import model.character.Player;
public interface IGameModel {
/**
* Updates the game logic.
*
* @param delta
*/
public void update(double delta);
/**
* Initiates a new game
*/
public ... | 192 |
github-java-corpus | 2,012 | package model;
import java.awt.Dimension;
import java.awt.Point;
import java.awt.Rectangle;
import org.json.JSONObject;
import event.Event;
import event.EventBus;
import event.IEventHandler;
import event.Event.Property;
import event.IMessageSender;
import event.Messager;
import graphics.ITaggable;
/**
* The collidab... | 2,170 |
github-java-corpus | 2,012 | package model;
import java.awt.Point;
import org.json.JSONObject;
import event.Event;
import event.Event.Property;
import event.EventBus;
/**
* Entity.
*
* A movable, collidable object.
*
* @author Johan
*/
public abstract class Entity extends CollidableObject {
private int movementSpeed;
private boolean... | 1,256 |
github-java-corpus | 2,012 | /**
* Weapon classes.
*
* By inheriting <code>AbstractWeapon</code>, a class get weapon functionality such as firing
* and ammo handling.
*
* <p>Note that each subclass of <code>AbstractWeapon</code> must own a <code>Projectile</code>.</p>
*/
package model.weapon; | 69 |
github-java-corpus | 2,012 | package model.weapon;
import model.character.AbstractCharacter;
/**
* A portal gun.
*
* @author Johan
*/
public class PortalGun extends AbstractWeapon {
private Projectile projectile;
/**
* The different portal gun modes.
*
* <ul>
* <li><code>BLUE</code></li>
* <li><code>ORANGE</code></li>
* </u... | 411 |
github-java-corpus | 2,012 | package model.weapon;
import model.character.AbstractCharacter;
/**
* A melee weapon.
*
* @author Johan
*/
public class Melee extends AbstractWeapon {
private Projectile projectile;
/**
* Create a new Melee.
*
* @param owner The owner
* @param ammo Initial ammo
* @param ammoMultiplier The ammo mul... | 227 |
github-java-corpus | 2,012 | package model.weapon;
import model.character.AbstractCharacter;
/**
* A sword.
*
* @author Johan
* @deprecated Using Melee instead. Same functionality (2012-05-10).
*/
public class Sword extends AbstractWeapon {
private Projectile projectile;
public Sword(AbstractCharacter owner, int ammo, double ammoMultipl... | 192 |
github-java-corpus | 2,012 | package model.weapon;
import java.util.Collection;
import java.util.Iterator;
import java.util.LinkedList;
import java.util.List;
/**
* A weapon belt with weapons.
*
* @author Johan
*/
public class WeaponBelt implements Iterable<AbstractWeapon> {
private List<AbstractWeapon> weapons;
/**
* Create a new empt... | 492 |
github-java-corpus | 2,012 | package model.weapon;
import model.character.AbstractCharacter;
/**
* A machine gun.
*
* @author Johan
*/
public class MachineGun extends AbstractWeapon {
private Projectile projectile;
/**
* Create a new MachineGun.
*
* @param owner The owner
* @param ammo Initial ammo
* @param ammoMultiplier The... | 226 |
github-java-corpus | 2,012 | package model.weapon;
import model.character.AbstractCharacter;
/**
* A grenade with a radius and splash damage properties.
*
* @author Johan
*/
public class Grenade extends AbstractWeapon {
private Projectile projectile;
private int radius, splashDamageFactor;
/**
* Create a new Grenade.
*
* @param... | 414 |
github-java-corpus | 2,012 | package model.weapon;
import java.awt.Dimension;
import java.awt.Rectangle;
import model.CollidableObject;
import model.ConcreteCollidableObject;
import model.Entity;
import model.character.AbstractCharacter;
import org.json.JSONObject;
import tools.Logger;
/**
* A projectile, with a damage, range and character o... | 1,511 |
github-java-corpus | 2,012 | package model.weapon;
import org.json.JSONObject;
import event.Event;
import event.Event.Property;
import event.EventBus;
import graphics.ITaggable;
import model.character.AbstractCharacter;
/**
* A weapon. Got ammo, a character owner and parameters for firing properties.
*
* @author Johan
*/
public abstract c... | 1,196 |
github-java-corpus | 2,012 | package model.weapon;
import java.awt.Dimension;
import java.awt.Point;
import java.awt.Rectangle;
import model.CollidableObject;
import model.Entity;
import model.weapon.PortalGun.Mode;
import org.json.JSONObject;
/**
* A portal. Have a reference to another portal and a given mode.
*
* @author Johan
* @author ... | 863 |
github-java-corpus | 2,012 | package model.item;
import java.awt.Dimension;
import java.awt.Rectangle;
import org.json.JSONObject;
import event.Event;
import event.EventBus;
import event.Event.Property;
import model.CollidableObject;
import model.character.Player;
import model.weapon.AbstractWeapon;
/**
* An ammo crate.
*
* @author Johan
... | 510 |
github-java-corpus | 2,012 | /**
* Collectable item classes.
*
* This package contains items, such as <code>AmmoCrate</code> and <code>MedPack</code>.
* A new item may be created by implementing the <code>ICollectableItem</code> interface,
* and preferrably inherit from <code>CollidableObject</code>.
*/
package model.item; | 78 |
github-java-corpus | 2,012 | package model.item;
import model.character.Player;
/**
* Interface for collectable items, such as medpacks, ammo crates.
*
* @author Johan
*/
public interface ICollectableItem {
/**
* Callback when this item is picked up by a player.
*
* @param source
* The player
*/
public void pickedUp... | 110 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.