Re: Multiple State Menus?

Objects are not necessarily entirely isolated, since by their very nature they have to interact with other elements of the program. The player class for example may have to be aware of the environment for collision or interaction purposes, or vice versa, the environment being aware of the player for said purposes. While input could be funneled directly to the player class, the player class may in some way still have access to things like menu's or other classes.

Part of the stuff I worked on when writing RTS's involved deciding how much information, if any, units would have for rendering or environmental data when pathfinding, or whether that would be handled by a centralized environment or unit handling class that would oversee the units themselves per faction.

Given your hypothetical scenario of pressing enter for getting a read on your surroundings, that could be an input element that taps into map data the player class may have access to for collision or ID purposes to display that information, or it could have the player class call a function in your environment class that could ID the player and any nearby objects and dump text about them.

-- 
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : magurp244 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : amerikranian via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : camlorn via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : chrisnorman7 via Audiogames-reflector

Reply via email to