annotate game/G.java @ 192:8dbaa093c562

Improve debug message handling.
author Matti Hamalainen <ccr@tnsp.org>
date Tue, 23 Apr 2019 13:00:25 +0300
parents 189cd8fe2304
children
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
189
189cd8fe2304 Bump copyrights.
Matti Hamalainen <ccr@tnsp.org>
parents: 185
diff changeset
3 * (C) Copyright 2011-2017 Matti 'ccr' Hämäläinen <ccr@tnsp.org>
167
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 {
185
28a40f23746b Bump version.
Matti Hamalainen <ccr@tnsp.org>
parents: 183
diff changeset
23 public static final String version = "0.87";
105
75015dfd47ef Move version number info to G.java.
Matti Hamalainen <ccr@tnsp.org>
parents: 76
diff changeset
24
170
b9bc493ae53c Modularize and clean up code.
Matti Hamalainen <ccr@tnsp.org>
parents: 167
diff changeset
25 public static Font baseFont;
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;
192
8dbaa093c562 Improve debug message handling.
Matti Hamalainen <ccr@tnsp.org>
parents: 189
diff changeset
34
8dbaa093c562 Improve debug message handling.
Matti Hamalainen <ccr@tnsp.org>
parents: 189
diff changeset
35 public static void debug(String msg)
8dbaa093c562 Improve debug message handling.
Matti Hamalainen <ccr@tnsp.org>
parents: 189
diff changeset
36 {
8dbaa093c562 Improve debug message handling.
Matti Hamalainen <ccr@tnsp.org>
parents: 189
diff changeset
37 System.out.print(msg);
8dbaa093c562 Improve debug message handling.
Matti Hamalainen <ccr@tnsp.org>
parents: 189
diff changeset
38 }
75
b586ce4f6d97 Large GUI code cleanup.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
39 }