deprected envNPC and envPlayer for a simpler, more universal class.