#include <world.h>
Public Member Functions | |
entity (uInt seed, const energy &e, const memory &m, const position &p, const direction &d) | |
~entity () | |
energy | getEnergy () |
virtual void | draw () |
Protected Attributes | |
energy | m_energy |
the entity's energy pool | |
direction | m_direction |
the direction the entity is facing | |
position | m_position |
the current position of the entity | |
processId | m_pid |
Definition at line 14 of file world.h.
|
Definition at line 11 of file world.cpp. References entity(), and memory. Referenced by entity(). |
|
|
|
|
|
|
|
the direction the entity is facing
Definition at line 36 of file world.h. Referenced by world::getPosInfrontOfEntity(), world::giveMemory(), world::rotateEntityLeft(), and world::rotateEntityRight(). |
|
the entity's energy pool
Definition at line 34 of file world.h. Referenced by world::canBeExecuted(), world::convertEnergyToMemory(), world::convertMemoryToEnergy(), getEnergy(), world::kill(), and world::transferEnergy(). |
|
the entity's process in the virtual machine Definition at line 41 of file world.h. Referenced by world::spawnEntity(). |
|
the current position of the entity
Definition at line 38 of file world.h. Referenced by world::absorbEnergy(), world::getPosInfrontOfEntity(), world::kill(), world::moveEntity(), world::releaseEnergy(), and world::transferMemory(). |