Yudong Xiao
/
pokemon
This is test version of Pokemongo game. ELEC 2645 final project.
pokeball/Utils.h
- Committer:
- shalwego
- Date:
- 2021-04-15
- Revision:
- 0:819c2d6a69ac
File content as of revision 0:819c2d6a69ac:
#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