marker.py 530 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
Ahmad Reza's avatar
Ahmad Reza committed
4
from lib.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"""
Ahmad Reza's avatar
Ahmad Reza committed
9
    def __init__(self, world, x, y, color=black, alpha=1):
Ahmad Reza Cheraghi's avatar
Ahmad Reza Cheraghi committed
10
        """Initializing the marker constructor"""
Ahmad Reza's avatar
Ahmad Reza committed
11
        super().__init__( world, (x, y), color, alpha, type="marker", mm_size=world.config_data.marker_mm_size)
Ahmad Reza Cheraghi's avatar
Ahmad Reza Cheraghi committed
12
13