Everyday life of a haXe coder
Pages
Accueil
Wednesday, July 7, 2010
The wind rose
How to treat a complex switch-case like, for example, for a relative placement (NORTH, WEST, SOUTH, EAST and compositions) :
// return the relative position of the specified point from (0, 0)
function String placement( int x, int y ) {
...
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment