-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathAACollidable.cs
More file actions
38 lines (34 loc) · 1.1 KB
/
Copy pathAACollidable.cs
File metadata and controls
38 lines (34 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
using Microsoft.Xna.Framework;
using SharpMath2;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace AnyAnglePathfinding
{
/// <summary>
/// Describes a generic collidable object inside the map. This is not meant to correspond to
/// the update / rendering logic that you would have, just as the container for collision
/// information. It's reasonable to suspect that a single entity will have multiple collidables.
/// </summary>
public class AACollidable
{
/// <summary>
/// The unique identifier for this collidable
/// </summary>
public int ID;
/// <summary>
/// A set of flags (up to 64) that this collidable has.
/// </summary>
public long Flags;
/// <summary>
/// The position of this collidable on the map
/// </summary>
public Vector2 Position;
/// <summary>
/// The bounds of this collidable
/// </summary>
public Polygon2 Bounds;
}
}