Cellular Automata CHEM274B Group Project
Contributor(s): Chongye Feng, Emmanuel Cortes, Trevor Oldham
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
GalaxyCell Class Reference

Class that represents a star system. More...

#include <galaxydatatypes.h>

Public Member Functions

bool operator!= (const GalaxyCell &other)
 CellularAutomata requirement (inequality operator) More...
 
GalaxyCelloperator= (const GalaxyCell &other)
 CellularAutomata requirement (assignment operator) More...
 
 GalaxyCell (const GalaxyCell &other)
 CellularAutomata requirement (copy constructor) More...
 
 GalaxyCell ()
 Construct a new Galaxy Cell object. More...
 

Public Attributes

int state
 CellularAutomata requirement; 0: empty space.
 
double velocity [3]
 velocity vector
 
double mass
 cell mass
 

Detailed Description

Class that represents a star system.

The struct contains a velocity array and mass variable. Satisfies CellularAutomata requirements

Constructor & Destructor Documentation

◆ GalaxyCell() [1/2]

GalaxyCell::GalaxyCell ( const GalaxyCell other)

CellularAutomata requirement (copy constructor)

Parameters
otherinstance from which to copy data

◆ GalaxyCell() [2/2]

GalaxyCell::GalaxyCell ( )

Construct a new Galaxy Cell object.

Member Function Documentation

◆ operator!=()

bool GalaxyCell::operator!= ( const GalaxyCell other)

CellularAutomata requirement (inequality operator)

Parameters
otherinstance with which to compare data
Returns
true
false

◆ operator=()

GalaxyCell & GalaxyCell::operator= ( const GalaxyCell other)

CellularAutomata requirement (assignment operator)

Parameters
otherinstance from which to copy data
Returns
GalaxyCell&

The documentation for this class was generated from the following file: