Micropolis
position.cpp File Reference

Defines the Position class for coordinate handling in Micropolis. More...

#include "micropolis.h"

Go to the source code of this file.

Detailed Description

Defines the Position class for coordinate handling in Micropolis.

This file provides the implementation of the Position class, which is used throughout the Micropolis game engine for managing x and y coordinates. It includes various constructors for different scenarios, a copy constructor, an assignment operator, and a method for moving the position in a specified direction.

Definition in file position.cpp.