Bomberman Multiplayer
Authoritative multiplayer networking layer for Bomberman.
Loading...
Searching...
No Matches
Collision.h
1
#ifndef _BOMBERMAN_UTIL_COLLISION_H_
2
#define _BOMBERMAN_UTIL_COLLISION_H_
3
4
#include <SDL.h>
5
6
namespace
bomberman::collision
7
{
8
// Axis-aligned bounding box overlap (top-left origin, width/height)
9
bool
intersects(
const
SDL_FRect& a,
const
SDL_FRect& b);
10
11
// Scale a rect around its center (scale in range (0, 1] for shrinking)
12
SDL_FRect scaleCentered(
const
SDL_FRect& rect,
float
scale);
13
}
// namespace bomberman::collision
14
15
#endif
// _BOMBERMAN_UTIL_COLLISION_H_
Util
Collision.h
Nicolas Martin
Generated by
1.9.8