Click here to Skip to main content
12,070,942 members (66,913 online)

Design and Architecture

 
GeneralRe: Advice - WCF/MSMQ or Async TCP Pin
Ger Hayden30-Aug-14 0:32
memberGer Hayden30-Aug-14 0:32 
GeneralRe: Advice - WCF/MSMQ or Async TCP Pin
Ger Hayden9-Nov-14 3:41
memberGer Hayden9-Nov-14 3:41 
Questionrich text editor Pin
Danielos_s2330-Jan-13 11:03
memberDanielos_s2330-Jan-13 11:03 
AnswerRe: rich text editor Pin
José Amílcar Ferreira Casimiro11-Feb-13 6:37
memberJosé Amílcar Ferreira Casimiro11-Feb-13 6:37 
QuestionMVVM, EF and TDD tutorials Pin
cansino17-Jan-13 7:06
membercansino17-Jan-13 7:06 
QuestionJava and C# operating on the same data in an ASP-based monitoring web application. Pin
vValkir17-Jan-13 1:18
membervValkir17-Jan-13 1:18 
AnswerRe: Java and C# operating on the same data in an ASP-based monitoring web application. Pin
Jonathan C Dickinson17-Jan-13 4:05
memberJonathan C Dickinson17-Jan-13 4:05 
Questionindesign cs6 trial - no toolbar Pin
Member 93448236-Jan-13 13:10
memberMember 93448236-Jan-13 13:10 
AnswerRe: indesign cs6 trial - no toolbar Pin
Pete O'Hanlon17-Jan-13 1:49
protectorPete O'Hanlon17-Jan-13 1:49 
QuestionHow do you design this? : with a better example Pin
VuNic30-Dec-12 18:57
memberVuNic30-Dec-12 18:57 
AnswerRe: How do you design this? : with a better example Pin
Christian Graus30-Dec-12 19:25
mvpChristian Graus30-Dec-12 19:25 
GeneralRe: How do you design this? : with a better example Pin
VuNic30-Dec-12 19:42
memberVuNic30-Dec-12 19:42 
GeneralRe: How do you design this? : with a better example Pin
Christian Graus30-Dec-12 19:46
mvpChristian Graus30-Dec-12 19:46 
AnswerRe: How do you design this? : with a better example Pin
jschell31-Dec-12 10:10
memberjschell31-Dec-12 10:10 
VuNic wrote:
I have a set of ammunition. Anti-aircraft guns, fire shells, Launch missiles,
etc etc. but all these are "mutually exclusive".
 
If I would like to
mount the ship with Anti-aircraft guns, all other ammo go unusable. I can
dynamically swap between available ammo.


Those are contradictory.

I suspect that last one is what you actually want.

So you have
1. Collection of ammunitions types
2. A pointer that specifies the active type.

1 can be implemented either as multiple classes or a single class with an attribute that specifies type.

