public IvyCreeper(NWGameSpace space, object owner, int creatureID, bool total, bool setName) : base(space, owner, creatureID, total, setName) { IvyBranchRec rec = dbIvyBranches[0]; IvySegment seg = (IvySegment)Add(); seg.X = -1; seg.Y = -1; seg.Id = 0; seg.EntryDir = Directions.DtNone; seg.AvailableEntries = new Directions(rec.Entries); seg.ImageIndex = 0; }
static IvyCreeper() { dbIvyBranches = new IvyBranchRec[15]; dbIvyBranches[0] = new IvyBranchRec(IvyBranches.ibkRoot, new Directions(Directions.DtNorth, Directions.DtEast, Directions.DtSouth, Directions.DtWest)); dbIvyBranches[1] = new IvyBranchRec(IvyBranches.ibkLeaf, new Directions(Directions.DtSouth)); dbIvyBranches[2] = new IvyBranchRec(IvyBranches.ibkLeaf, new Directions(Directions.DtWest)); dbIvyBranches[3] = new IvyBranchRec(IvyBranches.ibkLeaf, new Directions(Directions.DtNorth)); dbIvyBranches[4] = new IvyBranchRec(IvyBranches.ibkLeaf, new Directions(Directions.DtEast)); dbIvyBranches[5] = new IvyBranchRec(IvyBranches.ibkBranch, new Directions(Directions.DtNorth, Directions.DtSouth)); dbIvyBranches[6] = new IvyBranchRec(IvyBranches.ibkBranch, new Directions(Directions.DtEast, Directions.DtWest)); dbIvyBranches[7] = new IvyBranchRec(IvyBranches.ibkBranch, new Directions(Directions.DtSouth, Directions.DtEast, Directions.DtWest)); dbIvyBranches[8] = new IvyBranchRec(IvyBranches.ibkBranch, new Directions(Directions.DtWest, Directions.DtNorth, Directions.DtSouth)); dbIvyBranches[9] = new IvyBranchRec(IvyBranches.ibkBranch, new Directions(Directions.DtNorth, Directions.DtEast, Directions.DtWest)); dbIvyBranches[10] = new IvyBranchRec(IvyBranches.ibkBranch, new Directions(Directions.DtEast, Directions.DtNorth, Directions.DtSouth)); dbIvyBranches[11] = new IvyBranchRec(IvyBranches.ibkBranch, new Directions(Directions.DtEast, Directions.DtSouth)); dbIvyBranches[12] = new IvyBranchRec(IvyBranches.ibkBranch, new Directions(Directions.DtWest, Directions.DtSouth)); dbIvyBranches[13] = new IvyBranchRec(IvyBranches.ibkBranch, new Directions(Directions.DtWest, Directions.DtNorth)); dbIvyBranches[14] = new IvyBranchRec(IvyBranches.ibkBranch, new Directions(Directions.DtEast, Directions.DtNorth)); }