summaryrefslogtreecommitdiff |
diff options
author | nsensfel <SpamShield0@noot-noot.org> | 2017-11-22 16:45:05 +0100 |
---|---|---|
committer | nsensfel <SpamShield0@noot-noot.org> | 2017-11-22 16:45:05 +0100 |
commit | 9dd67cd5c63ac2a050a517c313f2e343f008421b (patch) | |
tree | 44d774f751b82cb09996625c3eb2c9aaecb1330f /src/character_instance.erl | |
parent | 15515f36d7bbd53c7049c597ea2c6f942dc39ded (diff) |
Got the player turns to work... I think.
Diffstat (limited to 'src/character_instance.erl')
-rw-r--r-- | src/character_instance.erl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/character_instance.erl b/src/character_instance.erl index d8d7455..a38be5d 100644 --- a/src/character_instance.erl +++ b/src/character_instance.erl @@ -3,7 +3,8 @@ ( [ set_location/3, - get_location/1 + get_location/1, + get_owner/1 ] ). @@ -18,3 +19,5 @@ set_location (CharInst, X, Y) -> get_location (CharInst) -> {CharInst#character_instance.x, CharInst#character_instance.y}. + +get_owner (CharInst) -> CharInst#character_instance.team. |