Used methods in Tutorial part 3 - ilovethisid/Educational-Ascii-Game-engine GitHub Wiki
Tutorial part 3 : Shoot!에서 사용된 EAG engine component들을 소개합니다.
Object
Object class에서는 console에서 움직이면서 간단한 물리법칙을 적용할 수 있는 object들을 생성할 수 있습니다.
Used methods
getX
int Object::getX()
Object의 x좌표를 반환합니다.
Returns
| Value | Description |
|---|---|
| int | 해당 Object instance의 x좌표 |
getY
int Object::getY()
Object의 y좌표를 반환합니다.
Returns
| Value | Description |
|---|---|
| int | 해당 Object instance의 y좌표 |
getImage
Matrix& Object::getImage()
Object::makeImage에서 만든 image Matrix를 반환합니다.
Returns
| Value | Description |
|---|---|
| Matrix | 해당 instance의 image Matrix |
GameLoop
Game Loop는 매 Frame별로 실행할 명령을 결정하고 EAG engine의 모든 component들을 연결시켜 주는 역할을 합니다
Used methods
getKeyListener
KeyListener& GameLoop::getKeyListener()
KeyListener thread를 반환합니다.
Returns
| Value | Description |
|---|---|
| KeyListener | GameLoop 내의 KeyListener thread |