EightLoop.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 EightLoop extends Track{

    public EightLoop(LapListener listener) {
        super(listener);
        setTrack("/eightloop.png");
        addGate(new Gate(98,545,225,459));
        addGate(new Gate(142,314,255,377));
        addGate(new Gate(333,213,442,280));
        addGate(new Gate(372,138,439,27));
        addGate(new Gate(296,160,175,110));
        addGate(new Gate(190,292,333,228));
        addGate(new Gate(294,397,439,295));
        addGate(new Gate(310,444,388,539));
        addGate(new Gate(247,463,195,576));
        setCarPosition(120,200);
        setStartPosition(-149, -268);
        setCarStartFrame(18);
    }
}