Click here to Skip to main content
15,892,005 members
Home / Discussions / Design and Architecture
   

Design and Architecture

 
AnswerRe: Virtualization To Make a Sandbox Pin
Gerry Schmitz18-Dec-16 7:07
mveGerry Schmitz18-Dec-16 7:07 
AnswerRe: Virtualization To Make a Sandbox Pin
Nathan Minier21-Dec-16 3:31
professionalNathan Minier21-Dec-16 3:31 
AnswerRe: Virtualization To Make a Sandbox Pin
jschell26-Dec-16 6:37
jschell26-Dec-16 6:37 
QuestionCalling class function vs function getting class variables Pin
hpjchobbes7-Dec-16 14:04
hpjchobbes7-Dec-16 14:04 
AnswerRe: Calling class function vs function getting class variables Pin
Mycroft Holmes7-Dec-16 16:58
professionalMycroft Holmes7-Dec-16 16:58 
GeneralRe: Calling class function vs function getting class variables Pin
hpjchobbes7-Dec-16 17:15
hpjchobbes7-Dec-16 17:15 
GeneralRe: Calling class function vs function getting class variables Pin
Mycroft Holmes8-Dec-16 11:52
professionalMycroft Holmes8-Dec-16 11:52 
AnswerRe: Calling class function vs function getting class variables Pin
Gerry Schmitz7-Dec-16 17:27
mveGerry Schmitz7-Dec-16 17:27 
Nobody gets it right the first time; design is an iterative process. A good designer is curious and tries to think of alternatives.

In your case, if you're in the habit of increasing or decreasing "everyone's" welfare by a certain % or fixed amount, you might consider adding a "static" % or amount to the Person class that is always used to affect the HungerLevel, but only if it has a value set by a game rule (in order words, it functions as a global weighing factor).
C#
static float ExtraPain {get;set;} = .1f;  // Default
..
float _hunger = 10f;
float HungerLevel { get { return _hunger * (1f + ExtraPain);}}

AnswerRe: Calling class function vs function getting class variables Pin
jschell26-Dec-16 6:49
jschell26-Dec-16 6:49 
QuestionDistribution of deliverables over the air. Pin
CodingLover28-Nov-16 22:51
CodingLover28-Nov-16 22:51 
AnswerRe: Distribution of deliverables over the air. Pin
Nathan Minier29-Nov-16 1:44
professionalNathan Minier29-Nov-16 1:44 
GeneralRe: Distribution of deliverables over the air. Pin
CodingLover29-Nov-16 15:32
CodingLover29-Nov-16 15:32 
AnswerRe: Distribution of deliverables over the air. Pin
Richard Deeming29-Nov-16 2:02
mveRichard Deeming29-Nov-16 2:02 
GeneralRe: Distribution of deliverables over the air. Pin
Mycroft Holmes29-Nov-16 13:18
professionalMycroft Holmes29-Nov-16 13:18 
GeneralRe: Distribution of deliverables over the air. Pin
CodingLover29-Nov-16 15:33
CodingLover29-Nov-16 15:33 
AnswerRe: Distribution of deliverables over the air. Pin
Daniel Pfeffer29-Nov-16 3:16
professionalDaniel Pfeffer29-Nov-16 3:16 
GeneralRe: Distribution of deliverables over the air. Pin
CodingLover29-Nov-16 15:40
CodingLover29-Nov-16 15:40 
GeneralRe: Distribution of deliverables over the air. Pin
Daniel Pfeffer29-Nov-16 20:57
professionalDaniel Pfeffer29-Nov-16 20:57 
NewsRe: Distribution of deliverables over the air. Pin
CodingLover2-Jan-17 15:27
CodingLover2-Jan-17 15:27 
AnswerRe: Distribution of deliverables over the air. Pin
Gerry Schmitz29-Nov-16 7:10
mveGerry Schmitz29-Nov-16 7:10 
GeneralRe: Distribution of deliverables over the air. Pin
CodingLover29-Nov-16 15:41
CodingLover29-Nov-16 15:41 
QuestionHow to design good architecture for web api project Pin
Tridip Bhattacharjee28-Nov-16 20:57
professionalTridip Bhattacharjee28-Nov-16 20:57 
AnswerRe: How to design good architecture for web api project Pin
Richard MacCutchan28-Nov-16 21:44
mveRichard MacCutchan28-Nov-16 21:44 
AnswerRe: How to design good architecture for web api project Pin
Gerry Schmitz29-Nov-16 6:10
mveGerry Schmitz29-Nov-16 6:10 
QuestionAnalyzing USB WEB CAM video using Ubuntu OS Pin
Vaclav_9-Nov-16 16:02
Vaclav_9-Nov-16 16:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.