home
·
contact
·
privacy
projects
/
plomrogue2-experiments
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor client's server interaction code.
[plomrogue2-experiments]
/
new2
/
plomrogue
/
tasks.py
diff --git
a/new2/plomrogue/tasks.py
b/new2/plomrogue/tasks.py
index 0fe68791d9ee779df2f6160a8f85bc0f2ade9dcf..bb78b98699a84ac507699074de4d45dd37237fbd 100644
(file)
--- a/
new2/plomrogue/tasks.py
+++ b/
new2/plomrogue/tasks.py
@@
-1,4
+1,4
@@
-from plomrogue.errors import
Game
Error
+from plomrogue.errors import
Play
Error
from plomrogue.mapping import YX
from plomrogue.mapping import YX
@@
-35,9
+35,9
@@
class Task_MOVE(Task):
def check(self):
test_pos = self.get_move_target()
if test_pos is None:
def check(self):
test_pos = self.get_move_target()
if test_pos is None:
- raise
Game
Error('would move out of map')
+ raise
Play
Error('would move out of map')
elif self.thing.game.map[test_pos] != '.':
elif self.thing.game.map[test_pos] != '.':
- raise
Game
Error('would move into illegal territory')
+ raise
Play
Error('would move into illegal territory')
def do(self):
self.thing.position = self.get_move_target()
def do(self):
self.thing.position = self.get_move_target()