Skip to content

Commit 18852c2

Browse files
committed
Added GNU Public License information in file headers, added LICENSE.txt
1 parent 9a8bab0 commit 18852c2

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

60 files changed

+1584
-501
lines changed

Diff for: LICENSE.txt

+674
Large diffs are not rendered by default.

Diff for: src/riskarena/Adjacency.java

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2012-2014 Evan Radkoff.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the GNU Public License v3.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.gnu.org/licenses/gpl.html
7+
******************************************************************************/
18
package riskarena;
29
/*
310
* An instance of the Adjacency class represents an adjacency between two territories.

Diff for: src/riskarena/Bot.java

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2012-2014 Evan Radkoff.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the GNU Public License v3.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.gnu.org/licenses/gpl.html
7+
******************************************************************************/
18
package riskarena;
29
/*
310
* The Bot class is the player type of all AI. It passes requests for

Diff for: src/riskarena/BotSniffer.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2012-2014 Evan Radkoff.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the GNU Public License v3.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.gnu.org/licenses/gpl.html
7+
******************************************************************************/
18
package riskarena;
29
/*
310
* The BotSniffer class looks through the given botpath directory
@@ -56,4 +63,4 @@ private boolean botChecker(String bot_file) {
5663
public ArrayList<String> getBots() {
5764
return good_bots;
5865
}
59-
}
66+
}

Diff for: src/riskarena/Country.java

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2012-2014 Evan Radkoff.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the GNU Public License v3.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.gnu.org/licenses/gpl.html
7+
******************************************************************************/
18
package riskarena;
29
/*
310
* This class represents a country/territory in Risk. It keeps track of its

Diff for: src/riskarena/CountryInfo.java

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2012-2014 Evan Radkoff.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the GNU Public License v3.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.gnu.org/licenses/gpl.html
7+
******************************************************************************/
18
package riskarena;
29
/*
310
* The CountryInfo class is a way of hiding certain methods of Country from

Diff for: src/riskarena/CountryInterface.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2012-2014 Evan Radkoff.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the GNU Public License v3.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.gnu.org/licenses/gpl.html
7+
******************************************************************************/
18
package riskarena;
29

310
public interface CountryInterface {
@@ -6,4 +13,4 @@ public interface CountryInterface {
613
public int getPlayer();
714
public int getArmies();
815
public boolean isTaken();
9-
}
16+
}

