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

Method drawFireButton

code/main/CastleRoom2.ts:101–113  ·  view source on GitHub ↗
(x: number, y: number)

Source from the content-addressed store, hash-verified

99 }
100
101 private drawFireButton(x: number, y: number): void{
102 // Add the button
103 this.renderArea.addMultipleAsciiButtons("castleRoom2LightFireButton",
104 x, x+16, y,
105 x, x+16, y+1,
106 x, x+16, y+2,
107 x, x+16, y+3,
108 x, x+16, y+4,
109 x, x+16, y+5);
110
111 // Add the link
112 this.renderArea.addLinkCall(".castleRoom2LightFireButton", new CallbackCollection(this.lightFire.bind(this)));
113 }
114
115 private drawObject(x: number, y: number): void{
116 // Draw the ascii art

Callers 1

updateMethod · 0.95

Calls 3

addLinkCallMethod · 0.80
bindMethod · 0.80

Tested by

no test coverage detected