def build(self, target, piece_type, target_coast=None): """ """ return models.Command(target=target, target_coast=target_coast, piece_type=piece_type, order=self.order, type=CommandType.BUILD)
def hold(self, piece, source): """ """ return models.Command( source=source, piece=piece, order=self.order, type=CommandType.HOLD, )
def convoy(self, piece, source, target, aux): """ """ return models.Command( piece=piece, source=source, target=target, aux=aux, order=self.order, type=CommandType.CONVOY, )
def support(self, piece, source, aux, target): """ """ return models.Command( piece=piece, source=source, target=target, aux=aux, order=self.order, type=CommandType.SUPPORT, )
def move(self, piece, source, target, target_coast=None): """ Helper to create a move command. """ return models.Command( piece=piece, source=source, target=target, order=self.order, target_coast=target_coast, type=CommandType.MOVE, )