Com.jplt.cobosoda.Model

From NYC Resistor Wiki
Jump to: navigation, search
Cobosoda

Contents

Sections
  1. Home
  2. Interfaces
    1. IPart
  3. Classes
    1. Model
    2. Joint
    3. Limb
    4. World
  4. Synth
  5. Task List

[ 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

  1. A name
    1. getName()
    2. setName(String s)
  2. A list of Joints
    1. getJoint(int index)
    2. add(Joint j)
    3. remove(Joint j)
    4. indexOf(Joint j)
  3. A list of Limbs
    1. getLimb(int index)
    2. add(Limb l)
    3. remove(Limb l)
    4. indexOf(Limb l)
  4. clone()
  5. elapseTime(int ms)
  6. addObserver(ModelObserver observer)