You are writing a game's weapon-spawning system. The weapon that's spawned is completely randomized. There are a few base types of weapons, but some of these have one or more additional functions. The additional functions can apply to any of the types of weapons. Which design pattern is the most useful here?   Question options:   Adapter   Null Object   Decorator   Proxy

EBK JAVA PROGRAMMING
9th Edition
ISBN:9781337671385
Author:FARRELL
Publisher:FARRELL
Chapter14: Introduction To Swing Components
Section: Chapter Questions
Problem 18RQ
icon
Related questions
Question

6. 

You are writing a game's weapon-spawning system. The weapon that's spawned is completely randomized. There are a few base types of weapons, but some of these have one or more additional functions. The additional functions can apply to any of the types of weapons. Which design pattern is the most useful here?

 

Question options:

 

Adapter

 

Null Object

 

Decorator

 

Proxy

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Introduction to Interface
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
EBK JAVA PROGRAMMING
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT