[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/pacmacs ecf71a3f49 378/472: Rename put-bits-dot to put-wal
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/pacmacs ecf71a3f49 378/472: Rename put-bits-dot to put-wall-tile-corner (#138) |
Date: |
Thu, 6 Jan 2022 21:59:41 -0500 (EST) |
branch: elpa/pacmacs
commit ecf71a3f493f8f3c598bb7ad9500fcc9510ecc23
Author: rexim <reximkut@gmail.com>
Commit: rexim <reximkut@gmail.com>
Rename put-bits-dot to put-wall-tile-corner (#138)
---
pacmacs-image.el | 43 +++++++++++++++++++++----------------------
test/pacmacs-image-test.el | 4 ++--
2 files changed, 23 insertions(+), 24 deletions(-)
diff --git a/pacmacs-image.el b/pacmacs-image.el
index 7000c1b152..38c7a4f8be 100644
--- a/pacmacs-image.el
+++ b/pacmacs-image.el
@@ -53,7 +53,7 @@
(defun pacmacs-insert-image (resource resource-vector)
(insert-image resource " " nil resource-vector))
-(defun pacmacs--put-bits-dot (bits row column weight weights-to-color)
+(defun pacmacs--put-wall-tile-corner (bits row column weight weights-to-color)
(dotimes (i weight)
(dotimes (j weight)
(aset (aref bits (+ i row)) (+ j column) (funcall weights-to-color i
j)))))
@@ -150,20 +150,20 @@
(-let (((left-upper right-upper left-bottom right-bottom)
(pacmacs--wall-bits-get-corners wall-bits)))
(when left-upper
- (pacmacs--put-bits-dot wall-tile 0 0 weight
- (pacmacs--two-weights-to-color nil nil nil
weight)))
+ (pacmacs--put-wall-tile-corner wall-tile 0 0 weight
+ (pacmacs--two-weights-to-color nil nil
nil weight)))
(when right-upper
- (pacmacs--put-bits-dot wall-tile 0 (- width weight) weight
- (pacmacs--two-weights-to-color nil t nil weight)))
+ (pacmacs--put-wall-tile-corner wall-tile 0 (- width weight) weight
+ (pacmacs--two-weights-to-color nil t nil
weight)))
(when left-bottom
- (pacmacs--put-bits-dot wall-tile (- height weight) 0 weight
- (pacmacs--two-weights-to-color t nil nil weight)))
+ (pacmacs--put-wall-tile-corner wall-tile (- height weight) 0 weight
+ (pacmacs--two-weights-to-color t nil nil
weight)))
(when right-bottom
- (pacmacs--put-bits-dot wall-tile (- height weight) (- width weight)
weight
- (pacmacs--two-weights-to-color t t nil weight)))))
+ (pacmacs--put-wall-tile-corner wall-tile (- height weight) (- width
weight) weight
+ (pacmacs--two-weights-to-color t t nil
weight)))))
(defun pacmacs--put-bars (wall-tile width height weight wall-bits)
(-let (((bottom right top left)
@@ -186,27 +186,26 @@
(-let (((bottom right top left)
(pacmacs--wall-bits-get-bars wall-bits)))
(when (and left top) ;left-upper
- (pacmacs--put-bits-dot wall-tile 0 0 weight
- (pacmacs--two-weights-to-color t t t weight)))
+ (pacmacs--put-wall-tile-corner wall-tile 0 0 weight
+ (pacmacs--two-weights-to-color t t t
weight)))
(when (and right top) ;right-upper
- (pacmacs--put-bits-dot wall-tile 0 (- width weight) weight
- (pacmacs--two-weights-to-color t nil t weight)))
+ (pacmacs--put-wall-tile-corner wall-tile 0 (- width weight) weight
+ (pacmacs--two-weights-to-color t nil t
weight)))
(when (and left bottom) ;left-bottom
- (pacmacs--put-bits-dot wall-tile (- height weight) 0 weight
- (pacmacs--two-weights-to-color nil t t weight)))
+ (pacmacs--put-wall-tile-corner wall-tile (- height weight) 0 weight
+ (pacmacs--two-weights-to-color nil t t
weight)))
(when (and right bottom) ;right-bottom
- (pacmacs--put-bits-dot wall-tile (- height weight) (- width weight)
weight
- (pacmacs--two-weights-to-color nil nil t weight)))
- ))
+ (pacmacs--put-wall-tile-corner wall-tile (- height weight) (- width
weight) weight
+ (pacmacs--two-weights-to-color nil nil t
weight)))))
(defun pacmacs--create-wall-tile (width height
- bottom right
- top left
- left-upper right-upper
- left-bottom right-bottom)
+ bottom right
+ top left
+ left-upper right-upper
+ left-bottom right-bottom)
(let* ((wall-bits (list bottom right top left
left-upper right-upper
left-bottom right-bottom))
diff --git a/test/pacmacs-image-test.el b/test/pacmacs-image-test.el
index be4c331067..4cefb4b455 100644
--- a/test/pacmacs-image-test.el
+++ b/test/pacmacs-image-test.el
@@ -10,7 +10,7 @@
(mock (insert-image resource " " nil resource-vector) => 42 :times 1)
(should (= 42 (pacmacs-insert-image resource resource-vector))))))
-(ert-deftest pacmacs--put-bits-dot-test ()
+(ert-deftest pacmacs--put-wall-tile-corner-test ()
(let ((input-bits (pacmacs--construct-2d-bool-vector
'((nil nil nil)
(nil nil nil)
@@ -19,7 +19,7 @@
'((t t nil)
(t t nil)
(nil nil nil)))))
- (pacmacs--put-bits-dot input-bits 0 0 2)
+ (pacmacs--put-wall-tile-corner input-bits 0 0 2)
(should (equal expected-bits
input-bits))))
- [nongnu] elpa/pacmacs 73fcaa8a91 324/472: Remove pacmacs--vector+ (#159), (continued)
- [nongnu] elpa/pacmacs 73fcaa8a91 324/472: Remove pacmacs--vector+ (#159), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs e228a3c95d 334/472: Add 5th big pill level (#162), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 4924601822 341/472: UT for unterrify-ghost function (#171), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 0990672a5b 348/472: Fix stupid typos and mistakes -_-, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 9cb0cbab39 352/472: Merge pull request #172 from codingteam/unterrified-original-possition-171, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 61c37f08b1 355/472: Update URL in the headers (#178), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs fad3786449 361/472: Use push instead of add-to-list (#173), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 6a91d72f35 359/472: terrify-ghost instead of reset-terrified-ghost, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs f7f962303b 371/472: Use background for start gradient color (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs c7a3a4cbac 388/472: Merge pull request #184 from codingteam/update-readme-179, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs ecf71a3f49 378/472: Rename put-bits-dot to put-wall-tile-corner (#138),
ELPA Syncer <=
- [nongnu] elpa/pacmacs d7c9d248e6 385/472: Pass wall bits to create-wall-tile as list (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 66cdd67cbb 387/472: Merge pull request #186 from codingteam/prettier-walls-138, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 365bfaee8e 386/472: Fix create-wall-tile UT (#138), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs f9c2eada4c 390/472: Move measure-time function to pacmacs-rr module, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs e037903a5b 401/472: Switch to game over mode on game over state (#134), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 54af862690 403/472: Add position-of-new-score function (#134), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 389db1a10b 412/472: Remove pacmacs-game-over-state-rendered var (#134), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs e59d6bda5a 430/472: Add pacmacs-levels-folder custom (#191), ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs fc06a12e07 441/472: Merge pull request #204 from codingteam/bug/game-over-tiles-soft-wrap-201, ELPA Syncer, 2022/01/06
- [nongnu] elpa/pacmacs 447882d2ef 439/472: Quit Game Over state with q key (#202), ELPA Syncer, 2022/01/06