The ship, at any time, can have a collection that has zero or more types available. However it might also be convenient to fix the collection size and just let the ammunication counts go to zero to indicate 'none'. Or have a flag that indicates something like 'not yet available'. The later allows it to collected but not usable until some game action occurs.
AnswerRe: How do you design this? : with a better example Pin
Eddy Vluggen31-Dec-12 18:04
memberEddy Vluggen31-Dec-12 18:04 
AnswerRe: How do you design this? : with a better example Pin
Keld Ølykke16-Jan-13 12:23
memberKeld Ølykke16-Jan-13 12:23 
QuestionHow to find the similarity between users in Twitter ? How to design a good and efficient idea? Pin
ldaneil27-Dec-12 8:26
memberldaneil27-Dec-12 8:26 
AnswerRe: How to find the similarity between users in Twitter ? How to design a good and efficient idea? Pin
Pete O'Hanlon27-Dec-12 8:39
protectorPete O'Hanlon27-Dec-12 8:39 
GeneralRe: How to find the similarity between users in Twitter ? How to design a good and efficient idea? Pin
ldaneil27-Dec-12 8:50
memberldaneil27-Dec-12 8:50 
AnswerRe: How to find the similarity between users in Twitter ? How to design a good and efficient idea? Pin
jschell27-Dec-12 10:21
memberjschell27-Dec-12 10:21 
GeneralRe: How to find the similarity between users in Twitter ? How to design a good and efficient idea? Pin
ldaneil28-Dec-12 9:31
memberldaneil28-Dec-12 9:31 
AnswerRe: How to find the similarity between users in Twitter ? How to design a good and efficient idea? Pin
April Fans27-Dec-12 16:43
memberApril Fans27-Dec-12 16:43 
GeneralRe: How to find the similarity between users in Twitter ? How to design a good and efficient idea? Pin
ldaneil28-Dec-12 9:36
memberldaneil28-Dec-12 9:36 
GeneralRe: How to find the similarity between users in Twitter ? How to design a good and efficient idea? Pin
April Fans3-Jan-13 17:46
memberApril Fans3-Jan-13 17:46 
AnswerRe: How to find the similarity between users in Twitter ? How to design a good and efficient idea? Pin
Marc Koutzarov30-Aug-14 0:54
professionalMarc Koutzarov30-Aug-14 0:54 
QuestionClient - Server approach Pin
bugal21-Dec-12 1:33
memberbugal21-Dec-12 1:33 
AnswerRe: Client - Server approach Pin
jschell22-Dec-12 15:11
memberjschell22-Dec-12 15:11 
QuestionHow do you design this ? Pin
VuNic18-Dec-12 3:33
memberVuNic18-Dec-12 3:33 
AnswerRe: How do you design this ? Pin
Pete O'Hanlon18-Dec-12 3:47
protectorPete O'Hanlon18-Dec-12 3:47 
GeneralRe: How do you design this ? Pin
VuNic18-Dec-12 3:54
memberVuNic18-Dec-12 3:54 
GeneralRe: How do you design this ? Pin
Pete O'Hanlon18-Dec-12 4:02
protectorPete O'Hanlon18-Dec-12 4:02 
GeneralRe: How do you design this ? Pin
Lampridis Vasilis30-Dec-12 1:04
memberLampridis Vasilis30-Dec-12 1:04 
GeneralRe: How do you design this ? Pin
VuNic30-Dec-12 19:00
memberVuNic30-Dec-12 19:00 
AnswerRe: How do you design this ? Pin
jschell18-Dec-12 9:14
memberjschell18-Dec-12 9:14 
GeneralPlease hold on Pin
VuNic18-Dec-12 19:59
memberVuNic18-Dec-12 19:59 
GeneralRe: How do you design this ? Pin
VuNic30-Dec-12 18:59
memberVuNic30-Dec-12 18:59 
GeneralRe: How do you design this ? Pin
jschell31-Dec-12 10:12
memberjschell31-Dec-12 10:12 
Questionportability/deployment Pin
Member 838594911-Dec-12 5:39
memberMember 838594911-Dec-12 5:39 
AnswerRe: portability/deployment Pin
jschell11-Dec-12 11:07
memberjschell11-Dec-12 11:07 
AnswerRe: portability/deployment Pin
Mycroft Holmes16-Dec-12 12:59
memberMycroft Holmes16-Dec-12 12:59 
GeneralRe: portability/deployment Pin
jschell17-Dec-12 9:40
memberjschell17-Dec-12 9:40 
Question.NET vs WINRT on Windows 8 Pin
devvvy9-Dec-12 16:13
memberdevvvy9-Dec-12 16:13 
AnswerRe: .NET vs WINRT on Windows 8 Pin
Richard MacCutchan9-Dec-12 23:12
mvpRichard MacCutchan9-Dec-12 23:12 
GeneralRe: .NET vs WINRT on Windows 8 Pin
devvvy10-Dec-12 3:52
memberdevvvy10-Dec-12 3:52 
AnswerRe: .NET vs WINRT on Windows 8 Pin
Eddy Vluggen9-Dec-12 23:42
memberEddy Vluggen9-Dec-12 23:42 
GeneralRe: .NET vs WINRT on Windows 8 Pin
devvvy10-Dec-12 3:53
memberdevvvy10-Dec-12 3:53 
GeneralRe: .NET vs WINRT on Windows 8 Pin
Eddy Vluggen10-Dec-12 4:05
memberEddy Vluggen10-Dec-12 4:05 
GeneralRe: .NET vs WINRT on Windows 8 Pin
devvvy10-Dec-12 4:08
memberdevvvy10-Dec-12 4:08 
GeneralRe: .NET vs WINRT on Windows 8 Pin
Eddy Vluggen10-Dec-12 4:11
memberEddy Vluggen10-Dec-12 4:11 
AnswerRe: .NET vs WINRT on Windows 8 Pin
Robb Ryniak10-Dec-12 3:14
memberRobb Ryniak10-Dec-12 3:14 

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.


Advertise | Privacy | Mobile
Web04 | 2.8.160208.1 | Last Updated 10 Feb 2016
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid