src/player_type.h
changeset 9645 aee985cc98b5
parent 8263 2b3e64c5e680
child 9709 fc8c47cbfcf2
equal deleted inserted replaced
9644:6487c9233888 9645:aee985cc98b5
    28 	PLAYER_NEW_COMPANY     = 254, ///< The client wants a new company
    28 	PLAYER_NEW_COMPANY     = 254, ///< The client wants a new company
    29 	PLAYER_SPECTATOR       = 255, ///< The client is spectating
    29 	PLAYER_SPECTATOR       = 255, ///< The client is spectating
    30 };
    30 };
    31 DECLARE_POSTFIX_INCREMENT(Owner);
    31 DECLARE_POSTFIX_INCREMENT(Owner);
    32 
    32 
       
    33 enum {
       
    34 	MAX_LENGTH_PRESIDENT_NAME = 31, ///< The maximum length for a president's name
       
    35 	MAX_LENGTH_COMPANY_NAME   = 31, ///< The maximum length for a company's name
       
    36 };
       
    37 
    33 /** Define basic enum properties */
    38 /** Define basic enum properties */
    34 template <> struct EnumPropsT<Owner> : MakeEnumPropsT<Owner, byte, OWNER_BEGIN, OWNER_END, INVALID_OWNER> {};
    39 template <> struct EnumPropsT<Owner> : MakeEnumPropsT<Owner, byte, OWNER_BEGIN, OWNER_END, INVALID_OWNER> {};
    35 typedef TinyEnumT<Owner> OwnerByte;
    40 typedef TinyEnumT<Owner> OwnerByte;
    36 
    41 
    37 typedef Owner PlayerID;
    42 typedef Owner PlayerID;