What is the equivalent tu Unrealscript STATES?

Thanks for your help.
I was thinking Unrealscript would translate into c++ in a specific way that could be easy to move my STATES code into something similar.