An enum is not a switch statement. However, you can use an enumerated type as the case types. Along with enumerated types you can also use a char, int, short, and byte.
A switch case is similar to an if else statement but its has many different paths of flow comparatively.
Joe
Sent from my android device.
-----Original Message-----
From: Timothy Crisler <mister...@gmail.com>
To: "cs251-...@googlegroups.com" <cs251-...@googlegroups.com>
Sent: Tue, 03 May 2011 1:58 PM
Subject: Re: Enum Tile class
So an enum is similar to a case switch block of code in the sense that it toggles between different outputs depending on different inputs?
Timothy Crisler
Sent from my iPhone
On May 2, 2011, at 2:11 PM, Jan Monterrubio <notur_b...@hotmail.com> wrote:
How it will work depends on how you do things.
This is how my enum works:
It takes a string as a parameter to the constructor, which is just
"../resources/NameofSomething.jpg"
it then uses that string to return an image icon.