A cognitive account of situated communication