Sorry that was a really bad post. I know, was a bit to tired to copy the code.
Yes i control the class, and i'm sending the enum to it when i call it.
Yes i know i could change the class to take both but i was thinking as an enum's a sort of int anyway i could just cast it. ( if that makes sense) .So i dont have to re wright a load of functions
the enum
#include "WProgram.h"
enum Color {
RED,
GREEN,
BLUE}
Using it
Color Currant_color;
Currant_color=RED;
// prototype
void ColorSet(Color this_Color); // havent included the function it's self to keep it simple
//calling the function
ColorSet(Currant_color);
// wanted to do something like this to including the mapping
Currant_color=(int)1; // for green
ColorSet(Currant_color);
Hope thats clear enough had to just wright that up, so i've not compiled this it's just to give an idea it basically like that.