Friday, May 27, 2011

Researching airplane controls and state switching

Most of today's work was spent in researching airplane controls for the new test project.  I don't have much to say on the matter, but here are a couple resources which may be of interest:
Cockpit of the Cessna 172 Skyhawk
aircraft cockpit controls and instruments

As far as code goes, I finished the basic state switching code.  The current state is switched by returning an input object for the new state from the current state's update function.  This input object is used as the input for the new state, allowing the previous state to pass on information such as the character the player selected, open network connections, Direct3D device, etc.

I also finished the window class wrapper. I am actually wondering why I have the registration code inside of the wrapper's constructor rather than having external code directly alter the wrapped class atom...  I suspect this is RAII, but I do not know for sure.  I plan on researching RAII again tomorrow (I keep forgetting the exact definition of that term).

No comments:

Post a Comment