GMU:Principia Textilica/Felicitas Höbelt: Difference between revisions

From Medien Wiki
Line 71: Line 71:
!responsible for
!responsible for
|-
|-
|
| - parameters (id, color, speed, position, direction...)
|- parameters (id, color, speed, position, direction...)
|-
|-
|
| - updating the state (position, direction)
|- updating the state (position, direction)
|-
|-
|
| - drawing (body, connections to other fish, traces for the traces-visible-mode)
|- drawing (body, connections to other fish, traces for the traces-visible-mode)
|-
|-
|
| - computing new direction regarding tank borders and neighboring (visible) fish
|- computing new direction regarding tank borders and neighboring (visible) fish
|-
|-
|
| - contribute to log file
|- contribute to log file
|-
|-
|
| - updating and saving images (traces and frequency)
|- updating and saving images (traces and frequency)
|-
|-
|
| - drawing the tank
|- drawing the tank
|-
|-
|
| - keeping track of all elements (fish, tank, variables for drawing modes)
|- keeping track of all elements (fish, tank, variables for drawing modes)
|-
|-
|
| - initial setup
|- initial setup
|-
|-
|
| - drawing, includes animation and timing
|- drawing, includes animation and timing
|-
|-
|
| - receiving key presses (for saving or pausing)
|- receiving key presses (for saving or pausing)
|-
|-
|
| - log file (.txt)
|- log file (.txt)
|-
|-
|
| - vector operations (e.g. normalizing, computing the scalar product, turning, computing a reflection vector)
|- vector operations (e.g. normalizing, computing the scalar product, turning, computing a reflection vector)
|}
|}