Add IMateriaSource interface and an implementation
authorLukas Jiriste <ljiriste@student.42prague.com>
Fri, 25 Oct 2024 13:17:27 +0000 (15:17 +0200)
committerLukas Jiriste <ljiriste@student.42prague.com>
Fri, 25 Oct 2024 13:27:35 +0000 (15:27 +0200)
commit62abcf68da91f64c4e3d89be41db9d82ba9d63e7
tree4b44fbee4741cac92fecef298e6ef8014b8fb001
parent6a7b564ff7e40fcd8006ad70b18048dde19e7658
Add IMateriaSource interface and an implementation

I'm a little torn whether to provide the assignment operator.
The AMateria has const member which forbids any meaningful assignment,
the MateriaSource however does not have any such limitation.
I think the MateriaSource would not by able to be changed "in-game" and
making assignment not possible conveys this idea.
But the assignment could be useful for object reuse...
I left the assignment operator private, but provided implementation to
not make future laziness stand in the way of change.
ex03/IMateriaSource.h [new file with mode: 0644]
ex03/MateriaSource.cpp [new file with mode: 0644]
ex03/MateriaSource.h [new file with mode: 0644]