view Ristipolku.java @ 138:9eb791e2fa17

Optimize board updating logic, so that the old placed tiles need not to be redrawn from scratch on each screen update, as they do not change usually.
author Matti Hamalainen <ccr@tnsp.org>
date Fri, 25 Nov 2011 11:04:09 +0200
parents 6f483536a063
children 64b04c0eccce
line wrap: on
line source

/*
 * Ristipolku
 * (C) Copyright 2011 Matti 'ccr' Hämäläinen <ccr@tnsp.org>
 *
 * Ohjelmointiprojekti 2010-2011 Java-kurssille T740306.
 */
import javax.swing.*;
import game.*;

public class Ristipolku extends JApplet
{
    Engine panel;
    
    public void init()
    {
        panel = new Engine();
        getContentPane().add(panel);
    }

    public void start()
    {
        panel.startThreads();
    }

    public void stop()
    {
        panel.stopThreads();
    }
}