entityclientfactory.h from FreePop at Krugle
Show entityclientfactory.h syntax highlighted
/***************************************************************************
entityclientfactory.h
-------------------
begin : Tue Jun 1 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. *
* *
***************************************************************************/
#ifndef ENTITYCLIENTFACTORY_H_INCLUDED
#define ENTITYCLIENTFACTORY_H_INCLUDED
#include <entityfactory.h>
#include <ClanLib/signals.h>
class EntityClient;
class Identity;
class Rules;
class WorldClient;
class CL_NetObject_Client;
class CL_NetPacket;
/**
* Factory functions for EntityClient.
*/
namespace EntityClientFactory {
/**
* Build a new entity.
*/
EntityClient* build(WorldClient* w, CL_NetPacket &p, const Identity& id);
/**
* Get the number of stages in the loadSprites method callback.
*/
int getSpriteStages();
/**
* Load the sprites for all entities.
*/
void loadSprites(CL_Signal_v1<int>& callback, Rules* r);
/**
* Free the sprites of all entities.
*/
void freeSprites();
}
#endif /* ndef ENTITYCLIENTFACTORY_H_INCLUDED */
See more files for this project here