Show entity.cpp syntax highlighted
/***************************************************************************
entity.cpp - description
-------------------
begin : Thu Nov 14 2002
copyright : (C) 2002 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 <entity.h>
namespace Entity {
namespace Message {
const int CREATE = 0;
const int FULL_UPDATE = 1;
const int DESTROY = 2;
int getNext() {
return 3;
}
}
namespace Destroy {
const int NO_REASON = 0;
const int PLAYER_REMOVE = 1;
const int REOCCUPY_NONE = 2;
const int REOCCUPY_TREE = 3;
const int REOCCUPY_TOWN = 4;
const int REOCCUPY_SWAMP = 5;
const int REOCCUPY_ROCK = 6;
const int REOCCUPY_QUAKE = 7;
const int REOCCUPY_MAX = 8;
int getNext() {
return 9;
}
}
namespace Create {
const int NO_REASON = 0;
const int PLAYER_START = 1;
const int PLAYER_REQUEST = 2;
int getNext() {
return 3;
}
}
}
See more files for this project here