Guest User

Untitled

a guest
Dec 10th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. void do_work_a_depot_command(Model& model,int id1,int id2){
  2. Person *p = model.get_Person_ptr(id1);
  3. Oxygen_Depot *o = model.get_Oxygen_Depot_ptr(id2);
  4. bool null=!(o!=0 && p!=0);
  5. if(p->get_state()!='x' && !null){
  6. p->start_supplying(o);
  7. }else if(!null){
  8. std::cout << "I can't move, I'm dead.n";
  9. }
  10.  
  11. return;
Add Comment
Please, Sign In to add comment