Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Bounding
- var
- maxX
- minX
- maxY
- minY
- New(MAX_X, MIN_X, MAX_Y, MIN_Y)
- maxX = MAX_X
- minX = MIN_X
- maxY = MAX_Y
- minY = MIN_Y
- proc
- isValid(X,Y)
- return X < maxX && X > minX && Y < maxY && Y > minY
- mob/Krillin
- var/Bounding/bounding
- Move(var/atom/NewLoc,Dir,step_x,step_y)
- if(bounding.isValid(NewLoc.x, NewLoc.y)) return ..()
- else return 0
- New()
- AI()
- proc
- AI()
- spawn()
- while(src)
- var/nextAction = pick("move","attack","teleport")
- switch(nextAction)
- if("move")
- // Fill this
- if("attack")
- // Fill this
- if("teleport")
- // Fill this
- sleep(10)
- mob/verb/Krillin()
- var/mob/Krillin/K = new(locate(x,y+3,z))
- K.bounding = new/Bounding(x+4,x-4,y+4,y-4)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement