okay so i have this program that is supposed to read an input file containing a series of commands and act appropriately on those commands. in addition i am supposed to create three additional classes(which i have done already) to support my main
java program. the main program is supposed to read a plain text file and follow the instructions contained in the file. it then will create a drawing panel window and the program should follow all the commnds in the input file with a pause of 1000 milliseconds. Each line of the input file contains a seperate command and there are four possible commands:
1. Construct 2. Draw 3. Dance and 4. Erase
Those other three classes are just shapes that draws a shape and has a method to make it dance(move)
i have done these already if you want to see one of them just tell me to post it up.
I have most of the main program done. It opens up the drawing panel and everything, but it wont read the instructions of the input file so it can draw the shape in the drawing panel. If anyone can help in what i'm suppose to add to my program it will be appreciated. I got of ton of help with my last question and i was very glad with the results i got
Heres the main program:
and here's what one of the input files/txtfiles has stored in it:
construct A 0 100 red
draw A 0 200 300 red
dance A 0 10
erase
if you need more info from me please tell me