示例#1
0
文件: Door.cs 项目: juntang/Portfolio
 public Door(GraphicsDevice graphics, Texture2D texture, Point loc, Dialogue[] dialogue, int why, int frameCount, int linkx, int linky, String path)
     : base(graphics, texture, loc, dialogue, frameCount, why)
 {
     this.path = path;
     this.move = true;
     this.unload = false;
     this.link = new Point(linkx, linky);
 }
示例#2
0
 public Girlfriend(GraphicsDevice graphics, Texture2D texture, Point loc, Dialogue[] dialogue, int frameCount, int why)
     : base(graphics, texture, loc, dialogue, frameCount, why)
 {
     subsets.Add("front", board.getSubset(0, 1));
     subsets.Add("right", board.getSubset(2, 3));
     subsets.Add("left", board.getSubset(4, 5));
     subsets.Add("back", board.getSubset(12, 12));
     frameSet = subsets["front"];
 }
示例#3
0
文件: Bed.cs 项目: juntang/Portfolio
 public Bed(GraphicsDevice graphics, Texture2D texture, Point loc, Dialogue[] dialogue, int frameCount, int why)
     : base(graphics, texture, loc, dialogue, frameCount, why)
 {
     //setup frames
     subsets.Add("sleep", board.getSubset(0, 1));
     subsets.Add("made", board.getSubset(2, 3));
     frameSet = subsets["made"];
     frameSet.setFrame(1);
     this.dialogueInt = 1;
     this.framecount = frameCount;
 }
示例#4
0
 public LittleBrother(GraphicsDevice graphics, Texture2D texture, Point loc, Dialogue[] dialogue, int frameCount, int why)
     : base(graphics, texture, loc, dialogue, frameCount, why)
 {
     subsets.Add("front", board.getSubset(0, 1));
     subsets.Add("right", board.getSubset(2, 3));
     subsets.Add("left", board.getSubset(4, 5));
     subsets.Add("back", board.getSubset(13, 13));
     subsets.Add("horror", board.getSubset(11, 11));
     frameSet = subsets["front"];
     moveable = false;
 }
示例#5
0
 public Entity(GraphicsDevice graphics, Texture2D texture, Point loc, Dialogue[] dialogue, int frameCount, int why)
 {
     this.texture = texture;
     this.batch = new SpriteBatch(graphics);
     this.dialogue = dialogue;
     this.why = why;
     this.dialogueInt = 0;
     this.showDialogue = false;
     this.originalLoc = loc;
     setSize(frameCount);
     board = new FrameSet(new Point(texture.Width, texture.Height), size, 0, frameCount);
     frameSet = board;
 }
示例#6
0
文件: Pig.cs 项目: juntang/Portfolio
 public Pig(GraphicsDevice graphics, Texture2D texture, Point loc, Dialogue[] dialogue, int frameCount, int why)
     : base(graphics, texture, loc, dialogue, frameCount, why)
 {
     this.goUpsideDown = true;
     this.framecount = frameCount;
 }
 public TypicalObject(GraphicsDevice graphics, Texture2D texture, Point loc, Dialogue[] dialogue, int frameCount, int why)
     : base(graphics, texture, loc, dialogue, frameCount, why)
 {
 }
示例#8
0
 public Cupboard(GraphicsDevice graphics, Texture2D texture, Point loc, Dialogue[] dialogue, int frameCount, int why)
     : base(graphics, texture, loc, dialogue, frameCount, why)
 {
 }
示例#9
0
文件: NPC.cs 项目: juntang/Portfolio
 public NPC(GraphicsDevice graphics, Texture2D texture, Point loc, Dialogue[] dialogue, int frameCount, int why)
     : base(graphics, texture, loc, dialogue, frameCount, why)
 {
     moveTo = loc;
 }