Graphics ~ Module Interactions - uchicago-cs/chiventure GitHub Wiki

Proposed Interactions between Modules

Based on our Proposed Ideas for Graphic Design, this document is intended to aid in the implementation of graphics and the implementation of proposed functionality that can be found in document Graphics: Design Plan which can be found on the wiki

Map Functionality:

Intended Function:

Show an updated map in the corner which would indicate objects, enemies or NPCs in the room 

Modules Needed:

item.h: From item.h we can access item structs with item specific information
game.h: From game.h we can access player structs with player specific information
path.h: From path.h we can access the paths between rooms to correctly construct the map

Player Stats Functionality:

Intended Function:

To display updates on the characters HP, name, and level 

Modules Needed:

player.h: From player.h we can access player information including name, level, health and XP

Battle/Interactions Functionality:

Intended Function:

To display interactions between player and NPCs

Modules Needed:

npc.h: From npc.h we can access item structs with NPC specific information such as 
       name, dialogue trees and other stats

Pocket/Inventory Functionality:

Intended Function:

To display items in the inventory or other items on the character 

Modules Needed:

player.h: From player.h we can access item structs with player information such as a hash 
          table of items in the inventory





Last Revision: 5/3/2020
Authors: Xavier Valencia and Abby Herman

Information will need to be updated as modules change as well

⚠️ **GitHub.com Fallback** ⚠️