annotate game/G.java @ 167:7bf508d363bd

Cleanups.
author Matti Hamalainen <ccr@tnsp.org>
date Thu, 02 Mar 2017 12:23:57 +0200
parents e8eeac403e5f
children b9bc493ae53c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
167
7bf508d363bd Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 162
diff changeset
1 /*
7bf508d363bd Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 162
diff changeset
2 * Ristipolku Game Engine
7bf508d363bd Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 162
diff changeset
3 * (C) Copyright 2011 Matti 'ccr' Hämäläinen <ccr@tnsp.org>
7bf508d363bd Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 162
diff changeset
4 */
75
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5 package game;
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7 import java.awt.*;
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8 import java.awt.geom.*;
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9 import java.awt.event.*;
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10 import java.awt.image.*;
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11 import java.awt.event.*;
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 import java.awt.font.*;
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13 import javax.imageio.*;
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 import javax.swing.*;
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15 import java.util.*;
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16 import java.io.*;
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17 import game.*;
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
18 import javax.sound.sampled.*;
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19
167
7bf508d363bd Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 162
diff changeset
20
75
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
21 public class G
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
22 {
167
7bf508d363bd Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 162
diff changeset
23 public static final String version = "0.86";
105
75015dfd47ef Move version number info to G.java.
Matti Hamalainen <ccr@tnsp.org>
parents: 76
diff changeset
24
76
43f68fe605de More cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 75
diff changeset
25 public static final int numFonts = 4;
75
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26 public static Font fonts[];
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
27 public static FontMetrics metrics[];
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
28
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
29 public static SoundManager smgr;
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
30
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
31 public static Dimension screenDim;
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
32
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
33 public static BufferedImage lautaBG = null, lautaBGScaled = null;
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
34 }