MCPcopy Create free account
hub / github.com/battlecode/battlecode-2018 / clone

Method clone

bindings/frankenswig/struct.py:100–101  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

98 pyname="__repr__"))
99
100 def clone(self):
101 self.method(self.type, "clone", [], docs=f"Deep-copy a {self.type.to_python()}", self_ref=True)
102
103 def eq(self):
104 self.method(boolean.type, "eq", [Var(self.type.ref(), "other")], docs=f"Compare two {self.type.to_python()}s for deep equality.", pyname="__eq__", self_ref=True)

Callers 15

generate.pyFile · 0.80
vecMethod · 0.80
landings_onMethod · 0.80
allMethod · 0.80
all_groupedMethod · 0.80
newMethod · 0.80
filterMethod · 0.80
end_roundMethod · 0.80
test_array_writeFunction · 0.80
newMethod · 0.80
queueMethod · 0.80
next_in_queueMethod · 0.80

Calls 2

methodMethod · 0.45
to_pythonMethod · 0.45

Tested by 6

test_array_writeFunction · 0.64
test_end_turn_trivialFunction · 0.64
test_filter_visibilityFunction · 0.64
test_id_generator_mirrorFunction · 0.64
test_mapMethod · 0.64