Remove entclass::clear(), simplify entclass initializations

Previously there was an entclass::clear(), and initialization of an
entclass was done by calling clear() in order to not duplicate code. But
now there's no need for an entclass::clear(), and it is in fact unused
(just call entityclass::removeentity() instead), so I'm removing this
function.
This commit is contained in:
Misa authored and Ethan Lee committed 2020-04-03 23:28:47 -04:00
1 parent ecf556dc55
commit 2cb90afbda
2 files changed
-8

No files matched your search

-6
View File
@@ -2,12 +2,6 @@
entclass::entclass()
{
clear();
}
void entclass::clear()
{
// Set all values to a default, required for creating a new entity
invis = false;
type = 0;
size = 0;
-2
View File
@@ -8,8 +8,6 @@ class entclass
public:
entclass();
void clear();
bool outside();
void setenemy(int t);