<[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> Hi,
>
> I have the following enum -
>
> class State:
> Fire = 0
> Water = 1
> Earth = 2
>
> And I want a variable which holds a value for each of these states,
> something like -
>
> myState1[State.Fire] = 10
> myState1[State.Earth] = 4
[EMAIL PROTECTED] wrote:
> Hi,
>
> I have the following enum -
>
> class State:
> Fire = 0
> Water = 1
> Earth = 2
>
> And I want a variable which holds a value for each of these states,
> something like -
>
class State:
Fire = 0
Water = 1
Earth = 2
m
Hi,
I have the following enum -
class State:
Fire = 0
Water = 1
Earth = 2
And I want a variable which holds a value for each of these states,
something like -
myState1[State.Fire] = 10
myState1[State.Earth] = 4
myState2[State.Fire] = 20
myState2[State.Earth] = 24
How d