Skip to content

A2 : notes on implementation of GameEngine2 #10

@eyeshield2110

Description

@eyeshield2110
  • Alternate GameEngine implementation: declaration in GameEngine2.h and definition and testing in GameEngine2.cpp
  • Implemented the FSM diagram from A1 as a literal graph, using State objects as the nodes and Transition objects (valid commands) as the edges.
    IMG_0188

IMG_0189

class State Transition GameEngine
data members
  • nameState: string
  • transitions: vector of Transition*
  • nameTransition: string
  • nextState: State*
  • transitions: vector of Transition*
  • states:vector of State*

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions