Skip to content

ClockTask

Millie Macdonald edited this page Jan 18, 2017 · 1 revision

This method is used by the clock method and stores the code that is executed once every second. The class extends the already existing java class TimerTask defined in the library java.util.TimerTask.

Methods

Name Returns Parameters Description
run() - - This is the method that is executed when the ClockTask is used, This is the main method that is overriten when TimerTask is extended
getDate() Date currentDate - Method used to return the current date object of the object, used by Clock to return the current date.
ClockTask (Text seconds, Text minutes) - seconds is a Text object used to store the time in seconds, minutes is a Text object used to store the time in minutes Main method of the ClockTask class, this method is used to pass in the relevant text objects so that the ClockTask can update them as the seconds go by.

Home

Saving and Loading

Statistics tracking

Game Play

APIs


Game Guide

Other Guides

Design Guides

Overviews

Features

Animations

Splash Screen & Create Account Screen

Player Account Settings

AI

Duck Dust


Brainstorming


Future Development


http://cultofthepartyparrot.com/parrots/partyparrot.gifhttp://cultofthepartyparrot.com/parrots/partyparrot.gifhttp://cultofthepartyparrot.com/parrots/partyparrot.gifhttp://cultofthepartyparrot.com/parrots/partyparrot.gif

Clone this wiki locally