Show crops.h syntax highlighted
/***************************************************************************
crops.h - description
-------------------
begin : Sat Nov 16 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 CROPS_H_INCLUDED
#define CROPS_H_INCLUDED
/**
* Represents some crops in the world. Conatins common constants.
*/
namespace Crops {
/**
* Net messages.
*/
namespace Message {
/**
* Message type for crop state.
*/
extern const int STATE;
}
/**
* The state of a crop.
*/
namespace State {
/**
* The state of crops growing normally.
*/
extern const int NORMAL;
/**
* The crops are burning.
*/
extern const int BURNING;
/**
* The state of a burnt field. Charcoal remains.
*/
extern const int DEAD;
/**
* No town is around to irrigate us, so we decay into the earth.
* These crops will be removed from the world on next update.
*/
extern const int DECAYED;
}
/**
* Destruction reasons.
*/
namespace Destroy {
/**
* The land underneath us moved.
*/
extern const int DISPLACED;
/**
* All the nearby towns went away.
*/
extern const int LOST_TOWN;
}
}
#endif /* ndef CROPS_H_INCLUDED */
See more files for this project here