Click here to Skip to main content
13,559,658 members

Design and Architecture

 
AnswerRe: Java and C# operating on the same data in an ASP-based monitoring web application. Pin
Jonathan C Dickinson17-Jan-13 3:05
memberJonathan C Dickinson17-Jan-13 3:05 
Questionindesign cs6 trial - no toolbar Pin
Member 93448236-Jan-13 12:10
memberMember 93448236-Jan-13 12:10 
AnswerRe: indesign cs6 trial - no toolbar Pin
Pete O'Hanlon17-Jan-13 0:49
protectorPete O'Hanlon17-Jan-13 0:49 
QuestionHow do you design this? : with a better example Pin
VuNic30-Dec-12 17:57
memberVuNic30-Dec-12 17:57 
AnswerRe: How do you design this? : with a better example Pin
Christian Graus30-Dec-12 18:25
mvpChristian Graus30-Dec-12 18:25 
GeneralRe: How do you design this? : with a better example Pin
VuNic30-Dec-12 18:42
memberVuNic30-Dec-12 18:42 
GeneralRe: How do you design this? : with a better example Pin
Christian Graus30-Dec-12 18:46
mvpChristian Graus30-Dec-12 18:46 
AnswerRe: How do you design this? : with a better example Pin
jschell31-Dec-12 9:10
memberjschell31-Dec-12 9: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 17:04
memberEddy Vluggen31-Dec-12 17:04 
AnswerRe: How do you design this? : with a better example Pin
Keld Ølykke16-Jan-13 11:23
memberKeld Ølykke16-Jan-13 11:23 
QuestionHow to find the similarity between users in Twitter ? How to design a good and efficient idea? Pin
ldaneil27-Dec-12 7:26
memberldaneil27-Dec-12 7: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 7:39
protectorPete O'Hanlon27-Dec-12 7:39 
GeneralRe: How to find the similarity between users in Twitter ? How to design a good and efficient idea? Pin
ldaneil27-Dec-12 7:50
memberldaneil27-Dec-12 7:50 
AnswerRe: How to find the similarity between users in Twitter ? How to design a good and efficient idea? Pin
jschell27-Dec-12 9:21
memberjschell27-Dec-12 9:21 
GeneralRe: How to find the similarity between users in Twitter ? How to design a good and efficient idea? Pin
ldaneil28-Dec-12 8:31
memberldaneil28-Dec-12 8:31 
AnswerRe: How to find the similarity between users in Twitter ? How to design a good and efficient idea? Pin
April Fans27-Dec-12 15:43
memberApril Fans27-Dec-12 15:43 
GeneralRe: How to find the similarity between users in Twitter ? How to design a good and efficient idea? Pin
ldaneil28-Dec-12 8:36
memberldaneil28-Dec-12 8:36 
GeneralRe: How to find the similarity between users in Twitter ? How to design a good and efficient idea? Pin
April Fans3-Jan-13 16:46
memberApril Fans3-Jan-13 16:46 
AnswerRe: How to find the similarity between users in Twitter ? How to design a good and efficient idea? Pin
Marc Koutzarov29-Aug-14 23:54
professionalMarc Koutzarov29-Aug-14 23:54 
QuestionMessage Closed Pin
23-Dec-12 18:46
memberasddderer4523-Dec-12 18:46 
QuestionClient - Server approach Pin
bugal21-Dec-12 0:33
memberbugal21-Dec-12 0:33 
AnswerRe: Client - Server approach Pin
jschell22-Dec-12 14:11
memberjschell22-Dec-12 14:11 
QuestionHow do you design this ? Pin
VuNic18-Dec-12 2:33
memberVuNic18-Dec-12 2:33 
AnswerRe: How do you design this ? Pin
Pete O'Hanlon18-Dec-12 2:47
protectorPete O'Hanlon18-Dec-12 2:47 
GeneralRe: How do you design this ? Pin
VuNic18-Dec-12 2:54
memberVuNic18-Dec-12 2:54 

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 | Cookies | Terms of Service
Web03 | 2.8.180527.1 | Last Updated 19 May 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved.
Layout: fixed | fluid