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

Method GetAVFacedDataOrgID

avida-core/source/main/cPopulationInterface.cc:1888–1896  ·  view source on GitHub ↗

Returns the avatar's faced cell org id data

Source from the content-addressed store, hash-verified

1886
1887// Returns the avatar's faced cell org id data
1888int cPopulationInterface::GetAVFacedDataOrgID(int av_num)
1889{
1890 // If the avatar exists..
1891 if (av_num < GetNumAV()) {
1892 // Returns the avatar's faced cell org id data
1893 return m_world->GetPopulation().GetCell(m_avatars[av_num].av_faced_cell).GetCellDataOrgID();
1894 }
1895 return -1;
1896}
1897
1898// Returns the avatar's faced cell update data
1899int cPopulationInterface::GetAVFacedDataUpdate(int av_num)

Callers

nothing calls this directly

Calls 2

GetCellDataOrgIDMethod · 0.45
GetCellMethod · 0.45

Tested by

no test coverage detected