A Couple Handy Defines

  • Chime
  • Chime's Avatar Topic Author
  • Offline
  • Senior Boarder
  • Senior Boarder
More
2 weeks 1 day ago - 2 weeks 1 day ago #8204 by Chime
A Couple Handy Defines was created by Chime
Add to structs.h. They have come in pretty handy for formatting things!
#define HE_SHE(ch)           ((GET_SEX(ch) == SEX_MALE  ) ? "he"   :  \
									(  (GET_SEX(ch) == SEX_FEMALE) ? "she"  : "it" ) )
#define HIS_HER(ch)          ((GET_SEX(ch) == SEX_MALE  ) ? "his"  :  \
									(  (GET_SEX(ch) == SEX_FEMALE) ? "her"  : "its" ) )
#define HIM_HER(ch)          ((GET_SEX(ch) == SEX_MALE  ) ? "him"  :  \
									(  (GET_SEX(ch) == SEX_FEMALE) ? "her"  : "it" ) )
#define MAL_FEM(ch)          ((GET_SEX(ch) == SEX_MALE  ) ? "male"  :  \
									(  (GET_SEX(ch) == SEX_FEMALE) ? "female"  : "something
#define IS_VOWEL(c)             (c == 'A' || c == 'a' ||                     \
				 c == 'E' || c == 'e' ||                     \
				 c == 'I' || c == 'i' ||                     \
				 c == 'O' || c == 'o' ||                     \
				 c == 'U' || c == 'u'      )
Last edit: 2 weeks 1 day ago by Chime.
The following user(s) said Thank You: rudeboyrave

Please Log in or Create an account to join the conversation.

More
3 days 14 hours ago #8212 by rudeboyrave
Replied by rudeboyrave on topic A Couple Handy Defines
what do you do with the vowel one? just curious.

CyberASSAULT
www.cyberassault.org
cyberassault.org 11111
A post-apocalyptic, sci-fi MUD.

Please Log in or Create an account to join the conversation.

Time to create page: 0.965 seconds