lotgd / core

Core functionality for Legend of the Green Dragon, a text-based RPG game.
GNU Affero General Public License v3.0
152 stars 15 forks source link

Add key elements of the main game loop #54

Closed austenmc closed 8 years ago

austenmc commented 8 years ago

This PR adds getViewpoint and takeAction which are two key parts of the main game loop to the Game object.

This involved making a few changes to data model objects, most notably to Character and CharacterViewpoint. This also introduces the concept of an ActionGroup containing many Actions, which is the encoding of the navigation menu.

austenmc commented 8 years ago

Expanding this PR to include some minor refactorings.

Vassyli commented 8 years ago

Looks good.