示例#1
0
 public DeathData(World.Creatures.CreatureBase p, World.Creatures.CreatureBase k, int t, int l)
 {
     Player          = p;
     Killer          = k;
     TurnsSurvived   = t;
     LevelsDescended = l;
 }
示例#2
0
        public void RenderToConsole(libtcodWrapper.Console Target)
        {
            Target.Clear();
            for (int x = 0; x < WIDTH; x++)
            {
                for (int y = 0; y < HEIGHT; y++)
                {
                    if (DisplayData[x, y].HasBeenSeen || DisplayData[x, y].Type == TerrainTypes.ExitPortal) //Last condition for debug only
                    {
                        if (DisplayData[x, y].IsVisible)
                        {
                            Target.ForegroundColor = DisplayData[x, y].DrawColor;
                        }
                        else
                        {
                            Target.ForegroundColor = libtcodWrapper.ColorPresets.Gray;
                        }
                        Target.PutChar(x, y, DisplayData[x, y].CharRepresentation);
                    }
                }
            }

            for (int i = Creatures.Count - 1; i >= 0; i--)
            {
                World.Creatures.CreatureBase C = Creatures[i];
                if (DisplayData[C.Position.X, C.Position.Y].IsVisible)
                {
                    Target.ForegroundColor = C.DrawColor;
                    Target.PutChar(C.Position.X, C.Position.Y, C.CharRepresentation);
                }
            }
        }
示例#3
0
        private string MakeLimbStatusString(World.Creatures.CreatureBase C)
        {
            string LimbsString = "";

            foreach (World.Creatures.Limbs.LimbBase Limb in C.Limbs)
            {
                LimbsString += Utilities.GeneralMethods.RemoveLowerCaseAndNonAlpha(Limb.Description) + ": " + Limb.HP + " ";
            }
            return(LimbsString);
        }