MCPcopy Create free account
hub / github.com/OpenDungeons/OpenDungeons / tryPickup

Method tryPickup

source/entities/MapLight.cpp:207–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205}
206
207bool MapLight::tryPickup(Seat* seat)
208{
209 if(!getIsOnMap())
210 return false;
211
212 // We can pickup MapLights only in editor mode
213 if(getGameMap()->isInEditorMode())
214 return true;
215
216 return false;
217}
218
219void MapLight::pickup()
220{

Callers 10

pickUpEntityMethod · 0.45
getPixelValueFromTileFunction · 0.45
saveWoundedCreaturesMethod · 0.45
handleDefenseMethod · 0.45
handleTiredCreaturesMethod · 0.45
handleHungryCreaturesMethod · 0.45
mousePressedMethod · 0.45

Calls 1

isInEditorModeMethod · 0.80

Tested by

no test coverage detected