Yudong Xiao
/
pokemon
This is test version of Pokemongo game. ELEC 2645 final project.
Diff: pokeball/Utils.h
- Revision:
- 0:819c2d6a69ac
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pokeball/Utils.h Thu Apr 15 15:35:12 2021 +0000 @@ -0,0 +1,36 @@ +#ifndef UTILS_H +#define UTILS_H + +struct Position2D { + int x; + int y; +}; + +enum Direction { + CENTRE, // 0 + N, // 1 + NE, // 2 + E, // 3 + SE, // 4 + S, // 5 + SW, // 6 + W, // 7 + NW // 8 +}; + +struct UserInput { + Direction d; + float mag; +}; + +struct Vector2D { + float x; + float y; +}; + +struct Polar { + float mag; + float angle; +}; + +#endif \ No newline at end of file