In real-time strategy games like StarCraft, a maphack refers to a type of cheat or hack that reveals the entire map, showing the player the positions of all units, structures, and resources, regardless of their line of sight. This gives a significant advantage over opponents who do not have access to this information, essentially allowing the user to see everything happening on the map at all times.