Show entityclient.cpp syntax highlighted
/***************************************************************************
entityclient.cpp
-------------------
begin : Wed May 12 2004
copyright : (C) 2004 by Brendon Higgins
email : freepop-devel@lists.sourceforge.net
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#include <entityclient.h>
#include <worldclient.h>
#include <worldpos.h>
EntityClient::EntityClient(const Identity& ident): id(ident) {
}
EntityClient::~EntityClient() {
}
void EntityClient::predict(const WorldClient* w, unsigned int d) {
}
const Identity& EntityClient::getIdentity() const {
return id;
}
void EntityClient::onDestroy(WorldClient* w, int r) {
}
void EntityClient::onMessage(WorldClient* w, int m, CL_NetPacket& p) {
}
int EntityClient::drawSortIndex(const WorldClient* w) const {
if (w->getMap()->isValid(getPos())) {
return w->getMap()->findPos(getPos()).y;
} else {
return 0;
}
}
See more files for this project here