MCPcopy Create free account
hub / github.com/devosoft/avida / GetPosition

Method GetPosition

avida-core/source/main/cPopulationCell.h:115–115  ·  view source on GitHub ↗

Returns the human interpretable facing of this org.

Source from the content-addressed store, hash-verified

113 int GetFacing(); // Returns the facing of this cell.
114 int GetFacedDir(); // Returns the human interpretable facing of this org.
115 inline void GetPosition(int& x, int& y) const { x = m_x; y = m_y; } // Retrieves the position (x,y) coordinates of this cell.
116 inline std::pair<int,int> GetPosition() const { return std::make_pair(m_x,m_y); }
117 inline int GetVisits() { return m_visits; } // @WRE: Retrieves the number of visits for this cell.
118 inline void IncVisits() { m_visits++; } // @WRE: Increments the visit count for a cell

Callers 5

ConnectMethod · 0.45
GetFacingMethod · 0.45
migration_messageMethod · 0.45
MigrateOrganismMethod · 0.45
IsWorldBoundaryMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected