/** * Copyright (c) 2012-2013 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; /* * Implements oval track. */ public class Oval extends Track { public Oval(LapListener listener) { super(listener); setTrack("/oval.png"); addGate(new Gate(this, 152, 116, 203, 215)); addGate(new Gate(this, 514, 183, 417, 244)); addGate(new Gate(this, 373, 380, 415, 480)); addGate(new Gate(this, 154, 325, 55, 373)); setCarStartPosition(115, 224); setCarStartFrame(5); } }