-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathNPC.cs
62 lines (52 loc) · 1.4 KB
/
NPC.cs
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using FarseerPhysics.Dynamics;
using FarseerPhysics.Dynamics.Joints;
using FarseerPhysics.Factories;
using FarseerPhysics.Collision.Shapes;
using FarseerPhysics.Common;
namespace WindowsGame1
{
enum CharacterID
{
ONE,
TWO,
THREE,
FOUR,
FIVE,
SIX,
SEVEN,
EIGTH,
NINE,
TEN
}
class NPC : InteractiveItem
{
private FixedAngleJoint AngJoint;
public Event npcEvent;
public List<Body> Bodies { get; set; }
public Vector2 GetPosition()
{
return new Vector2(ConvertUnits.ToDisplayUnits(Position.X), ConvertUnits.ToDisplayUnits(Position.Y));
}
int DistanceFromStart;
//public void Initialize();
public void Initialize(Texture2D Texture, CharacterID npcType, Vector2 Position)
{
npcEvent = new Event();
npcEvent.InitializeNPC(npcType);
base.Initialize(Texture, new Vector2(Position.X, Position.Y-70));
}
public override void Draw(SpriteBatch batch, Vector2 ScreenOffset)
{
batch.Draw(Textures[0], Position-ScreenOffset, Color.White);
}
public void Update()
{
}
}
}