def F(self, units): delta_pos = ut.pos_mul(self.delta_directions[self.facing[0]], units) self.current_pos = ut.pos_add(self.current_pos, delta_pos)
def N(self, units): delta_pos = ut.pos_mul(self.delta_directions['N'], units) self.way_point_pos = ut.pos_add(self.way_point_pos, delta_pos)
def W(self, units): delta_pos = ut.pos_mul(self.delta_directions['W'], units) self.current_pos = ut.pos_add(self.current_pos, delta_pos)