test avoid bulled game
Dependencies: C12832_lcd LCD_fonts mbed mbed-rtos
Bullet.cpp@12:c74115744b24, 2016-12-05 (annotated)
- Committer:
- th_mbed
- Date:
- Mon Dec 05 12:01:14 2016 +0000
- Revision:
- 12:c74115744b24
- Parent:
- 4:0fe59e58def9
- Child:
- 18:0f6f2aa2339d
modify Person and add Stage.; But Stage always returns all 1 height stage.
Who changed what in which revision?
User | Revision | Line number | New contents of line |
---|---|---|---|
kaku_jyoko | 4:0fe59e58def9 | 1 | #include "point.h" |
kaku_jyoko | 4:0fe59e58def9 | 2 | #include "models.h" |
th_mbed | 2:50a76ed8bf55 | 3 | |
th_mbed | 2:50a76ed8bf55 | 4 | Bullet::Bullet(point p, int v){ |
th_mbed | 2:50a76ed8bf55 | 5 | this->p = p; |
th_mbed | 2:50a76ed8bf55 | 6 | this->v = v; |
th_mbed | 2:50a76ed8bf55 | 7 | } |
th_mbed | 2:50a76ed8bf55 | 8 | |
th_mbed | 2:50a76ed8bf55 | 9 | point Bullet::update(){ |
th_mbed | 2:50a76ed8bf55 | 10 | p.x += v; |
th_mbed | 2:50a76ed8bf55 | 11 | return p; |
th_mbed | 2:50a76ed8bf55 | 12 | } |