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

Method GetAVDataUpdate

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

Returns the avatar's faced cell update data

Source from the content-addressed store, hash-verified

1941
1942// Returns the avatar's faced cell update data
1943int cPopulationInterface::GetAVDataUpdate(int av_num)
1944{
1945 // If the avatar exists..
1946 if (av_num < GetNumAV()) {
1947 // Returns the avatar's faced cell update data
1948 return m_world->GetPopulation().GetCell(m_avatars[av_num].av_cell_id).GetCellDataUpdate();
1949 }
1950 return -1;
1951}
1952
1953// Returns the avatar's faced cell territory data
1954int cPopulationInterface::GetAVDataTerritory(int av_num)

Callers

nothing calls this directly

Calls 2

GetCellDataUpdateMethod · 0.45
GetCellMethod · 0.45

Tested by

no test coverage detected