annotate components/change_map.py @ 60:e2004c9549d7

Added ChangeMap component.
author KarstenBock@gmx.net
date Sun, 18 Sep 2011 16:07:07 +0200
parents
children e856b604b650
rev   line source
60
e2004c9549d7 Added ChangeMap component.
KarstenBock@gmx.net
parents:
diff changeset
1 # This program is free software: you can redistribute it and/or modify
e2004c9549d7 Added ChangeMap component.
KarstenBock@gmx.net
parents:
diff changeset
2 # it under the terms of the GNU General Public License as published by
e2004c9549d7 Added ChangeMap component.
KarstenBock@gmx.net
parents:
diff changeset
3 # the Free Software Foundation, either version 3 of the License, or
e2004c9549d7 Added ChangeMap component.
KarstenBock@gmx.net
parents:
diff changeset
4 # (at your option) any later version.
e2004c9549d7 Added ChangeMap component.
KarstenBock@gmx.net
parents:
diff changeset
5 #
e2004c9549d7 Added ChangeMap component.
KarstenBock@gmx.net
parents:
diff changeset
6 # This program is distributed in the hope that it will be useful,
e2004c9549d7 Added ChangeMap component.
KarstenBock@gmx.net
parents:
diff changeset
7 # but WITHOUT ANY WARRANTY; without even the implied warranty of
e2004c9549d7 Added ChangeMap component.
KarstenBock@gmx.net
parents:
diff changeset
8 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
e2004c9549d7 Added ChangeMap component.
KarstenBock@gmx.net
parents:
diff changeset
9 # GNU General Public License for more details.
e2004c9549d7 Added ChangeMap component.
KarstenBock@gmx.net
parents:
diff changeset
10 #
e2004c9549d7 Added ChangeMap component.
KarstenBock@gmx.net
parents:
diff changeset
11 # You should have received a copy of the GNU General Public License
e2004c9549d7 Added ChangeMap component.
KarstenBock@gmx.net
parents:
diff changeset
12 # along with this program. If not, see <http://www.gnu.org/licenses/>.
e2004c9549d7 Added ChangeMap component.
KarstenBock@gmx.net
parents:
diff changeset
13
e2004c9549d7 Added ChangeMap component.
KarstenBock@gmx.net
parents:
diff changeset
14 from bGrease.component import Component
e2004c9549d7 Added ChangeMap component.
KarstenBock@gmx.net
parents:
diff changeset
15 from bGrease.geometry import Vec2d
e2004c9549d7 Added ChangeMap component.
KarstenBock@gmx.net
parents:
diff changeset
16
e2004c9549d7 Added ChangeMap component.
KarstenBock@gmx.net
parents:
diff changeset
17 class ChangeMap(Component):
e2004c9549d7 Added ChangeMap component.
KarstenBock@gmx.net
parents:
diff changeset
18 """Component that allows an entity to be contained by Container entity."""
e2004c9549d7 Added ChangeMap component.
KarstenBock@gmx.net
parents:
diff changeset
19
e2004c9549d7 Added ChangeMap component.
KarstenBock@gmx.net
parents:
diff changeset
20 def __init__(self):
e2004c9549d7 Added ChangeMap component.
KarstenBock@gmx.net
parents:
diff changeset
21 """Constructor"""
e2004c9549d7 Added ChangeMap component.
KarstenBock@gmx.net
parents:
diff changeset
22 Component.__init__(self, target_map=str, target_position=list)