annotate src/parpg/components/change_map.py @ 87:b764229a0fad

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