MCPcopy Create free account
hub / github.com/candybox2/candybox2.github.io / drawGridItems

Method drawGridItems

code/main/Inventory.ts:149–155  ·  view source on GitHub ↗
(x: number, y: number)

Source from the content-addressed store, hash-verified

147 }
148
149 private drawGridItems(x: number, y: number): void{
150 for(var savingName in this.getGame().getGridItems()){
151 // If we possess this item, we draw it
152 if(this.getGame().getGridItems()[savingName].isPossessed())
153 this.drawGridItem(this.getGame().getGridItems()[savingName], x, y);
154 }
155 }
156
157 private drawStats(x: number, y: number): number{
158 // Set the additional damage text

Callers 1

updateMethod · 0.95

Calls 4

drawGridItemMethod · 0.95
getGridItemsMethod · 0.80
getGameMethod · 0.45
isPossessedMethod · 0.45

Tested by

no test coverage detected