✨
This commit is contained in:
30
Entities/CardPosition.cs
Normal file
30
Entities/CardPosition.cs
Normal file
@ -0,0 +1,30 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace Solitaire.Entities {
|
||||
public class CardPosition: IGameEntity {
|
||||
const int SelectedOffset = 0;
|
||||
public int Offset {get; set;} = 0;
|
||||
|
||||
public bool TopPile = false;
|
||||
public bool Deck = false;
|
||||
|
||||
public Vector2 Position {get; set;}
|
||||
public CardPosition child = null;
|
||||
public bool Stationary = true;
|
||||
|
||||
public int DrawOrder {get; set;}
|
||||
public bool Following {get; set;} = false;
|
||||
|
||||
public CardPosition(Vector2 position) {
|
||||
Position = position;
|
||||
}
|
||||
|
||||
public virtual void Draw(SpriteBatch spriteBatch, GameTime gameTime) {
|
||||
}
|
||||
|
||||
public virtual void Update(GameTime gameTime, Vector2 mPosition, bool mReleased, bool mHolding, List<IGameEntity> entities) {
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user