MCPcopy Index your code
hub / github.com/battlecode/battlecode-2018 / is_robot

Method is_robot

battlecode-engine/src/unit.rs:137–147  ·  view source on GitHub ↗

Whether the unit type is a robot.

(self)

Source from the content-addressed store, hash-verified

135
136 /// Whether the unit type is a robot.
137 pub fn is_robot(self) -> bool {
138 match self {
139 Worker => true,
140 Knight => true,
141 Ranger => true,
142 Mage => true,
143 Healer => true,
144 Factory => false,
145 Rocket => false,
146 }
147 }
148
149 /// Whether the unit type is a structure.
150 pub fn is_structure(self) -> bool {

Callers 2

ok_if_robotMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected