Com.jplt.cobosoda.Model
Appearance
Cobosoda | ||
---|---|---|
|
||
[ edit ] |
Introduction[edit]
Currently model contains both aspects of the game and the player. We need to decouple these so that only aspects of the player exist. We also want to make Model more extensible refactoring Joint, Spring and Muscle. A model shall contain the following
- A name
- getName()
- setName(String s)
- A list of Joints
- getJoint(int index)
- add(Joint j)
- remove(Joint j)
- indexOf(Joint j)
- A list of Limbs
- getLimb(int index)
- add(Limb l)
- remove(Limb l)
- indexOf(Limb l)
- clone()
- elapseTime(int ms)
- addObserver(ModelObserver observer)