Mercurial > hg > Members > nobuyasu > Alice > DPPAlice
changeset 27:52e9b33f8a99 draft unuse ForkStateTakeCodeSegment version
tag
author | one |
---|---|
date | Tue, 11 Dec 2012 16:28:32 +0900 |
parents | 80023cb92594 |
children | e8ec5f7f43c0 |
files | src/alice/test/dpp/codesegment/philosophy/TakeRightForkCodeSegment.java |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/alice/test/dpp/codesegment/philosophy/TakeRightForkCodeSegment.java Tue Dec 11 16:07:41 2012 +0900 +++ b/src/alice/test/dpp/codesegment/philosophy/TakeRightForkCodeSegment.java Tue Dec 11 16:28:32 2012 +0900 @@ -3,6 +3,7 @@ import alice.codesegment.CodeSegment; import alice.datasegment.CommandType; import alice.datasegment.Receiver; +import alice.test.dpp.codesegment.fork.ForkStateTakeCodeSegment; import alice.test.dpp.datasegment.Fork; import alice.test.dpp.datasegment.Philosophy; @@ -20,6 +21,8 @@ public void run() { Philosophy phil = arg1.asClass(Philosophy.class); Fork fork = arg2.asClass(Fork.class); + new ForkStateTakeCodeSegment(phil.getName(), fork.getForkName()); + if (fork.takeFork(phil.getName())) { phil.setState(Philosophy.State.TAKELEFTFORK); new TakeLeftForkCodeSegment(phil.getName(), phil.getLeftFork());