FineNerds

Entity Base Class

Feb 2nd, 2017
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 2.11 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class Entity : MonoBehaviour {
  6.  
  7.     public float xp_current;
  8.     public float xp_next;
  9.     public float xp_previous;
  10.     public int level;
  11.  
  12.     public float health_current;
  13.     public float health_Max;
  14.  
  15.     public float speed_Walk;
  16.     public float speed_Run;
  17.  
  18.     public E_EntityType entity_Type;
  19.     public E_Direction entity_Direction;
  20.  
  21.     public float attack_Speed;
  22.     public float attack_Range;
  23.     public float attack_Damage;                                         //No Abilities Available
  24.     public E_DamageType attack_Type;
  25.  
  26.     public float special_Speed;
  27.     public float special_Range;
  28.     public float special_Damage;                                        //Bonus Damage i.e. Crit/Bonus
  29.     public float special_Chance;
  30.     public E_SpecialType special_Type;
  31.  
  32.     public float defense_Amount;
  33.  
  34.     public E_Rarity location_Rarity;
  35.     public E_Zone location_Zone;
  36.  
  37.     public bool isMoving = false;
  38.  
  39.     public enum E_EntityType
  40.     {
  41.         UNKNOWN,
  42.         PLAYER,
  43.         NPC,
  44.         MONSTER,
  45.         NONE
  46.     }
  47.  
  48.     public enum E_SpecialType
  49.     {
  50.         UNKNOWN,
  51.         CRIT,                                                           // x2 Base Damage
  52.         BONUS,                                                          // +x Additional Damage
  53.         NONE
  54.     }
  55.  
  56.     public enum E_DamageType
  57.     {
  58.         UNKNOWN,
  59.         PHYSICAL,
  60.         MAGICAL,
  61.         TRUE,
  62.         SPECIAL,
  63.         MIXED,
  64.         NONE
  65.     }
  66.  
  67.     public enum E_Zone
  68.     {
  69.         UNKNOWN,
  70.         VOID,
  71.         NONE
  72.     }
  73.  
  74.     public enum E_Rarity
  75.     {
  76.         UNKNOWN,
  77.         COMMON,
  78.         UNCOMMON,
  79.         RARE,
  80.         EPIC,
  81.         LEGENDARY,
  82.         NONE
  83.     }
  84.  
  85.     public enum E_Direction
  86.     {
  87.         UNKNOWN,
  88.         NORTH,
  89.         NORTH_EAST,
  90.         NORTH_WEST,
  91.         SOUTH,
  92.         SOUTH_EAST,
  93.         SOUTH_WEST,
  94.         EAST,
  95.         WEST,
  96.         NONE
  97.     }
  98.  
  99.     private IEnumerator Move(Transform entity)
  100.     {
  101.         yield return 0;
  102.     }
  103. }
Advertisement
Add Comment
Please, Sign In to add comment