Created
July 29, 2019 00:58
-
-
Save Aerodos12/8f0470150ff18bf988542d5ed0f638ad to your computer and use it in GitHub Desktop.
WaterBody
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
Bodies of water | |
Water Bodies are simple containers that has no location of their own (are vast and can host ships). | |
""" | |
from evennia import DefaultRoom | |
class WaterBody(DefaultRoom): | |
""" | |
Bodies of water (WaterBody) are Rooms in which act as a | |
massive naval map or a series of maps. | |
See examples/object.py for a list of | |
properties and methods available on all Objects. | |
""" | |
combat_size_x = 5 | |
combat_size_y = 5 | |
@property | |
def size(self): | |
return (self.combat_size_x + 1, self.combat_size_y + 1) | |
class Sea(WaterBody): | |
""" | |
A 16 by 16 WaterBody that is bigger than a lake, but smaller than an Ocean. | |
""" | |
combat_size_x = 16 | |
combat_size_y = 16 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment