91
edits
(→Algorithm: table fixed) |
|||
Line 67: | Line 67: | ||
== Algorithm == | == Algorithm == | ||
{| | {|class="wikitable" | ||
!Class | !Class | ||
!responsible for | !responsible for | ||
|- | |- | ||
| rowspan="5"|class Fish | |||
| - parameters (id, color, speed, position, direction...) | | - parameters (id, color, speed, position, direction...) | ||
|- | |- | ||
Line 81: | Line 82: | ||
| - contribute to log file | | - contribute to log file | ||
|- | |- | ||
| rowspan="2"|class Tank | |||
| - updating and saving images (traces and frequency) | | - updating and saving images (traces and frequency) | ||
|- | |- | ||
| - drawing the tank | | - drawing the tank | ||
|- | |- | ||
| rowspan="6"|public methods and variables | |||
| - keeping track of all elements (fish, tank, variables for drawing modes) | | - keeping track of all elements (fish, tank, variables for drawing modes) | ||
|- | |- |
edits