I looked through a lot of posts here and could not see the solution I needed ...
I get an error message:
the method initTimer(untitled.Object, String, int int) in the type untitled.TimerClass is not applicable for the arguments (untitled.Toon, String, int, int)
and it drives me crazy.
timers.initTimer(character, "regenAdd", 0,3);
The above line is the one that throws the error, and the following function:
public void initTimer(final Object obj, final String method, int delay, int period) { delay*=1000; period*=1000; final Class<?> unknown = obj.getClass(); new Timer().schedule(new TimerTask() { public void run() { try {
Thanks in advance to anyone who can help with this :)
Additional Information:
runState is a logical expression that you could not guess and a character is an instance of the Toon class; the above method is within the class TimerClass and the "timers" are an instance of this class.
source share