annotate Ristipolku.java @ 160:d5fbad999841

Added signature for changeset 570e4e0e2205
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 10 Feb 2016 16:24:00 +0200
parents 64b04c0eccce
children f3302a2d7815
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
16
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 /*
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 * Ristipolku
152
64b04c0eccce Cleanups.
Matti Hamalainen <ccr@tnsp.org>
parents: 16
diff changeset
3 * (C) Copyright 2011 Matti 'ccr' Hämäläinen <ccr@tnsp.org>
16
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4 *
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
5 * Ohjelmointiprojekti 2010-2011 Java-kurssille T740306.
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
6 */
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
7 import javax.swing.*;
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
8 import game.*;
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
9
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
10 public class Ristipolku extends JApplet
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11 {
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 Engine panel;
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
14 public void init()
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15 {
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16 panel = new Engine();
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17 getContentPane().add(panel);
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
18 }
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20 public void start()
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
21 {
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
22 panel.startThreads();
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
23 }
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
24
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
25 public void stop()
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
26 {
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
27 panel.stopThreads();
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
28 }
6f483536a063 Added main applet code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
29 }