Monza.java
/*
* Copyright © 2011 Nokia Corporation. All rights reserved.
* Nokia and Nokia Connecting People are registered trademarks of Nokia Corporation.
* Oracle and Java are trademarks or registered trademarks of Oracle and/or its
* affiliates. Other product and company names mentioned herein may be trademarks
* or trade names of their respective owners.
* See LICENSE.TXT for license information.
*/
package com.nokia.example.racer.views.tracks;
import com.nokia.example.racer.views.components.Gate;
import com.nokia.example.racer.views.components.Track;
public class Monza extends Track{
public Monza(LapListener listener) {
super(listener);
setTrack("/monza.png");
addGate(new Gate(115, 133, 215, 208));
addGate(new Gate(320,139,468,88));
addGate(new Gate(227,227,370,273));
addGate(new Gate(433, 470, 562, 531));
addGate(new Gate(52, 392, 162, 321));
setCarPosition(100,150);
setStartPosition(0, -60);
setPosition(0,-60);
setCarStartFrame(2);
}
}