/[enigma]/enigma/src/objects.cc
ViewVC logotype

Diff of /enigma/src/objects.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.52 by dheck, Sat Apr 26 07:32:41 2003 UTC revision 1.53 by dheck, Sat Apr 26 17:20:03 2003 UTC
# Line 342  namespace Line 342  namespace
342      class Bridge : public Floor {      class Bridge : public Floor {
343          CLONEOBJ(Bridge);          CLONEOBJ(Bridge);
344      public:      public:
345          Bridge();          Bridge(bool open=true);
346      private:      private:
347          enum State { OPEN, CLOSED, OPENING, CLOSING } state;          enum State { OPEN, CLOSED, OPENING, CLOSING } state;
348    
# Line 362  namespace Line 362  namespace
362      };      };
363  }  }
364    
365  Bridge::Bridge() : Floor("fl-bridge", 5, 1)  Bridge::Bridge(bool open) : Floor("fl-bridge", 5, 1)
366  {  {
367      set_attrib("type", "a");      set_attrib("type", "a");
368      state=OPEN;      state=open ? OPEN : CLOSED;
369  }  }
370    
371  void Bridge::message(const string &m, const Value &)  void Bridge::message(const string &m, const Value &)
# Line 3710  namespace Line 3710  namespace
3710  }  }
3711    
3712  CoinSlot::CoinSlot()  CoinSlot::CoinSlot()
3713      : OnOffStone("st-coinslot"), state(INACTIVE), remaining_time(0)  : OnOffStone("st-coinslot"), state(INACTIVE), remaining_time(0)
3714  {  {
3715      set_attrib("cost", 1.0);      set_attrib("cost", 1.0);
3716  }  }
# Line 4085  ObjectRepos::ObjectRepos() Line 4085  ObjectRepos::ObjectRepos()
4085      add_templ(new Abyss);      add_templ(new Abyss);
4086      add_templ(new Water);      add_templ(new Water);
4087      add_templ(new Bridge);      add_templ(new Bridge);
4088        add_templ("fl-bridge-open", new Bridge(true));
4089        add_templ("fl-bridge-closed", new Bridge(false));
4090    
4091      add_templ(new Gradient);      add_templ(new Gradient);
   
4092      add_templ("fl-gradient1", new Gradient(1));      add_templ("fl-gradient1", new Gradient(1));
4093      add_templ("fl-gradient2", new Gradient(2));      add_templ("fl-gradient2", new Gradient(2));
4094      add_templ("fl-gradient3", new Gradient(3));      add_templ("fl-gradient3", new Gradient(3));

Legend:
Removed from v.1.52  
changed lines
  Added in v.1.53

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26