CmdrZin
26may09
rev:

Launching server and client.  

Plan 5

On to Exercise 4: the NPCs
Read through Exercise 4 first.
Copy Cow changes from (not the entire file)
    \7400_darkstar\darkstar\solutions\exercise4\com\sun\sgs\darkmud\follow\Cow.java
to project Source Package file
    com\sun\sgs\darkmud\follow\Cow.java
hmm..MRef /MObj bug again..
Change Cow.java
    class DoTask
        run()
//  cow.get(Cow.class).doSomething();
    Cow c = (Cow)cow.get();
    c.doSomething();
seems happy now..copy over the Duckling changes from
    \7400_darkstar\darkstar\solutions\exercise4\com\sun\sgs\darkmud\follow\Duckling.java
to project Source Package file
    com\sun\sgs\darkmud\follow\Duckling.java
almost..both run() methods of the tasks need to be fixed.
Change Duckling.java
    class ArriveTask
        run()
//  duckling.get(Duckling.class).sayHello();
    Duckling d = (Duckling)duckling.get();
    d.sayHello();
    class ArriveTask
        run()
//  duckling.get(Duckling.class).follow(direction);
    Duckling d = (Duckling)duckling.get();
    d.follow(direction);
so far so good..adding the cow and duckling per Step 3 items b, c, and d. after item.lamp entries
server comes up..no errors..client up.."look" shows cow and duck in room, but actions.
Go west...duck doesn't follow..hmm..cow stays put also..
DOH..didn't copy new jar file over to tutorial..try again.
woo hoo..cow action now..and duck follows when I go west..go back east and duck follows.
cow has left the room..cow went into south rooms..all seems to be working..duck even  follows cow.
I declare Plan 5 a success..