MCPcopy Create free account
hub / github.com/diasurgical/devilution / ProcessObjects

Function ProcessObjects

Source/objects.cpp:1720–1805  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1718}
1719
1720void ProcessObjects()
1721{
1722 int oi;
1723 int i;
1724
1725 for (i = 0; i < nobjects; ++i) {
1726 oi = objectactive[i];
1727 switch (object[oi]._otype) {
1728 case OBJ_L1LIGHT:
1729 Obj_Light(oi, 10);
1730 break;
1731 case OBJ_SKFIRE:
1732 case OBJ_CANDLE2:
1733 case OBJ_BOOKCANDLE:
1734 Obj_Light(oi, 5);
1735 break;
1736 case OBJ_STORYCANDLE:
1737 Obj_Light(oi, 3);
1738 break;
1739 case OBJ_CRUX1:
1740 case OBJ_CRUX2:
1741 case OBJ_CRUX3:
1742 case OBJ_BARREL:
1743 case OBJ_BARRELEX:
1744 case OBJ_SHRINEL:
1745 case OBJ_SHRINER:
1746 Obj_StopAnim(oi);
1747 break;
1748 case OBJ_L1LDOOR:
1749 case OBJ_L1RDOOR:
1750 case OBJ_L2LDOOR:
1751 case OBJ_L2RDOOR:
1752 case OBJ_L3LDOOR:
1753 case OBJ_L3RDOOR:
1754 Obj_Door(oi);
1755 break;
1756 case OBJ_TORCHL:
1757 case OBJ_TORCHR:
1758 case OBJ_TORCHL2:
1759 case OBJ_TORCHR2:
1760 Obj_Light(oi, 8);
1761 break;
1762 case OBJ_SARC:
1763 Obj_Sarc(oi);
1764 break;
1765 case OBJ_FLAMEHOLE:
1766 Obj_FlameTrap(oi);
1767 break;
1768 case OBJ_TRAPL:
1769 case OBJ_TRAPR:
1770 Obj_Trap(oi);
1771 break;
1772 case OBJ_MCIRCLE1:
1773 case OBJ_MCIRCLE2:
1774 Obj_Circle(oi);
1775 break;
1776 case OBJ_BCROSS:
1777 case OBJ_TBCROSS:

Callers 1

game_logicFunction · 0.85

Calls 9

Obj_LightFunction · 0.85
Obj_StopAnimFunction · 0.85
Obj_DoorFunction · 0.85
Obj_SarcFunction · 0.85
Obj_FlameTrapFunction · 0.85
Obj_TrapFunction · 0.85
Obj_CircleFunction · 0.85
Obj_BCrossDamageFunction · 0.85
DeleteObject_Function · 0.85

Tested by

no test coverage detected