I am using an ArrayList to store references to Graphical Objects drawn with a GeneralPath method
The purpose of the program is to randomly generate a dungeon.
I am differentiating a door from a continuing corridor by drawing an arrow to represent the continuing corridor.
GeneralPath implements Shape, so you should be able to cast it to that Shape type. The most likely reason for your problem is that you have your own Shape type, which is taking precedence over java.awt.Shape when you are casting. So that won't compile.
Eric Madore wrote:. . . I could not cast the objects . . . to Shape . . .
We've gotta get close enough to that helmet to pull the choke on it's engine and flood his mind! Or, we could just read this tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)https://products.aspose.com/total/java