marker.py 566 Bytes
Newer Older
Ahmad Reza Cheraghi's avatar
Ahmad Reza Cheraghi committed
1
"""The marker module provides the interface to the markers. A marker is any point on
Ahmad Reza's avatar
Ahmad Reza committed
2
 the coordinate system of the simulators world"""
Ahmad Reza Cheraghi's avatar
Ahmad Reza Cheraghi committed
3
from lib import matter
4
from lib.swarm_sim_header import *
Ahmad Reza Cheraghi's avatar
Ahmad Reza Cheraghi committed
5
6


Ahmad Reza Cheraghi's avatar
Ahmad Reza Cheraghi committed
7
class Marker(matter.Matter):
Ahmad Reza Cheraghi's avatar
Ahmad Reza Cheraghi committed
8
    """In the classe marker all the methods for the characterstic of a marker is included"""
Karol Actun's avatar
Karol Actun committed
9
    def __init__(self, world, coordinates, color=black, transparency=1):
Ahmad Reza Cheraghi's avatar
Ahmad Reza Cheraghi committed
10
        """Initializing the marker constructor"""
Karol Actun's avatar
Karol Actun committed
11
        super().__init__( world, coordinates, color, transparency, type="marker", mm_size=world.config_data.marker_mm_size)
Ahmad Reza Cheraghi's avatar
Ahmad Reza Cheraghi committed
12
13