MCPcopy Create free account
hub / github.com/OpenXcom/OpenXcom / getFrame

Method getFrame

src/Engine/SurfaceSet.cpp:215–222  ·  view source on GitHub ↗

* Returns a particular frame from the surface set. * @param i Frame number in the set. * @return Pointer to the respective surface. */

Source from the content-addressed store, hash-verified

213 * @return Pointer to the respective surface.
214 */
215Surface *SurfaceSet::getFrame(int i)
216{
217 if (_frames.find(i) != _frames.end())
218 {
219 return _frames[i];
220 }
221 return 0;
222}
223
224/**
225 * Creates and returns a particular frame in the surface set.

Callers 15

getSpriteMethod · 0.80
MapMethod · 0.80
drawTerrainMethod · 0.80
drawMethod · 0.80
mouseClickMethod · 0.80
initMethod · 0.80
drawRoutine0Method · 0.80
drawRoutine1Method · 0.80
drawRoutine2Method · 0.80
drawRoutine3Method · 0.80
drawRoutine4Method · 0.80
drawRoutine5Method · 0.80

Calls

no outgoing calls

Tested by 2

TestStateMethod · 0.64
blitMethod · 0.64