Diff for: src/riskarena/Deck.java

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2012-2014 Evan Radkoff.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the GNU Public License v3.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.gnu.org/licenses/gpl.html
7+
******************************************************************************/
18
package riskarena;
29
/*
310
* The Deck class represents a deck of Risk cards during a game of Risk.

Diff for: src/riskarena/Dice.java

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2012-2014 Evan Radkoff.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the GNU Public License v3.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.gnu.org/licenses/gpl.html
7+
******************************************************************************/
18
package riskarena;
29
/*
310
* The Dice class simulates the rolling of attack/defender dice.

Diff for: src/riskarena/Game.java

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2012-2014 Evan Radkoff.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the GNU Public License v3.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.gnu.org/licenses/gpl.html
7+
******************************************************************************/
18
package riskarena;
29
/*
310
* The Game class is the game engine for RiskArena. It maintains information

Diff for: src/riskarena/GameData.java

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2012-2014 Evan Radkoff.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the GNU Public License v3.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.gnu.org/licenses/gpl.html
7+
******************************************************************************/
18
package riskarena;
29
/*
310
* GameData hold the actual game data structures of Countries, Players, Continents, and more,

Diff for: src/riskarena/GameInfo.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2012-2014 Evan Radkoff.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the GNU Public License v3.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.gnu.org/licenses/gpl.html
7+
******************************************************************************/
18
package riskarena;
29
/*
310
* The GameInfo class is used by bots to find out information regarding the state of
@@ -78,4 +85,4 @@ public int me() {
7885
public String getMyName() {
7986
return player.getName();
8087
}
81-
}
88+
}

Diff for: src/riskarena/Human.java

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2012-2014 Evan Radkoff.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the GNU Public License v3.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.gnu.org/licenses/gpl.html
7+
******************************************************************************/
18
package riskarena;
29
/*
310
* The Human class represents a Player of human type. Its "answers" to game-time

Diff for: src/riskarena/InputListener.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2012-2014 Evan Radkoff.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the GNU Public License v3.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.gnu.org/licenses/gpl.html
7+
******************************************************************************/
18
package riskarena;
29
/*
310
* This is used for all human input.
@@ -192,4 +199,4 @@ public void sendMsg(String to_send) {
192199
active = false;
193200
answer = to_send;
194201
}
195-
}
202+
}

Diff for: src/riskarena/MapReader.java

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2012-2014 Evan Radkoff.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the GNU Public License v3.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.gnu.org/licenses/gpl.html
7+
******************************************************************************/
18
package riskarena;
29
/*
310
* Given a .map filename, MapReader reads the XML file, parses it using dom4j,

Diff for: src/riskarena/OutputFormat.java

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2012-2014 Evan Radkoff.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the GNU Public License v3.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.gnu.org/licenses/gpl.html
7+
******************************************************************************/
18
package riskarena;
29
/*
310
* The OutputFormat class handles the different types of output the game

Diff for: src/riskarena/Player.java

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2012-2014 Evan Radkoff.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the GNU Public License v3.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.gnu.org/licenses/gpl.html
7+
******************************************************************************/
18
package riskarena;
29
/*
310
* The abstract Player class represents a player of Risk, either human or bot.

Diff for: src/riskarena/PlayerInfo.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2012-2014 Evan Radkoff.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the GNU Public License v3.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.gnu.org/licenses/gpl.html
7+
******************************************************************************/
18
package riskarena;
29
/*
310
* PlayerInfo is a class that provides non-private player info
@@ -31,4 +38,4 @@ public int getNumCards() {
3138
public int getId() {
3239
return player.getId();
3340
}
34-
}
41+
}

Diff for: src/riskarena/Risk.java

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2012-2014 Evan Radkoff.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the GNU Public License v3.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.gnu.org/licenses/gpl.html
7+
******************************************************************************/
18
package riskarena;
29
/*
310
* Risk.java starts execution of RiskArena. See READ_ME for more

Diff for: src/riskarena/RiskBot.java

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2012-2014 Evan Radkoff.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the GNU Public License v3.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.gnu.org/licenses/gpl.html
7+
******************************************************************************/
18
package riskarena;
29
/*
310
* This class is the interface that all RiskBots must follow.

Diff for: src/riskarena/World.java

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2012-2014 Evan Radkoff.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the GNU Public License v3.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.gnu.org/licenses/gpl.html
7+
******************************************************************************/
18
package riskarena;
29
/*
310
* World Class

Diff for: src/riskarena/graphics/BotSpeedPanel.java

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2012-2014 Evan Radkoff.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the GNU Public License v3.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.gnu.org/licenses/gpl.html
7+
******************************************************************************/
18
package riskarena.graphics;
29
/*
310
* BotSpeedPanel represents the small panel on the left of the GameBoard

Diff for: src/riskarena/graphics/Console.java

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2012-2014 Evan Radkoff.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the GNU Public License v3.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.gnu.org/licenses/gpl.html
7+
******************************************************************************/
18
package riskarena.graphics;
29
/*
310
* The console class is the UI component that shows a history of game

Diff for: src/riskarena/graphics/FontMaker.java

+8-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2012-2014 Evan Radkoff.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the GNU Public License v3.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.gnu.org/licenses/gpl.html
7+
******************************************************************************/
18
package riskarena.graphics;
29
/*
310
* FontMaker is a class with static methods that construct and return java.awt.Font instances
@@ -45,4 +52,4 @@ public static Font makeCustomFont(int style, int size) {
4552
public static Font makePlainFont(int style, int size) {
4653
return new Font("herp",style, size);
4754
}
48-
}
55+
}

Diff for: src/riskarena/graphics/GameBoard.java

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2012-2014 Evan Radkoff.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the GNU Public License v3.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.gnu.org/licenses/gpl.html
7+
******************************************************************************/
18
package riskarena.graphics;
29
/*
310
* GameBoard draws the world using javax.swing. It's comprised of four elements:

Diff for: src/riskarena/graphics/InfoPanel.java

+7
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
/*******************************************************************************
2+
* Copyright (c) 2012-2014 Evan Radkoff.
3+
* All rights reserved. This program and the accompanying materials
4+
* are made available under the terms of the GNU Public License v3.0
5+
* which accompanies this distribution, and is available at
6+
* http://www.gnu.org/licenses/gpl.html
7+
******************************************************************************/
18
package riskarena.graphics;
29
/*
310
* The InfoPanel class represents the lower left panel of the GUI windows,

0 commit comments

Comments
 (0)