home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-12-03 | 2.2 KB | 51 lines | [TEXT/CWIE] |
- GameShell Behaviors/Services
- Version 1.0
- Hiep Dam
- starlabs@aol.com
- 12/3/95
-
-
- •) Provide automatic main window (mandatory)
- * You must supply the address to an update function. It will
- be called whenever an update event is generated for the main window.
-
- •) Provide automatic mouse handling (mandatory)
- * You must supply the address to a mouse handler function. It will be
- called, with the mouse loc in local coords, whenever the mouse is
- clicked in the main window.
-
-
-
- •) Backdrop window (optional)
- * A backdrop window will be created if the main window is smaller than the
- monitor it appears on. The backdrop window will be filled with black. You
- need not worry anything about the window; GameShell will automatically take
- care of everything having to do with the backdrop window, including updates.
-
- •) Blackout windows (optional)
- * If more than one monitor is attached, all other monitors that are not
- used will be "blacked-out"; i.e. a window will be created for each monitor
- and then the window will be filled with black.
-
- •) Menu initialization and handling (optional)
- * You supply function pointers to a menu init function and a menu handler
- function. Everything else (i.e. mouse hits in the menu bar, hiding and
- showing the menubar, etc) will be handled by GameShell. When appropriate,
- your menu handler will be called.
- If your game does not use menus, you need not use these features.
-
- •) Menu bar hiding/showing (optional)
- * If the user clicks in the area normally associated with the menu, it will
- appear. Once the mouse moves away from the menu bar, it will be hidden
- again.
- * If an item is chosen, right after it's chosen the menu bar will be hidden
- again, automatically. Also, any menu hiliting is also handled automatically.
- * Your responsibility is just to decode the menu argument and handle the
- menu item chosen (done in your menu handler function, called by GameShell).
-
-
- Notes:
- GameShell will also behave appropriately if the user should switch applications.
- The game's windows will be hidden, and the menubar will be restored. When
- the user switches back to GameShell, the windows will be shown again and the
- menubar hidden. One less hassle the game programmer has to deal with!