array value setting

Is there anyway to write a switch statement for all parts of an array at once? like can I do something like
instead of having to do each one separately like
that would be impossible for my current project.
Also since I have four different attacks per monster how would I setup a global two part array where the values correspond to pMOVE[monsternumber][attacknumber].
thanks.
- Code: Select all
switch (pMOVE1[any real number])
{
//set values of attack
}
instead of having to do each one separately like
- Code: Select all
switch (pMOVE1[0])
{
//set values
}
switch (pMOVE1[1])
{
}
//......
that would be impossible for my current project.
Also since I have four different attacks per monster how would I setup a global two part array where the values correspond to pMOVE[monsternumber][attacknumber].
thanks.