|
Cellular Automata CHEM274B Group Project
Contributor(s): Chongye Feng, Emmanuel Cortes, Trevor Oldham
|
Class that represents a star system. More...
#include <galaxydatatypes.h>
Public Member Functions | |
| bool | operator!= (const GalaxyCell &other) |
| CellularAutomata requirement (inequality operator) More... | |
| GalaxyCell & | operator= (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 | |
Class that represents a star system.
The struct contains a velocity array and mass variable. Satisfies CellularAutomata requirements
| GalaxyCell::GalaxyCell | ( | const GalaxyCell & | other | ) |
CellularAutomata requirement (copy constructor)
| other | instance from which to copy data |
| GalaxyCell::GalaxyCell | ( | ) |
Construct a new Galaxy Cell object.
| bool GalaxyCell::operator!= | ( | const GalaxyCell & | other | ) |
CellularAutomata requirement (inequality operator)
| other | instance with which to compare data |
| GalaxyCell & GalaxyCell::operator= | ( | const GalaxyCell & | other | ) |
CellularAutomata requirement (assignment operator)
| other | instance from which to copy data |