jam/AimlessTracker

From ggc

Jump to: navigation, search

01 package jam;
02 
03 import wiki.Wiki;
04 import fang.*;
05 import java.awt.geom.*;
06 
07 /**
08  * All about my class here.
09  @author Jam Jenkins
10  */
11 public class AimlessTracker extends ProjectileTracker
12 {
13   public AimlessTracker(double x, double y)
14   {
15     super(x, y);
16   }
17 
18   public void advanceTime(double timePassed)
19   {
20     double angle=Math.atan2(getVelocity().y, getVelocity().x);
21     angle+=(Math.random()-0.5)*3.14*timePassed;
22   }
23 }

Compiler Errors:
----------
1. ERROR in jam/AimlessTracker.java (at line 18)
	public void advanceTime(double timePassed)
	            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Cannot override the final method from Transformer
----------
1 problem (1 error)

Download/View jam/AimlessTracker.java




Views
Personal tools
Add to 
del.icio.usAdd to 
diggAdd to 
FacebookAdd to 
favoritesAdd to 
GoogleAdd to 
MySpaceAdd to 
PrintAdd to 
SlashdotAdd to 
StumbleUponAdd to 
Twitter