| Off Topic > Off Topic |
| Programming Megathread |
| << < (235/241) > >> |
| Metario:
--- Quote from: Steve5451² on July 03, 2017, 05:02:27 AM ---made videos resizable on my bl embedder script last night https://gfycat.com/MenacingTenderAndeancondor it was a big pain in the ass --- End quote --- nice hey does anybody have experience with jquery in these parts of this town let me know |
| Headcrab Zombie:
I've used jQuery a moderate amount |
| $trinick:
--- Quote from: Headcrab Zombie on July 03, 2017, 12:41:34 PM ---I've used jQuery a moderate amount --- End quote --- ditto |
| Waru:
--- Code: ---using System; using System.Collections.Generic; namespace TurnBasedTest { public class Weapon : Item { public enum WeaponTypes { Sword, Axe, Spear, Bow, Crossbow, Wand, Staff, Gauntlet }; public WeaponTypes weaponType; public int damage; public Weapon(string _name, int _value, int _damage, WeaponTypes _weaponType) : base(_name, _value, _itemType:ItemTypes.Weapon) { damage = _damage; itemType = ItemTypes.Weapon; weaponType = _weaponType; } public void Display() { Console.WriteLine("Weapon Type: " + weaponType); Console.WriteLine("Damage: " + damage); } } } --- End code --- so lets say i have a Weapon Class that is inherited from the Item class. right now I have an enumerator for weapon types but should i split them all up into seperate classes that inheret from Weapon? They don't do any other damage calculations, so im guessing no. Also, I have a WeaponTypes weaponType to keep track of the individual weapon type when it's created, but this naming is confusing, what can I do to remedy it? I obviously don't want WeaponTypes weaponType. oh btw this is c# |
| Steve5451²:
--- Quote from: Metario on July 03, 2017, 11:20:35 AM ---hey does anybody have experience with jquery in these parts of this town let me know --- End quote --- I do but haven't used it in several years so my knowledge is outdated. |
| Navigation |
| Message Index |
| Next page |
| Previous page |