mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
Remove default function args from createentity()
I have spelled out each overloaded version instead, and only the overloads that are actually used - which just happens to be everything except the 8-argument one. I don't want to deal with callers right now (there are too many of them), so I'm not going to change the names that the callers use, nor do I want to change the amount of arguments any existing callers use right now - but we will have to deal with them in one way or another when we move to C.
This commit is contained in:
parent
7d223db211
commit
9ba30caeb3
2 changed files with 35 additions and 3 deletions
|
@ -1202,7 +1202,7 @@ int entityclass::crewcolour( int t )
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void entityclass::createentity(int xp, int yp, int t, int vx /*= 0*/, int vy /*= 0*/, int p1 /*= 0*/, int p2 /*= 0*/, int p3 /*= 320*/, int p4 /*= 240 */)
|
void entityclass::createentity(int xp, int yp, int t, int vx, int vy, int p1, int p2, int p3, int p4)
|
||||||
{
|
{
|
||||||
k = entities.size();
|
k = entities.size();
|
||||||
|
|
||||||
|
@ -2120,6 +2120,31 @@ void entityclass::createentity(int xp, int yp, int t, int vx /*= 0*/, int vy /*=
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void entityclass::createentity(int xp, int yp, int t, int vx, int vy, int p1, int p2)
|
||||||
|
{
|
||||||
|
createentity(xp, yp, t, vx, vy, p1, p2, 320, 240);
|
||||||
|
}
|
||||||
|
|
||||||
|
void entityclass::createentity(int xp, int yp, int t, int vx, int vy, int p1)
|
||||||
|
{
|
||||||
|
createentity(xp, yp, t, vx, vy, p1, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
void entityclass::createentity(int xp, int yp, int t, int vx, int vy)
|
||||||
|
{
|
||||||
|
createentity(xp, yp, t, vx, vy, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
void entityclass::createentity(int xp, int yp, int t, int vx)
|
||||||
|
{
|
||||||
|
createentity(xp, yp, t, vx, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
void entityclass::createentity(int xp, int yp, int t)
|
||||||
|
{
|
||||||
|
createentity(xp, yp, t, 0);
|
||||||
|
}
|
||||||
|
|
||||||
//Returns true if entity is removed
|
//Returns true if entity is removed
|
||||||
bool entityclass::updateentities( int i )
|
bool entityclass::updateentities( int i )
|
||||||
{
|
{
|
||||||
|
|
|
@ -74,8 +74,15 @@ public:
|
||||||
|
|
||||||
int crewcolour(int t);
|
int crewcolour(int t);
|
||||||
|
|
||||||
void createentity(int xp, int yp, int t, int vx = 0, int vy = 0,
|
void createentity(int xp, int yp, int t, int vx, int vy,
|
||||||
int p1 = 0, int p2 = 0, int p3 = 320, int p4 = 240);
|
int p1, int p2, int p3, int p4);
|
||||||
|
void createentity(int xp, int yp, int t, int vx, int vy,
|
||||||
|
int p1, int p2);
|
||||||
|
void createentity(int xp, int yp, int t, int vx, int vy,
|
||||||
|
int p1);
|
||||||
|
void createentity(int xp, int yp, int t, int vx, int vy);
|
||||||
|
void createentity(int xp, int yp, int t, int vx);
|
||||||
|
void createentity(int xp, int yp, int t);
|
||||||
|
|
||||||
bool updateentities(int i);
|
bool updateentities(int i);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue