/* * Places the user on the vessel or harbor, not on turbine. **/ public bool CheckOut(User.User user, String poss) { if (poss.ToLower().Equals("vessel")) { //on check out the user will be on the vessel user.SetPossition("vessel"); return(true); } else if (poss.ToLower().Equals("harbor")) { // on check out the user will be in the harbor user.SetPossition("harbor"); return(true); } else { // it's not possible to check out right now return(false); } }
/* * takes a user and alters their possition if possible, else return false. * */ public bool CheckIn(User.User user, String poss) { if (poss != null) { //Setting the current users location to the turbine which the user's been dropped off user.SetPossition(poss); return(true); } else { // was unable to set the users location to a turbine return(false); } }