Rose
Classes | Enumerations
ConwayLife.h File Reference

Conway's Game of Life. More...

#include <array>
#include <exception>
#include <memory>
#include <mutex>
#include "Constants.h"
#include "ScreenMetrics.h"
#include "Rose.h"
#include "Signals.h"
#include "Slider.h"
#include "Timer.h"
Include dependency graph for ConwayLife.h:

Go to the source code of this file.

Classes

struct  StartPattern
 
struct  Cell
 
class  Board
 
class  ConwayLife
 

Enumerations

enum  PatternOrigin { TopLeft, BottomLeft, Center }
 Set the general location of the pattern initialization. More...
 
enum  State { Dead, Live, Dying, Born }
 The state of a cell. More...
 
enum  UserSignalTokenValues : rose::SignalToken {
  ExitButton = rose::SignalTokenValues::FirstUserSignalToken, GunButton, AcornButton, Switch1Button,
  Switch2Button, TributeButton, ConfigButton = rose::FirstUserSignalToken, ExitButton,
  ExitButton = FirstUserSignalToken, TitleGadget, RoseButton = rose::FirstUserSignalToken, LifeButton,
  HamClockButton, HamChronoButton, UpgradeButton, ExitButton
}
 Signal tokens used to identify which button was pressed. More...
 

Detailed Description

Conway's Game of Life.

Author
Richard Buckley richa.nosp@m.rd.b.nosp@m.uckle.nosp@m.y@ie.nosp@m.ee.or.nosp@m.g
Version
1.0
Date
2020-12-27

Enumeration Type Documentation

◆ PatternOrigin

Set the general location of the pattern initialization.

Enumerator
TopLeft 

Top left corner of the board.

BottomLeft 

Bottom left corner of the board.

Center 

Centered on the board.

◆ State

enum State

The state of a cell.

Enumerator
Dead 

Cell is empty.

Live 

Cell is living.

Dying 

Cell is dead on the next generation.

Born 

Cell is alive on the next generation.

◆ UserSignalTokenValues

Signal tokens used to identify which button was pressed.

Enumerator
ExitButton 

Exit the application.

GunButton 

Restart with the Gosner Glider Gun pattern.

AcornButton 

Restart with the Acorn pattern.

Switch1Button 

Restart with the Switch1 pattern.

Switch2Button 

Restart with the Switch2 pattern.

TributeButton 

Conway's Tribute pattern.

ConfigButton 

Exit the application.

RoseButton 

Launch Rose Demo application.

LifeButton 

Launch Conway's Game of Life.

HamClockButton 

Launch Ham Clock application.

HamChronoButton 

Launch HamChrono application.

UpgradeButton 

Upgrade the system software.

ExitButton 

Exit RoseExec.