1.) Class (or Enum should be possible in Java 1.5+)2.) No operator overloading available in Java, use function-calls like add, sub, cross and so on and return self for chaining3.) In Java you have no Pointer, all Object-Parameters are submitted "by ref"

But how the hell do you swap from intro screen to game play mode without a function pointer?!?!?!?

One possibility would be to have a base class to handle drawing and the game logic, then derive new classes for intro screen and game play. You have a reference to the current active "game screen" object and call the drawing and logic methods on that in your game loop. When the state changes, you just change the active "game screen".

Roquen- references are equiv to class pointers?I know I can go write a switch statement and contain all possible modes with different variables, but im talking about having one variable that can swap between classes.

Wildern- So I make the intro and the game screen come out of the same class? nah... Isnt that virtual functions in c++? god im confused.

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org