from dataclasses import dataclass
from antcolony.tools import create_id


@dataclass
class NestCreated(object):
    id: str
    x: int
    y: int


class Nest:

    def __init__(self, id, x, y):
        self.id = id
        self.posx, self.posy = x, y

    @staticmethod
    def create(x, y, id=create_id()):
        return Nest(id, x, y), [NestCreated(id, x, y)]

b7f893b0ce67348815405c5b3fb595c2274b54f9
<mask token>


class Nest:
    <mask token>
    <mask token>

<mask token>


class Nest:

    def __init__(self, id, x, y):
        self.id = id
        self.posx, self.posy = x, y

    @staticmethod
    def create(x, y, id=create_id()):
        return Nest(id, x, y), [NestCreated(id, x, y)]

<mask token>


@dataclass
class NestCreated(object):
    id: str
    x: int
    y: int


class Nest:

    def __init__(self, id, x, y):
        self.id = id
        self.posx, self.posy = x, y

    @staticmethod
    def create(x, y, id=create_id()):
        return Nest(id, x, y), [NestCreated(id, x, y)]

from dataclasses import dataclass
from antcolony.tools import create_id


@dataclass
class NestCreated(object):
    id: str
    x: int
    y: int


class Nest:

    def __init__(self, id, x, y):
        self.id = id
        self.posx, self.posy = x, y

    @staticmethod
    def create(x, y, id=create_id()):
        return Nest(id, x, y), [NestCreated(id, x, y)]
