juniper-wright / UtopianEngine

The Simple Text Adventure Game Engine
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link

Break Game constructor into more functions #30

Closed juniper-wright closed 11 years ago

juniper-wright commented 11 years ago

The Game constructor has four distinct parts:

1.) Parsing the parameters on the Game node.

2.) Parsing the nodes in the Commands node.

3.) Parsing the nodes in the Items node.

4.) Parsing the nodes in the Rooms node.

Each of parts 2-4 should have its own function.

Proposition:

private void buildGameCommands(Node commandsNode) { }
private void buildGameItems(Node itemsNode) { }
private void buildGameRooms(Node roomsNode) { }
juniper-wright commented 11 years ago

Resolved by resolution of #31, #32, and #33.