Show tree.h syntax highlighted
/***************************************************************************
tree.h - description
-------------------
begin : Fri Nov 15 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. *
* *
***************************************************************************/
#ifndef TREE_H_INCLUDED
#define TREE_H_INCLUDED
/**
* Represents some tree in the world. Conatins common constants.
*/
namespace Tree {
/**
* Net messages.
*/
namespace Message {
/**
* Message type for strength of the tree.
*/
extern const int STRENGTH;
/**
* Message type for tree state.
*/
extern const int STATE;
}
/**
* The state of a tree.
*/
namespace State {
/**
* The state of a tree growing normally.
*/
extern const int NORMAL;
/**
* The state of a tree on fire.
*/
extern const int BURNING;
/**
* The state of a burnt shell.
*/
extern const int DEAD;
}
/**
* Destruction reasons.
*/
namespace Destroy {
/**
* The land underneath us moved.
*/
extern const int DISPLACED;
/**
* We decayed after burning somehow.
*/
extern const int DECAYED;
}
}
#endif /* TREE_H_INCLUDED */
See more files for this project here