Skip to content

Recipe Card

Ashom2 edited this page Oct 17, 2024 · 5 revisions

Introduction

The recipe card provides the player a way to quickly check their recipes at a glance. The recipe card is opened whenever the player presses the "0" key. This documentation describes the structure and functionality of the RecipeCardDisplay class. image

RecipeCardDisplay

Key Components and Fields

  • isVisible: Tracks whether the recipe card is currently visible.
  • game: A reference to the MainGameScreen to control pausing and resuming of the game.
  • logger: Logs interactions with the recipe card.

Visual Elements

  • toggleVisibility(): This method is to toggle the visibility of the recipe card and pause / unpause the game accordingly.

Input Handling

  • create(): This overridden method listens for a key input (the "0" key) to toggle the visibility of the recipe card. When "0" is pressed during the game, the recipe card appears, pausing the game. Pressing "0" again hides the card and resumes the game.

UML Diagram

image

Table of Contents

Home

Team Design Document

Game Features

Inventory System
Scoring System
Food Recipes
Level System
Player Actions
Ordering System
Stations
Items
Map Design
Customers
Pause Menu
Upgrades
End of Day Display
Day Night Cycle
Moral System
Debug Terminal
Game Interactions Tutorial
Backstory Cutscenes

Game

Getting Started

Entities and Components

World Backstory

Service Locator

Loading Resources

Logging

Unit Testing

Debug Terminal

Input Handling

UI

Animations

Audio

AI

Physics

Game Screens and Areas

Terrain

Concurrency & Threading

Settings

Map Design

Test Plans

Sensor Component

Customer Sensor Component

Interaction Component

Inventory Component

Inventory Display

Station Meal Component

Station Progress Display

Keyboard Input Component

Fire Extinguisher Handler Component

Score System

HoverBox Component

MainGameActions Create Docket Triggers

End Day Display Component

Cutscene Area

Docket

Docket Line Display

Docket Meal Display

Main Game Order Button Display

Order Actions

Recipe

Ticket Details Component

BackstoryCutscene Test Plan

BackstoryCutsceneDisplay Test Plan

Test Plan for Tutorial

Keybinds

Keybinds Test Plan

Test Plan for MainGameOrderTicketDisplay

Test Plan for MainGameOrderBtnDisplay

Test Plan for Docket

Test Plan for DocketLineDisplay

Test Plan for OrderActions

Ticket Details

Test plan for RandomComboService

Test plan for LoanUpgrade

Test plan for UpgradesDisplay

Test plan for RageUpgrade

Test plan for SpeedBoostUpgrade

Test plan for DancePartyUpgrade

Test plan for ExtortionUpgrade

Troubleshooting

MacOS Setup Guide

Clone this wiki locally