Skip to content

Instantly share code, notes, and snippets.

@SpaceShot
Created July 2, 2011 02:12
Show Gist options
  • Save SpaceShot/1059678 to your computer and use it in GitHub Desktop.
Save SpaceShot/1059678 to your computer and use it in GitHub Desktop.
Token.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
namespace ArenaGame
{
class Token
{
public Vector2 Position;
public Texture2D Texture { get; set; }
public int Health { get; set; }
public int Attack { get; set; }
public Rectangle BoundingBox
{
get
{
return new Rectangle((int)Position.X, (int)Position.Y, Texture.Width, Texture.Height);
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment