mirror of
https://github.com/AquariaOSE/Aquaria.git
synced 2025-08-09 23:59:51 +00:00
clean out some dead code and some old commented out code
This commit is contained in:
parent
b6ae2a6baa
commit
9eb5b9828a
9 changed files with 24 additions and 2099 deletions
|
@ -551,39 +551,6 @@ void Entity::flipToTarget(Vector pos)
|
|||
}
|
||||
}
|
||||
|
||||
bool Entity::isCollideAgainst(Entity *e)
|
||||
{
|
||||
if (this == e) return false;
|
||||
if (getEntityType()==ET_PET || getEntityType()==ET_AVATAR || getEntityType() == ET_NEUTRAL)
|
||||
{
|
||||
if (e->getEntityType()==ET_ENEMY || e->getEntityType()==ET_NEUTRAL)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
}
|
||||
if (getEntityType() == ET_ENEMY)
|
||||
{
|
||||
if (e->getEntityType()==ET_PET || e->getEntityType()==ET_AVATAR || e->getEntityType()==ET_NEUTRAL)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool Entity::isOpposedTo(Entity *e)
|
||||
{
|
||||
if (getEntityType()==ET_PET || getEntityType()==ET_AVATAR || getEntityType() == ET_NEUTRAL)
|
||||
{
|
||||
if (e->getEntityType()==ET_ENEMY || e->getEntityType()==ET_NEUTRAL)
|
||||
return true;
|
||||
}
|
||||
if (getEntityType() == ET_ENEMY)
|
||||
{
|
||||
if (e->getEntityType()==ET_PET || e->getEntityType()==ET_AVATAR)
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
Entity* Entity::getTargetEntity(int t)
|
||||
{
|
||||
return targets[t];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue